|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.web3d.vrml.renderer.common.nodes.AbstractNode
org.web3d.vrml.renderer.common.nodes.BaseTimeDependentNode
org.web3d.vrml.renderer.common.nodes.BaseTimeControlledNode
An abstract representation of any form of time dependent node for subclassing by specific implementations.
The implementation performs the basic handling of the time fields but does not create any data structures for them to run with.
| Field Summary | |
protected static int |
FIELD_ELAPSED_TIME
The field index for elapsedTime |
protected static int |
FIELD_LOOP
The field index for Loop |
protected static int |
FIELD_PAUSE_TIME
The field index for pauseTime |
protected static int |
FIELD_RESUME_TIME
The field index for resumeTime |
protected static int |
FIELD_START_TIME
The field index for startTime |
protected static int |
FIELD_STOP_TIME
The field index for stopTime |
protected static int |
LAST_TIME_INDEX
The last field index used by this class |
protected double |
vfElapsedTime
The value of the pauseTime field |
protected boolean |
vfLoop
The value of the loop field |
protected double |
vfPauseTime
The value of the pauseTime field |
protected double |
vfResumeTime
The value of the resumeTime field |
protected double |
vfStartTime
The value of the startTime field |
protected double |
vfStopTime
The value of the stopTime field |
| Fields inherited from class org.web3d.vrml.renderer.common.nodes.BaseTimeDependentNode |
vrmlClock |
| Fields inherited from class org.web3d.vrml.renderer.common.nodes.AbstractNode |
BAD_NODE_MSG, errorReporter, FIELD_METADATA, fieldData, hasChanged, INIT_ONLY_WRITE_MSG, inSetup, isDEF, isStatic, LAST_NODE_INDEX, METADATA_NODE_MSG, METADATA_PROTO_MSG, nodeName, pMetadata, refCount, stateManager, vfMetadata, vrmlMajorVersion, vrmlMinorVersion |
| Constructor Summary | |
protected |
BaseTimeControlledNode(java.lang.String name)
Initialise the time dependent node and it's fields that are held locally. |
| Method Summary | |
protected void |
copy(VRMLTimeControlledNodeType node)
Set the fields of the time dependant node that has the fields set based on the fields of the passed in node. |
VRMLFieldData |
getFieldValue(int index)
Get the value of a field. |
boolean |
getLoop()
Accessor method to get current value of field loop, default value is false |
double |
getStartTime()
Accessor method to get current value of field startTime, default value is 0. |
double |
getStopTime()
Accessor method to get current value of field stopTime, default value is 0 |
void |
setLoop(boolean newLoop)
Accessor method to set a new value for field attribute loop |
void |
setPauseTime(double newPauseTime)
Accessor method to set a new value for field attribute pauseTime |
void |
setResumeTime(double newResumeTime)
Accessor method to set a new value for field attribute resumeTime |
void |
setStartTime(double newStartTime)
Accessor method to set a new value for field attribute startTime |
void |
setStopTime(double newStopTime)
Accessor method to set a new value for field attribute stopTime |
void |
setValue(int index,
boolean value)
Set the value of the field at the given index as a boolean. |
void |
setValue(int index,
double value)
Set the value of the field at the given index as a double for the SFTime fields. |
| Methods inherited from class org.web3d.vrml.renderer.common.nodes.BaseTimeDependentNode |
setVRMLClock |
| Methods inherited from class org.web3d.vrml.renderer.common.nodes.AbstractNode |
addNodeListener, allEventsComplete, checkNodeType, checkSecondaryType, checkSecondaryType, fireFieldChanged, getMetadataObject, getNodeFieldIndices, getRefCount, getSecondaryType, getUserData, getVRMLNodeName, hasFieldChanged, isDEF, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setErrorReporter, setFrameStateManager, setMetadataObject, setupFinished, setUserData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setVersion, updateRefCount |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLTimeDependentNodeType |
setVRMLClock |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLNodeType |
addNodeListener, getMetadataObject, getRefCount, hasFieldChanged, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setFrameStateManager, setMetadataObject, setupFinished, 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 |
| Field Detail |
protected static final int FIELD_LOOP
protected static final int FIELD_START_TIME
protected static final int FIELD_STOP_TIME
protected static final int FIELD_PAUSE_TIME
protected static final int FIELD_RESUME_TIME
protected static final int FIELD_ELAPSED_TIME
protected static final int LAST_TIME_INDEX
protected boolean vfLoop
protected double vfStartTime
protected double vfStopTime
protected double vfPauseTime
protected double vfResumeTime
protected double vfElapsedTime
| Constructor Detail |
protected BaseTimeControlledNode(java.lang.String name)
name - The name of the type of node| Method Detail |
protected void copy(VRMLTimeControlledNodeType node)
node - The grouping node to copy info frompublic void setLoop(boolean newLoop)
setLoop in interface VRMLTimeControlledNodeTypenewLoop - Whether this field loops or notpublic boolean getLoop()
false
getLoop in interface VRMLTimeControlledNodeTypepublic void setStartTime(double newStartTime)
setStartTime in interface VRMLTimeControlledNodeTypenewStartTime - The new start timepublic void setPauseTime(double newPauseTime)
newPauseTime - The new start timepublic void setResumeTime(double newResumeTime)
newResumeTime - The new start timepublic double getStartTime()
0.
getStartTime in interface VRMLTimeControlledNodeTypepublic void setStopTime(double newStopTime)
setStopTime in interface VRMLTimeControlledNodeTypenewStopTime - The new stop timepublic double getStopTime()
0
getStopTime in interface VRMLTimeControlledNodeType
public VRMLFieldData getFieldValue(int index)
throws InvalidFieldException
getFieldValue in interface VRMLNodeTypegetFieldValue in class AbstractNodeindex - The index of the field to change.
InvalidFieldException - The field index is not known
public void setValue(int index,
double value)
throws InvalidFieldException,
InvalidFieldValueException
setValue in interface VRMLNodeTypesetValue in class AbstractNodeindex - The index of destination field to setvalue - The new value to use for the node
InvalidFieldException - The field index is not known
InvalidFieldValueException - The value provided is not in range
or not appropriate for this field
public void setValue(int index,
boolean value)
throws InvalidFieldException,
InvalidFieldValueException
setValue in interface VRMLNodeTypesetValue in class AbstractNodeindex - The index of destination field to setvalue - The new value to use for the node
InvalidFieldException - The field index is not known
InvalidFieldValueException - The value provided is not in range
or not appropriate for this field
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||