jjdh API

jjdh.opengl.scenegraph.simple.core
Class MovementNode

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.core.MovementNode
All Implemented Interfaces:
TreeNode<ScenegraphNode>, Iterable<ScenegraphNode>, Renderable, ScenegraphNode

public class MovementNode
extends ContainerScenegraphNode


Field Summary
protected  float[] position
           
protected  float[] rotation
           
protected  float[] scale
           
 
Fields inherited from class dh.java.math.graph.AbstractTreeNode
childs
 
Constructor Summary
MovementNode()
           
MovementNode(float x, float y, float z, ScenegraphNode... nodes)
           
 
Method Summary
protected  void applyPosition(javax.media.opengl.GL gl)
           
protected  void applyRotation(javax.media.opengl.GL gl)
           
protected  void applyScaling(javax.media.opengl.GL gl)
           
 float[] getPosition()
           
 float[] getRotation()
           
 void move(float x, float y, float z)
           
 void render(javax.media.opengl.GL gl)
           
 void rotate(float degree, float x, float y, float z)
           
 void setPosition(float x, float y, float z)
           
 void setRotation(float degree, float x, float y, float z)
           
 void setScale(float x, float y, float z)
           
 
Methods inherited from class jjdh.opengl.scenegraph.simple.core.ContainerScenegraphNode
add, addAll, addAll, insert, iterator, remove, 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

position

protected float[] position

rotation

protected float[] rotation

scale

protected float[] scale
Constructor Detail

MovementNode

public MovementNode()

MovementNode

public MovementNode(float x,
                    float y,
                    float z,
                    ScenegraphNode... nodes)
Method Detail

render

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

rotate

public final void rotate(float degree,
                         float x,
                         float y,
                         float z)

move

public final void move(float x,
                       float y,
                       float z)

setPosition

public final void setPosition(float x,
                              float y,
                              float z)

setRotation

public final void setRotation(float degree,
                              float x,
                              float y,
                              float z)

setScale

public void setScale(float x,
                     float y,
                     float z)

applyRotation

protected final void applyRotation(javax.media.opengl.GL gl)

applyPosition

protected final void applyPosition(javax.media.opengl.GL gl)

applyScaling

protected final void applyScaling(javax.media.opengl.GL gl)

getPosition

public float[] getPosition()

getRotation

public float[] getRotation()

jjdh API

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