Class SAIProtoInstance
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.web3d.vrml.scripting.external.sai.SAIProtoInstance
- All Implemented Interfaces:
X3DNode
,X3DProtoInstance
SAIProtoInstance is a node wrapper which extends SAINode to implement
the X3DProtoInstance interface as well as the X3DNode interface.
-
Method Summary
Modifier and TypeMethodDescriptionint[]
Get the listing of implementation types for proto nodes.int[]
Get the basic categorisation type(s) of this node.Methods inherited from class org.web3d.vrml.scripting.external.sai.SAINode
dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, hashCode, isRealized, realize, setMetadata
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, isRealized, realize, setMetadata
-
Method Details
-
getImplementationTypes
public int[] getImplementationTypes()Description copied from interface:X3DProtoInstance
Get the listing of implementation types for proto nodes. This performs the same functionality as the getType() method in the base class. For ProtoInstances, that method is required to return a single value that says it is a proto instance and this method is used to determine the final type.- Specified by:
getImplementationTypes
in interfaceX3DProtoInstance
- Returns:
- The list of types of the implemented node
- See Also:
-
getNodeType
public int[] getNodeType()Description copied from interface:X3DNode
Get the basic categorisation type(s) of this node. The types values are provided in the array of values. There is no specific order of the returned types. It is expected that most node types, which only descend from a single parent type would return an array of length 1. The returned value(s) should be the most derived type applicable for that node. For example, a Material node should return MaterialNodeType value, not AppearanceChildNodeType value.- Specified by:
getNodeType
in interfaceX3DNode
- Overrides:
getNodeType
in classSAINode
- Returns:
- The primary type(s) of this node
- See Also:
-