jjdh API

jjdh.opengl.scenegraph.simple.core
Class LeafScenegraphNode

java.lang.Object
  extended by dh.java.math.graph.AbstractTreeNode<ScenegraphNode>
      extended by jjdh.opengl.scenegraph.simple.core.LeafScenegraphNode
All Implemented Interfaces:
TreeNode<ScenegraphNode>, Iterable<ScenegraphNode>, Renderable, ScenegraphNode
Direct Known Subclasses:
BoomEffectNode, MD2Node, MeshNode, ParticleEffectNode, RectangleNode, SkyboxNode, SlideContainerNode.WrapperNode, Vertex

public class LeafScenegraphNode
extends AbstractTreeNode<ScenegraphNode>
implements ScenegraphNode


Field Summary
 
Fields inherited from class dh.java.math.graph.AbstractTreeNode
childs
 
Constructor Summary
LeafScenegraphNode()
           
 
Method Summary
 List<ScenegraphNode> getChilds()
          Returns all child nodes of this node.
 boolean isLeaf()
          Indicates if this node is a leaf.
 Iterator<ScenegraphNode> iterator()
           
 void render(javax.media.opengl.GL gl)
           
 
Methods inherited from class dh.java.math.graph.AbstractTreeNode
getName, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LeafScenegraphNode

public LeafScenegraphNode()
Method Detail

getChilds

public List<ScenegraphNode> getChilds()
Description copied from interface: TreeNode
Returns all child nodes of this node.

Specified by:
getChilds in interface TreeNode<ScenegraphNode>
Overrides:
getChilds in class AbstractTreeNode<ScenegraphNode>
Returns:
all child nodes of this node.

isLeaf

public boolean isLeaf()
Description copied from interface: TreeNode
Indicates if this node is a leaf.

Specified by:
isLeaf in interface TreeNode<ScenegraphNode>
Overrides:
isLeaf in class AbstractTreeNode<ScenegraphNode>
Returns:
if this node is a leaf

iterator

public Iterator<ScenegraphNode> iterator()
Specified by:
iterator in interface Iterable<ScenegraphNode>

render

public void render(javax.media.opengl.GL gl)
Specified by:
render in interface Renderable

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.