jjdh.opengl.scenegraph.simple.core
Class MovementNode
java.lang.Object
dh.java.math.graph.AbstractTreeNode<ScenegraphNode>
jjdh.opengl.scenegraph.simple.core.ContainerScenegraphNode
jjdh.opengl.scenegraph.simple.core.MovementNode
- All Implemented Interfaces:
- TreeNode<ScenegraphNode>, Iterable<ScenegraphNode>, Renderable, ScenegraphNode
public class MovementNode
- extends ContainerScenegraphNode
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)
|
position
protected float[] position
rotation
protected float[] rotation
scale
protected float[] scale
MovementNode
public MovementNode()
MovementNode
public MovementNode(float x,
float y,
float z,
ScenegraphNode... nodes)
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()
Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.