/src/org/mt4j/input/inputProcessors/componentProcessors/panProcessor/PanTwoFingerEvent.java

http://mt4j.googlecode.com/ · Java · 63 lines · 16 code · 9 blank · 38 comment · 0 complexity · 5cb245674cf4d7616fbd05ce2eec1467 MD5 · raw file

  1. /***********************************************************************
  2. * mt4j Copyright (c) 2008 - 2009, C.Ruff, Fraunhofer-Gesellschaft All rights reserved.
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. *
  17. ***********************************************************************/
  18. package org.mt4j.input.inputProcessors.componentProcessors.panProcessor;
  19. import org.mt4j.components.interfaces.IMTComponent3D;
  20. import org.mt4j.input.inputData.InputCursor;
  21. import org.mt4j.input.inputProcessors.IInputProcessor;
  22. import org.mt4j.util.camera.Icamera;
  23. import org.mt4j.util.math.Vector3D;
  24. /**
  25. * The Class PanTwoFingerEvent.
  26. * @author Christopher Ruff
  27. */
  28. public class PanTwoFingerEvent extends PanEvent {
  29. /** The second finger. */
  30. private InputCursor secondFinger;
  31. /**
  32. * Instantiates a new pan two finger event.
  33. *
  34. * @param source the source
  35. * @param id the id
  36. * @param targetComponent the target component
  37. * @param firstFinger the first finger
  38. * @param secondFinger the second finger
  39. * @param translationVector the translation vector
  40. * @param camera the camera
  41. */
  42. public PanTwoFingerEvent(IInputProcessor source, int id, IMTComponent3D targetComponent, InputCursor firstFinger, InputCursor secondFinger, Vector3D translationVector, Icamera camera) {
  43. super(source, id, targetComponent, firstFinger, translationVector, camera);
  44. this.secondFinger = secondFinger;
  45. }
  46. /**
  47. * Gets the second finger.
  48. *
  49. * @return the second finger
  50. */
  51. public InputCursor getSecondCursor() {
  52. return secondFinger;
  53. }
  54. }