|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.graphics.opengl.scenegraph.GLScene
public class GLScene
A GLScene is a top-level structure that combines various render lists, to be rendered by an OpenGL capable render engine. It includes: 1) a List of VJoints, each acting as a root node for a VJoint based scene graph. 2) a List of SkinnedMeshes, each to be linked to appropriate VJoint nodes. 3) a GLRenderList, containing GLShapes, to be rendered. Linked to appropriate VJoint nodes.
| Field Summary | |
|---|---|
private HashMap<String,Float> |
desiredMorphTargets
The set of morph targets to be set by doMorph, maintained through addMorphTargets and removeMorphTargets |
private static int |
GRID
|
private static float |
RADIUS
|
private GLRenderList |
shapeList
The GLRenderList shapeList specifies GLRenderObjects to be rendered. |
private ArrayList<GLSkinnedMesh> |
skinnedMeshList
|
private ArrayList<VJoint> |
vjointRoots
The VJoint list determines the root VJoints for the scene graph. |
| Constructor Summary | |
|---|---|
GLScene()
Creates a GLScene with allocated root, with specified name, and with allocated shapeList, with specified capacity. |
|
| Method Summary | |
|---|---|
void |
addGLShape(GLShape glShape)
Adds some GLShape to this GLScene. |
void |
addGLShapes(GLRenderList glShapes)
Adds some GLShapes to this GLScene. |
void |
addMorphTargets(String[] targetNames,
float[] weights)
Add given weights for given morph targets to the list of desired targets |
void |
addSkinnedMeshes(List<GLSkinnedMesh> skinnedMeshes)
Adds some SkinnedMeshes |
void |
addSkinnedMeshJointMarkers()
|
void |
addSkinnedMeshJointMarkers(float radius,
int grid)
|
void |
addVJointRoot(VJoint root)
Adds a VJoint, as one of the scene graph roots |
void |
deform()
|
void |
doMorph()
Perform morph as specified in desiredMorphTargets |
GLRenderList |
getGLShapeList()
Returns the list with all GLShapes for this GLScene |
GLSkinnedMesh |
getGLSkinnedMesh()
returns the first GLSkinnedMesh, for testing purposes. |
VJoint |
getVJoint(String partId)
Searches for a VJoint reachable from some of the VJoint root nodes. |
List<VJoint> |
getVJointRoots()
Returns the list with all scene graph roots |
void |
glInit(GLRenderContext glc)
OpenGL initialization. |
void |
glRender(GLRenderContext glc)
OpenGL rendering. |
void |
morph(int[] targets,
float[] weights)
Morph all skinned meshes |
void |
morph(String[] targetNames,
float[] weights)
Morph all skinned meshes |
void |
morph(String targetName,
float weight)
Morph all skinned meshes |
void |
prependGLShape(GLShape glShape)
|
void |
removeMorphTargets(String[] targetNames,
float[] weights)
Remove given weights for given morph targets from the list of desired targets |
void |
setMorphTargets(String[] targetNames,
float[] weights)
Overwrite current morph targets with given targets |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private ArrayList<VJoint> vjointRoots
private ArrayList<GLSkinnedMesh> skinnedMeshList
private GLRenderList shapeList
private static final float RADIUS
private static final int GRID
private HashMap<String,Float> desiredMorphTargets
| Constructor Detail |
|---|
public GLScene()
| Method Detail |
|---|
public void addVJointRoot(VJoint root)
public List<VJoint> getVJointRoots()
public VJoint getVJoint(String partId)
public GLRenderList getGLShapeList()
public void prependGLShape(GLShape glShape)
public void addGLShapes(GLRenderList glShapes)
public void addGLShape(GLShape glShape)
public void addSkinnedMeshes(List<GLSkinnedMesh> skinnedMeshes)
public void addSkinnedMeshJointMarkers()
public void addSkinnedMeshJointMarkers(float radius,
int grid)
public void glInit(GLRenderContext glc)
glInit in interface GLRenderObjectpublic void deform()
public GLSkinnedMesh getGLSkinnedMesh()
public void morph(String targetName,
float weight)
public void morph(String[] targetNames,
float[] weights)
public void morph(int[] targets,
float[] weights)
public void doMorph()
public void addMorphTargets(String[] targetNames,
float[] weights)
public void removeMorphTargets(String[] targetNames,
float[] weights)
public void setMorphTargets(String[] targetNames,
float[] weights)
public void glRender(GLRenderContext glc)
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 | |||||||||