/src/org/mt4j/input/inputProcessors/componentProcessors/panProcessor/PanTwoFingerEvent.java
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 ***********************************************************************/ 18package org.mt4j.input.inputProcessors.componentProcessors.panProcessor; 19 20import org.mt4j.components.interfaces.IMTComponent3D; 21import org.mt4j.input.inputData.InputCursor; 22import org.mt4j.input.inputProcessors.IInputProcessor; 23import org.mt4j.util.camera.Icamera; 24import org.mt4j.util.math.Vector3D; 25 26 27/** 28 * The Class PanTwoFingerEvent. 29 * @author Christopher Ruff 30 */ 31public class PanTwoFingerEvent extends PanEvent { 32 33 /** The second finger. */ 34 private InputCursor secondFinger; 35 36 /** 37 * Instantiates a new pan two finger event. 38 * 39 * @param source the source 40 * @param id the id 41 * @param targetComponent the target component 42 * @param firstFinger the first finger 43 * @param secondFinger the second finger 44 * @param translationVector the translation vector 45 * @param camera the camera 46 */ 47 public PanTwoFingerEvent(IInputProcessor source, int id, IMTComponent3D targetComponent, InputCursor firstFinger, InputCursor secondFinger, Vector3D translationVector, Icamera camera) { 48 super(source, id, targetComponent, firstFinger, translationVector, camera); 49 this.secondFinger = secondFinger; 50 } 51 52 /** 53 * Gets the second finger. 54 * 55 * @return the second finger 56 */ 57 public InputCursor getSecondCursor() { 58 return secondFinger; 59 } 60 61 62 63}