|
Xj3D 2.0 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.BaseMetadataObjectNode
public abstract class BaseMetadataObjectNode
An abstract implementation of any node that uses component nodes to provide coordinate, normal and texture information.
| Field Summary | |
|---|---|
protected static int |
FIELD_NAME
Index of the name field |
protected static int |
FIELD_REFERENCE
Index of the reference field |
protected static int |
LAST_METADATA_INDEX
The last field index used by this class |
protected java.lang.String |
vfName
exposedField SFString name "" |
protected java.lang.String |
vfReference
exposedField SFString reference "" |
| Fields inherited from class org.web3d.vrml.renderer.common.nodes.AbstractNode |
|---|
BAD_NODE_MSG, errorReporter, FIELD_METADATA, fieldLocalData, hasChanged, INIT_ONLY_WRITE_MSG, inSetup, isDEF, isStatic, LAST_NODE_INDEX, layerIds, METADATA_NODE_MSG, METADATA_PROTO_MSG, nodeName, pMetadata, refCounts, removedLayerIds, stateManager, vfMetadata, vrmlMajorVersion, vrmlMinorVersion |
| Constructor Summary | |
|---|---|
protected |
BaseMetadataObjectNode(java.lang.String name)
Construct a default instance of this class with the bind flag set to false and no time information set (effective value of zero). |
| Method Summary | |
|---|---|
protected void |
copy(VRMLMetadataObjectNodeType node)
Copy the values of the metadata node into this node. |
VRMLFieldData |
getFieldValue(int index)
Get the value of a field. |
java.lang.String |
getName()
Get the currently set name associated with this metadata object. |
int |
getPrimaryType()
Get the primary type of this node. |
java.lang.String |
getReference()
Get the currently set reference associated with this metadata object. |
void |
sendRoute(double time,
int srcIndex,
VRMLNodeType destNode,
int destIndex)
Send a routed value from this node to the given destination node. |
void |
setName(java.lang.String name)
Set the name value for the metadata object. |
void |
setReference(java.lang.String reference)
Set the reference value for the metadata object. |
void |
setValue(int index,
java.lang.String value)
Set the value of the field at the given index as an array of strings. |
| Methods inherited from class org.web3d.vrml.renderer.common.nodes.AbstractNode |
|---|
addNodeListener, allEventsComplete, checkNodeType, checkSecondaryType, checkSecondaryType, clearRemovedLayerIds, fireFieldChanged, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, getSecondaryType, getUserData, getVRMLNodeName, hasFieldChanged, isDEF, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, setDEF, setErrorReporter, setFrameStateManager, setMetadataObject, setupFinished, setUserData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setVersion, updateRefCount, updateRefs |
| 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.lang.VRMLNode |
|---|
getFieldDeclaration, getFieldIndex, getNodeFieldIndices, getNumFields |
| Field Detail |
|---|
protected static final int FIELD_NAME
protected static final int FIELD_REFERENCE
protected static final int LAST_METADATA_INDEX
protected java.lang.String vfName
protected java.lang.String vfReference
| Constructor Detail |
|---|
protected BaseMetadataObjectNode(java.lang.String name)
name - The name of the type of node| Method Detail |
|---|
protected void copy(VRMLMetadataObjectNodeType node)
node - The node to copy details frompublic java.lang.String getName()
getName in interface VRMLMetadataObjectNodeTypepublic void setName(java.lang.String name)
setName in interface VRMLMetadataObjectNodeTypename - The name to usepublic java.lang.String getReference()
getReference in interface VRMLMetadataObjectNodeTypepublic void setReference(java.lang.String reference)
setReference in interface VRMLMetadataObjectNodeTypereference - The reference to usepublic int getPrimaryType()
getPrimaryType in interface VRMLNode
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 sendRoute(double time,
int srcIndex,
VRMLNodeType destNode,
int destIndex)
sendRoute in interface VRMLNodeTypesendRoute in class AbstractNodetime - The time that this route occurred (not necessarily epoch
time. Should be treated as a relative value only)srcIndex - The index of the field in this node that the value
should be sent fromdestNode - The node reference that we will be sending the value todestIndex - The index of the field in the destination node that
the value should be sent to.
public void setValue(int index,
java.lang.String 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 out of range
for the field type.
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||