CubeTwister 2.0alpha141 2011-10-13

idx3d
Class idx3d_Node

java.lang.Object
  extended by idx3d.idx3d_CoreObject
      extended by idx3d.idx3d_Node
Direct Known Subclasses:
idx3d_Group, idx3d_Object

public class idx3d_Node
extends idx3d_CoreObject

idx3d_Node objects divide into group node objects and leaf node objects. idx3d_Group node objects serve to group their child node objects together according to the group node's semantics. Leaf nodes specify the geometric elements that idx3d uses in rendering; specifically, geometric objects, and lights.

Version:
1.0 August 29, 2004 Created.
Author:
Werner Randelshofer

Field Summary
static java.util.Enumeration EMPTY_ENUMERATION
          An enumeration that is always empty.
 idx3d_Group parent
          Parent object.
 
Fields inherited from class idx3d.idx3d_CoreObject
matrix, normalmatrix
 
Constructor Summary
idx3d_Node()
          Creates a new instance.
 
Method Summary
 java.util.Enumeration children()
          Enumerates the children of this node.
 idx3d_Group getParent()
           
 void invalidate()
          Invalidate this node and all its parent nodes.
 boolean isValid()
          Returns true if this node is valid for rendering with the render pipeline.
 void validate()
          Validates this node and all its children.
 
Methods inherited from class idx3d.idx3d_CoreObject
getPos, resetTransform, rotate, rotate, rotateSelf, rotateSelf, scale, scale, scaleSelf, scaleSelf, setPos, setPos, setTransform, shift, shift, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

public idx3d_Group parent
Parent object. FIXME: This should be package protected, and should not be accessed from outside this package!


EMPTY_ENUMERATION

public static final java.util.Enumeration EMPTY_ENUMERATION
An enumeration that is always empty. This is used when an enumeration of a leaf node's children is requested.

Constructor Detail

idx3d_Node

public idx3d_Node()
Creates a new instance.

Method Detail

getParent

public final idx3d_Group getParent()

invalidate

public void invalidate()
Invalidate this node and all its parent nodes.


isValid

public boolean isValid()
Returns true if this node is valid for rendering with the render pipeline.


validate

public void validate()
Validates this node and all its children.


children

public java.util.Enumeration children()
Enumerates the children of this node.


(c) Werner Randelshofer.
All rights reserved.