|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsynergynetframework.jme.cursorsystem.MultiTouchElement
synergynetframework.jme.cursorsystem.ThreeDMultiTouchElement
apps.threedmanipulationexperiment.gestures.ObjectRotateTranslate
public class ObjectRotateTranslate
The Class ObjectRotateTranslate.
| Nested Class Summary | |
|---|---|
static interface |
ObjectRotateTranslate.ExperimentEventListener
The listener interface for receiving experimentEvent events. |
static interface |
ObjectRotateTranslate.ObjectRotateTranslateScaleListener
The listener interface for receiving objectRotateTranslateScale events. |
| Field Summary |
|---|
| Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement |
|---|
AXIS_Z, DIRECTION_UP |
| Constructor Summary | |
|---|---|
ObjectRotateTranslate(com.jme.scene.Spatial pickingAndTargetSpatial)
Instantiates a new object rotate translate. |
|
ObjectRotateTranslate(com.jme.scene.Spatial pickSpatial,
com.jme.scene.Spatial targetSpatial)
Instantiates a new object rotate translate. |
|
ObjectRotateTranslate(com.jme.scene.Spatial pickSpatial,
com.jme.scene.Spatial targetSpatial,
com.jme.scene.Spatial remoteObject)
Instantiates a new object rotate translate. |
|
| Method Summary | |
|---|---|
void |
addExperimentEventListener(ObjectRotateTranslate.ExperimentEventListener l)
Adds the experiment event listener. |
void |
addRotateTranslateScaleListener(ObjectRotateTranslate.ObjectRotateTranslateScaleListener l)
Adds the rotate translate scale listener. |
void |
cursorChanged(ScreenCursor c,
MultiTouchCursorEvent event)
Cursor changed. |
void |
cursorClicked(ScreenCursor c,
MultiTouchCursorEvent event)
Cursor clicked. |
void |
cursorPressed(ScreenCursor c,
MultiTouchCursorEvent event)
Cursor pressed. |
void |
cursorReleased(ScreenCursor c,
MultiTouchCursorEvent event)
Cursor released. |
float |
getScaleMax()
Gets the scale max. |
float |
getScaleMin()
Gets the scale min. |
void |
removeExperimentEventListener(ObjectRotateTranslate.ExperimentEventListener l)
Removes the experiment event listener. |
void |
removeRotateTranslateScaleListener(ObjectRotateTranslate.ObjectRotateTranslateScaleListener l)
Removes the rotate translate scale listener. |
void |
resetTouchNumber()
Reset touch number. |
void |
setRotationSpeed(int rotationSpeed)
Sets the rotation speed. |
void |
setScaleLimits(float min,
float max)
Sets the scale limits. |
void |
setScaleMax(float scaleMax)
Sets the scale max. |
void |
setScaleMin(float scaleMin)
Sets the scale min. |
| Methods inherited from class synergynetframework.jme.cursorsystem.ThreeDMultiTouchElement |
|---|
getPickDataForCursorID, getPickResultFromCursorIndex, registerScreenCursor |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectRotateTranslate(com.jme.scene.Spatial pickingAndTargetSpatial)
pickingAndTargetSpatial - the picking and target spatial
public ObjectRotateTranslate(com.jme.scene.Spatial pickSpatial,
com.jme.scene.Spatial targetSpatial)
pickSpatial - the pick spatialtargetSpatial - the target spatial
public ObjectRotateTranslate(com.jme.scene.Spatial pickSpatial,
com.jme.scene.Spatial targetSpatial,
com.jme.scene.Spatial remoteObject)
pickSpatial - the pick spatialtargetSpatial - the target spatialremoteObject - the remote object| Method Detail |
|---|
public void addExperimentEventListener(ObjectRotateTranslate.ExperimentEventListener l)
l - the lpublic void addRotateTranslateScaleListener(ObjectRotateTranslate.ObjectRotateTranslateScaleListener l)
l - the l
public void cursorChanged(ScreenCursor c,
MultiTouchCursorEvent event)
MultiTouchElement
cursorChanged in class MultiTouchElementc - the cevent - the event
public void cursorClicked(ScreenCursor c,
MultiTouchCursorEvent event)
MultiTouchElement
cursorClicked in class MultiTouchElementc - the cevent - the event
public void cursorPressed(ScreenCursor c,
MultiTouchCursorEvent event)
MultiTouchElement
cursorPressed in class MultiTouchElementc - the cevent - the event
public void cursorReleased(ScreenCursor c,
MultiTouchCursorEvent event)
MultiTouchElement
cursorReleased in class MultiTouchElementc - the cevent - the eventpublic float getScaleMax()
public float getScaleMin()
public void removeExperimentEventListener(ObjectRotateTranslate.ExperimentEventListener l)
l - the lpublic void removeRotateTranslateScaleListener(ObjectRotateTranslate.ObjectRotateTranslateScaleListener l)
l - the lpublic void resetTouchNumber()
public void setRotationSpeed(int rotationSpeed)
rotationSpeed - the new rotation speed
public void setScaleLimits(float min,
float max)
min - the minmax - the maxpublic void setScaleMax(float scaleMax)
scaleMax - the new scale maxpublic void setScaleMin(float scaleMin)
scaleMin - the new scale min
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||