|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VRMLDragSensorNodeType
A sensor that is driven by pointing device dragging.
| Method Summary | |
|---|---|
boolean |
getAutoOffset()
Get the current state of the autoOffset field. |
java.lang.String |
getDescription()
Get the current state of the description field. |
void |
notifySensorDragChange(float[] position,
float[] direction)
Notify the drag sensor that a sensor is currently dragging this device and that it's position and orientation are as given. |
void |
notifySensorDragEnd(float[] position,
float[] direction)
Notification that this sensor has finished a drag action. |
void |
notifySensorDragStart(float[] hitPoint,
float[] position)
Notification that this sensor has just been clicked on to start a drag action. |
void |
setAutoOffset(boolean state)
Set a new value for the autoOffset field. |
void |
setDescription(java.lang.String desc)
Set a new value for the description field. |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLPointingDeviceSensorNodeType |
|---|
getIsOver, requiresPointOnly, setIsOver |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLSensorNodeType |
|---|
getEnabled, getIsActive, setEnabled |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLNodeType |
|---|
addNodeListener, clearRemovedLayerIds, getFieldValue, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, hasFieldChanged, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setFrameStateManager, setMetadataObject, setupFinished, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, updateRefCount |
| Methods inherited from interface org.web3d.vrml.lang.VRMLNode |
|---|
getFieldDeclaration, getFieldIndex, getNodeFieldIndices, getNumFields, getPrimaryType, getSecondaryType, getUserData, getVRMLNodeName, isDEF, setErrorReporter, setUserData, setVersion |
| Methods inherited from interface org.web3d.vrml.nodes.FrameStateListener |
|---|
allEventsComplete |
| Method Detail |
|---|
void setAutoOffset(boolean state)
state - The new value for AutoOffsetboolean getAutoOffset()
true.
void setDescription(java.lang.String desc)
setDescription in interface VRMLPointingDeviceSensorNodeTypedesc - The new value for the description fieldjava.lang.String getDescription()
getDescription in interface VRMLPointingDeviceSensorNodeType
void notifySensorDragStart(float[] hitPoint,
float[] position)
hitPoint - Intersection between the sensor and the device geometry in
local coordinate system originposition - Where the sensor origin is in local coordinates
void notifySensorDragChange(float[] position,
float[] direction)
position - Where the sensor origin is in local coordinatesdirection - Vector showing the direction the sensor is pointing
void notifySensorDragEnd(float[] position,
float[] direction)
position - Where the sensor origin is in local coordinatesdirection - Vector showing the direction the sensor is pointing
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||