PageRenderTime 58ms CodeModel.GetById 47ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1package org.mt4jx.input.inputProcessors.componentProcessors.depthProcessor;
 2
 3import org.mt4j.components.interfaces.IMTComponent3D;
 4import org.mt4j.input.inputData.InputCursor;
 5import org.mt4j.input.inputProcessors.IInputProcessor;
 6import org.mt4j.input.inputProcessors.MTGestureEvent;
 7import org.mt4j.util.math.Vector3D;
 8
 9public class DepthGestureEvent extends MTGestureEvent {
10
11	private InputCursor dragCursor;
12	private InputCursor depthCursor;
13	
14	private Vector3D from;
15	private Vector3D to;
16		
17	private Vector3D translationVect;
18	
19	public DepthGestureEvent(IInputProcessor source,int id,IMTComponent3D targetComponent,InputCursor depthCursor,Vector3D translationVect)
20	{
21		super(source,id,targetComponent);	
22	
23		this.depthCursor = depthCursor;
24			
25		this.depthCursor = depthCursor;
26		
27		this.translationVect = translationVect;
28	}
29
30
31
32
33	public InputCursor getDepthCursor() {
34		return depthCursor;
35	}
36	
37	public Vector3D getFrom() {
38		return from;
39	}
40	
41	public Vector3D getTo() {
42		return to;
43	}
44	
45	public Vector3D getTranslationVect() {
46		return translationVect;
47	}
48	
49	
50}