|
||||||||||
| 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.TwoDMultiTouchElement
apps.threedmanipulationexperiment.gestures.OjbectManipulation
public class OjbectManipulation
The Class OjbectManipulation.
| Nested Class Summary | |
|---|---|
static interface |
OjbectManipulation.ExperimentEventListener
The listener interface for receiving experimentEvent events. |
static interface |
OjbectManipulation.RotateTranslateScaleListener
The listener interface for receiving rotateTranslateScale events. |
| Field Summary |
|---|
| Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement |
|---|
AXIS_Z, DIRECTION_UP |
| Constructor Summary | |
|---|---|
OjbectManipulation(com.jme.scene.Spatial pickingAndTargetSpatial,
java.util.List<com.jme.scene.Spatial> manipulatableOjbects)
Instantiates a new ojbect manipulation. |
|
OjbectManipulation(com.jme.scene.Spatial pickingSpatial,
com.jme.scene.Spatial targetSpatial)
Instantiates a new ojbect manipulation. |
|
| Method Summary | |
|---|---|
void |
addExperimentEventListener(OjbectManipulation.ExperimentEventListener l)
Adds the experiment event listener. |
void |
addRotateTranslateScaleListener(OjbectManipulation.RotateTranslateScaleListener l)
Adds the rotate translate scale listener. |
void |
allowMoreThanTwoToRotateAndScale(boolean b)
Allow more than two to rotate and scale. |
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. |
com.jme.scene.Spatial |
getControlledSpatial()
Gets the controlled spatial. |
float |
getScreenAngle()
Gets the screen angle. |
void |
removeExperimentEventListener(OjbectManipulation.ExperimentEventListener l)
Removes the experiment event listener. |
void |
removeRotateTranslateScaleListener(OjbectManipulation.RotateTranslateScaleListener l)
Removes the rotate translate scale listener. |
void |
resetTouchNumber()
Reset touch number. |
void |
setControlledSpatial(com.jme.scene.Spatial controlledSpatial)
Sets the controlled spatial. |
void |
setRotateLimits(float min,
float max)
Sets the rotate limits. |
void |
setRotationSpeed(int rotationSpeed)
Sets the rotation speed. |
void |
setScaleLimits(float min,
float max)
Sets the scale limits. |
void |
setScreenAngle(float screenAngle)
Sets the screen angle. |
| Methods inherited from class synergynetframework.jme.cursorsystem.TwoDMultiTouchElement |
|---|
getCursorScreenPositionAtPick, getPickDataForCursorID, getPickResultFromCursorIndex, getSpatial2DWorldPositionAtPick, registerScreenCursor |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OjbectManipulation(com.jme.scene.Spatial pickingAndTargetSpatial,
java.util.List<com.jme.scene.Spatial> manipulatableOjbects)
pickingAndTargetSpatial - the picking and target spatialmanipulatableOjbects - the manipulatable ojbects
public OjbectManipulation(com.jme.scene.Spatial pickingSpatial,
com.jme.scene.Spatial targetSpatial)
pickingSpatial - the picking spatialtargetSpatial - the target spatial| Method Detail |
|---|
public void addExperimentEventListener(OjbectManipulation.ExperimentEventListener l)
l - the lpublic void addRotateTranslateScaleListener(OjbectManipulation.RotateTranslateScaleListener l)
l - the lpublic void allowMoreThanTwoToRotateAndScale(boolean b)
b - the b
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 com.jme.scene.Spatial getControlledSpatial()
public float getScreenAngle()
public void removeExperimentEventListener(OjbectManipulation.ExperimentEventListener l)
l - the lpublic void removeRotateTranslateScaleListener(OjbectManipulation.RotateTranslateScaleListener l)
l - the lpublic void resetTouchNumber()
public void setControlledSpatial(com.jme.scene.Spatial controlledSpatial)
controlledSpatial - the new controlled spatial
public void setRotateLimits(float min,
float max)
min - the minmax - the maxpublic void setRotationSpeed(int rotationSpeed)
rotationSpeed - the new rotation speed
public void setScaleLimits(float min,
float max)
min - the minmax - the maxpublic void setScreenAngle(float screenAngle)
screenAngle - the new screen angle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||