MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / createTransformAnimation

Method createTransformAnimation

dae2ma/src/DAE2MAVisualSceneImporter.cpp:1217–1238  ·  view source on GitHub ↗

-----------------------------------

Source from the content-addressed store, hash-verified

1215
1216 // -----------------------------------
1217 void VisualSceneImporter::createTransformAnimation (
1218 const COLLADAFW::UniqueId& transformId,
1219 const COLLADAFW::Transformation* transformation,
1220 const MayaTransform::TransformPhase& transformPhase,
1221 const bool isJointTransform,
1222 std::vector<TransformAnimation>& transformAnimations )
1223 {
1224 // Get the id of animation list of the current transformation and store
1225 // the transform node id, the mayaTransform node and the transformation type.
1226 const COLLADAFW::UniqueId& animationListId = transformation->getAnimationList ();
1227 if ( animationListId.isValid () )
1228 {
1229 // Create a TransformAnimation objekt and push it in the list.
1230 TransformAnimation transformAnim;
1231 transformAnim.setAnimationListId ( animationListId );
1232 transformAnim.setAnimationSourceId ( transformId );
1233 transformAnim.setTransformation ( transformation );
1234 transformAnim.setTransformPhase ( transformPhase );
1235 transformAnim.setIsJointTransform ( isJointTransform );
1236 transformAnimations.push_back ( transformAnim );
1237 }
1238 }
1239
1240 // -----------------------------------
1241 const BaseImporter::MayaNodesList* VisualSceneImporter::findMayaTransformNodes (

Callers

nothing calls this directly

Calls 8

getAnimationListMethod · 0.80
setTransformationMethod · 0.80
setTransformPhaseMethod · 0.80
setIsJointTransformMethod · 0.80
isValidMethod · 0.45
setAnimationListIdMethod · 0.45
setAnimationSourceIdMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected