Class dnx.lr.Field
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.lr.Field
java.lang.Object
|
+----dnx.util.DNXObject
|
+----dnx.lr.Field
- public class Field
- extends DNXObject
- implements Cloneable
This is the base class of all fields. For each field in each node,
there's a corresponding object that is a subclass of this class.
This contains a back pointer to the Node it's contained in as well
as the actual data stored in the field.
All of the actual field classes are contained in the dnx.lr.field
package.
-
owner
- This is the Node that this field is in.
-
showInstanceNumber
-
-
Field()
-
-
clone()
-
-
clone(Node)
- This is used, among other things, when a new node is created --
the fields representing the default values (which are stored in
the NodeDefinition) are cloned to produce the fields in a Node.
-
copy(Field)
-
-
createField(String)
- Creates a field of a specified type.
-
free()
-
-
getNodeTreeContext()
-
-
getOwner()
-
-
getSceneContext()
-
-
print(PrintAction)
-
-
read(ReadAction)
- Read in the value of the field from a source.
-
readInternal(ReadAction)
- Implementation of read().
-
toString()
-
-
typeName()
- Get the type name of this field.
owner
protected Node owner
- This is the Node that this field is in. Fields are static
in a Node -- they can never be deleted from a node and never
inserted (except at creation time).
showInstanceNumber
public static boolean showInstanceNumber
Field
public Field()
getOwner
public Node getOwner()
getNodeTreeContext
public NodeTreeContext getNodeTreeContext()
getSceneContext
public SceneContext getSceneContext()
read
public final void read(ReadAction r) throws IOException, VRMLSyntaxException
- Read in the value of the field from a source. For simple
fields like SFFloats, this just reads in a number. For some
fields like SFImage or MFVec3f, this will do a lot more.
readInternal
protected abstract void readInternal(ReadAction r) throws IOException, VRMLSyntaxException
- Implementation of read(). Fields should override this.
print
public void print(PrintAction p)
free
public abstract void free()
copy
public abstract void copy(Field f)
clone
protected Object clone(Node owner)
- This is used, among other things, when a new node is created --
the fields representing the default values (which are stored in
the NodeDefinition) are cloned to produce the fields in a Node.
clone
public Object clone()
- Overrides:
- clone in class Object
typeName
public String typeName()
- Get the type name of this field. The type name is the field name
used in PROTO definitions--just the class name without the package
prefix.
- Overrides:
- typeName in class DNXObject
toString
public String toString()
- Overrides:
- toString in class Object
createField
public static Field createField(String fieldName)
- Creates a field of a specified type. It returns null if the field
could not be created (because the class couldn't be found or
instanced.)
All Packages Class Hierarchy This Package Previous Next Index