/extensions/org/mt4jx/input/inputProcessors/componentProcessors/depthProcessor/DepthGestureEvent.java

http://mt4j.googlecode.com/ · Java · 50 lines · 32 code · 18 blank · 0 comment · 0 complexity · 2966f2685b396ba790e49d80cc83f862 MD5 · raw file

  1. package org.mt4jx.input.inputProcessors.componentProcessors.depthProcessor;
  2. import org.mt4j.components.interfaces.IMTComponent3D;
  3. import org.mt4j.input.inputData.InputCursor;
  4. import org.mt4j.input.inputProcessors.IInputProcessor;
  5. import org.mt4j.input.inputProcessors.MTGestureEvent;
  6. import org.mt4j.util.math.Vector3D;
  7. public class DepthGestureEvent extends MTGestureEvent {
  8. private InputCursor dragCursor;
  9. private InputCursor depthCursor;
  10. private Vector3D from;
  11. private Vector3D to;
  12. private Vector3D translationVect;
  13. public DepthGestureEvent(IInputProcessor source,int id,IMTComponent3D targetComponent,InputCursor depthCursor,Vector3D translationVect)
  14. {
  15. super(source,id,targetComponent);
  16. this.depthCursor = depthCursor;
  17. this.depthCursor = depthCursor;
  18. this.translationVect = translationVect;
  19. }
  20. public InputCursor getDepthCursor() {
  21. return depthCursor;
  22. }
  23. public Vector3D getFrom() {
  24. return from;
  25. }
  26. public Vector3D getTo() {
  27. return to;
  28. }
  29. public Vector3D getTranslationVect() {
  30. return translationVect;
  31. }
  32. }