|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.graphics.opengl.scenegraph.VGLNode
public class VGLNode
A VGL node combines a VJoint (tree) with a GLRenderList. The GLRenderList objects will usually link to the global transform matrix of the VJoint.
| Field Summary | |
|---|---|
private GLRenderObject |
marker
|
private VJoint |
root
The VJoint root determines the transformation for this VGLNode. |
private GLRenderList |
shapeList
The GLRenderList shapeList specifies GLRenderObjects to be rendered. |
| Constructor Summary | |
|---|---|
VGLNode(String name)
Creates a new VGLNode, specified name and capacity 1. |
|
VGLNode(String name,
int capacity)
Creates a VGLNode with allocated root, with specified name, and with allocated shapeList, with specified capacity. |
|
VGLNode(VJoint root,
GLRenderList shapeList)
Creates a VGLNode with specified root and shapeList. |
|
| Method Summary | |
|---|---|
void |
addChild(VGLNode childNode)
Adds the root of the childNode as a VJoint child, and appends all shapeList elements from the childNode to the shapeList of this VGLNode. |
void |
addGLShape(GLShape glShape)
Adds some GLShape, and links it to the root of this VGLNode |
void |
addMarker()
|
void |
addMarker(GLRenderObject marker)
|
GLRenderList |
getGLShapeList()
|
VJoint |
getRoot()
|
void |
glInit(GLRenderContext gl)
OpenGL initialization. |
void |
glRender(GLRenderContext gl)
OpenGL rendering. |
void |
prependGLShape(GLShape glShape)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private VJoint root
private GLRenderList shapeList
private GLRenderObject marker
| Constructor Detail |
|---|
public VGLNode(String name)
public VGLNode(String name,
int capacity)
public VGLNode(VJoint root,
GLRenderList shapeList)
| Method Detail |
|---|
public GLRenderList getGLShapeList()
public VJoint getRoot()
public void prependGLShape(GLShape glShape)
public void addGLShape(GLShape glShape)
public void addChild(VGLNode childNode)
public void addMarker(GLRenderObject marker)
public void addMarker()
public void glInit(GLRenderContext gl)
glInit in interface GLRenderObjectpublic void glRender(GLRenderContext gl)
glRender in interface GLRenderObjectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||