|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.xml.XMLStructureAdapter
hmi.graphics.scenegraph.GScene
public class GScene
A GScene combines a GNode based scene graph with other scene elements, like Controllers, ... A scene graph is really a forest, containing (potentially) several root nodes.
| Field Summary | |
|---|---|
private static org.slf4j.Logger |
logger
|
private List<GNode> |
rootNodes
|
private List<GNode> |
skeletonRoots
|
private List<GSkinnedMesh> |
skinnedMeshList
|
private static boolean |
writeBindMatrices
|
private static String |
XMLTAG
|
private String |
xmlVersion
|
| Fields inherited from class hmi.xml.XMLStructureAdapter |
|---|
ATTRIBUTE_TOKEN_DELIMITERS, COMMA_SEPARATOR, DECODEDARRAYSIZE, DEFAULT_RECOVER_MODE, NEWLINE, SYSTEMNEWLINE, TAB, TAB_STRING |
| Constructor Summary | |
|---|---|
GScene()
Creates a new GScene. |
|
GScene(XMLTokenizer tokenizer)
|
|
| Method Summary | |
|---|---|
void |
addOriginMarker()
|
void |
addRootNode(GNode root)
Adds a GNode as a root node to the scene graph forrest. |
void |
addSkinnedMeshes(List<GSkinnedMesh> skinnedMeshes)
Adds some SkinnedMeshes |
void |
adjustBindPoses()
|
void |
affineTransformMeshes(float[] t,
float[] q,
float s)
|
StringBuilder |
appendAttributes(StringBuilder buf)
appends XML attributes to buf. |
StringBuilder |
appendContent(StringBuilder buf,
XMLFormatting fmt)
Appends a String to buf that encodes the contents for the XML encoding. |
void |
calculateVJointMatrices()
Calculates the matrices for the VJoint structures. |
void |
clearRotations()
|
void |
decodeAttributes(HashMap<String,String> attrMap,
XMLTokenizer tokenizer)
decodes XML attributes. |
void |
decodeContent(XMLTokenizer tokenizer)
decodes the XML contents, i.e. the XML between the STag and ETag of the encoding. |
static org.slf4j.Logger |
getLogger()
returns the (static) org.slf4j.Logger for the scenegraph package |
List<GNode> |
getRootNodes()
returns the list with the root nodes of the scene graph forrest |
List<GNode> |
getSkeletonRoots()
|
List<GSkinnedMesh> |
getSkinnedMeshes()
returns the List of all GSkinnedMeshes for this GScene. |
String |
getXMLTag()
returns the XML Stag for XML encoding |
void |
prepareSkinnedMeshes(String renamingList,
float scale,
boolean setToHAnim)
|
void |
renameJoints(String renamingList)
|
void |
resolveSkinnedMeshJoints()
Resolves the VJoints for all skinned meshes within this GScene, |
void |
rotateScaleSkinnedMeshes(float x,
float y,
float z,
float angle,
float scale)
|
void |
setHAnimPoses()
Sets all skeletons into HAnim pose |
static String |
xmlTag()
The XML Stag for XML encoding |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private List<GNode> rootNodes
private List<GSkinnedMesh> skinnedMeshList
private List<GNode> skeletonRoots
private String xmlVersion
private static org.slf4j.Logger logger
private static final boolean writeBindMatrices
private static final String XMLTAG
| Constructor Detail |
|---|
public GScene()
public GScene(XMLTokenizer tokenizer)
throws IOException
IOException| Method Detail |
|---|
public static org.slf4j.Logger getLogger()
public void addOriginMarker()
public void addRootNode(GNode root)
public List<GNode> getRootNodes()
public List<GNode> getSkeletonRoots()
public void addSkinnedMeshes(List<GSkinnedMesh> skinnedMeshes)
public List<GSkinnedMesh> getSkinnedMeshes()
public void calculateVJointMatrices()
public void clearRotations()
public void rotateScaleSkinnedMeshes(float x,
float y,
float z,
float angle,
float scale)
public void affineTransformMeshes(float[] t,
float[] q,
float s)
public void renameJoints(String renamingList)
public void resolveSkinnedMeshJoints()
public void adjustBindPoses()
public void prepareSkinnedMeshes(String renamingList,
float scale,
boolean setToHAnim)
public void setHAnimPoses()
public StringBuilder appendAttributes(StringBuilder buf)
appendAttributes in class XMLStructureAdapter
public void decodeAttributes(HashMap<String,String> attrMap,
XMLTokenizer tokenizer)
decodeAttributes in class XMLStructureAdapter
public StringBuilder appendContent(StringBuilder buf,
XMLFormatting fmt)
XMLStructureAdapter
appendContent in class XMLStructureAdapter
public void decodeContent(XMLTokenizer tokenizer)
throws IOException
XMLStructureAdapter
decodeContent in class XMLStructureAdapterIOExceptionpublic static String xmlTag()
public String getXMLTag()
getXMLTag in interface XMLStructuregetXMLTag in class XMLStructureAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||