jjdh API

jjdh.opengl.scenegraph.simple.common
Class BoxNode

java.lang.Object
  extended by dh.java.math.graph.AbstractTreeNode<ScenegraphNode>
      extended by jjdh.opengl.scenegraph.simple.core.ContainerScenegraphNode
          extended by jjdh.opengl.scenegraph.simple.common.BoxNode
All Implemented Interfaces:
TreeNode<ScenegraphNode>, Iterable<ScenegraphNode>, Renderable, ScenegraphNode

public class BoxNode
extends ContainerScenegraphNode


Field Summary
protected  Point3D[] points
           
protected  Factory<Quad> quadFactory
           
protected  Quad[] sides
           
protected  Factory<Vertex> vertexFactory
           
 
Fields inherited from class dh.java.math.graph.AbstractTreeNode
childs
 
Constructor Summary
BoxNode(float w, float h, float d, Factory<Vertex> vertexFactory, Factory<Quad> quadFactory)
           
 
Method Summary
protected  Quad addQuad(int i0, int i1, int i2, int i3)
           
protected  Vertex[] wrap(Point3D... points)
           
 
Methods inherited from class jjdh.opengl.scenegraph.simple.core.ContainerScenegraphNode
add, addAll, addAll, insert, iterator, remove, render, renderChildren, rotate, shuffle
 
Methods inherited from class dh.java.math.graph.AbstractTreeNode
getChilds, getName, isLeaf, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface dh.java.math.graph.TreeNode
getChilds, isLeaf
 

Field Detail

vertexFactory

protected Factory<Vertex> vertexFactory

quadFactory

protected Factory<Quad> quadFactory

points

protected Point3D[] points

sides

protected Quad[] sides
Constructor Detail

BoxNode

public BoxNode(float w,
               float h,
               float d,
               Factory<Vertex> vertexFactory,
               Factory<Quad> quadFactory)
Parameters:
w - width
h - height
d - depth
Method Detail

addQuad

protected Quad addQuad(int i0,
                       int i1,
                       int i2,
                       int i3)

wrap

protected Vertex[] wrap(Point3D... points)

jjdh API

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