Class ColladaNodeUtils
java.lang.Object
com.ardor3d.extension.model.collada.jdom.ColladaNodeUtils
Methods for parsing Collada data related to scenes and node hierarchy.
-
Constructor Summary
ConstructorsConstructorDescriptionColladaNodeUtils(ColladaImporter importer, DataCache dataCache, ColladaDOMUtil colladaDOMUtil, ColladaMaterialUtils colladaMaterialUtils, ColladaMeshUtils colladaMeshUtils, ColladaAnimUtils colladaAnimUtils) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateJointAttachment(JointNode jointChildNode, Node node, Node subNode) getNodeTransforms(List<org.jdom2.Element> transforms) Combines a list of transform elements into an Ardor3D Transform object.getVisualScene(org.jdom2.Element colladaRoot) Retrieves the scene and returns it as an Ardor3D Node.parseAsset(org.jdom2.Element asset) Parse an asset element into an AssetData object.voidreattachAttachments(Node scene)
-
Constructor Details
-
ColladaNodeUtils
public ColladaNodeUtils(ColladaImporter importer, DataCache dataCache, ColladaDOMUtil colladaDOMUtil, ColladaMaterialUtils colladaMaterialUtils, ColladaMeshUtils colladaMeshUtils, ColladaAnimUtils colladaAnimUtils)
-
-
Method Details
-
getVisualScene
Retrieves the scene and returns it as an Ardor3D Node.- Parameters:
colladaRoot- The collada root element- Returns:
- Scene as an Node or null if not found
-
parseAsset
Parse an asset element into an AssetData object.- Parameters:
asset- the asset element- Returns:
- the asset data
-
getNode
- Parameters:
instanceNode- the instance nodejointNode- the joint node- Returns:
- a new Ardor3D node, created from the node pointed to by the given instance_node element
-
createJointAttachment
-
getNodeTransforms
Combines a list of transform elements into an Ardor3D Transform object.- Parameters:
transforms- List of transform elements- Returns:
- an Ardor3D Transform object
-
reattachAttachments
-