AnimEngine
Public Member Functions | Protected Attributes | List of all members
ExpandedAnimationControlExt Class Reference

#include <GltfExtensions.h>

Inheritance diagram for ExpandedAnimationControlExt:
Inheritance graph
[legend]
Collaboration diagram for ExpandedAnimationControlExt:
Collaboration graph
[legend]

Public Member Functions

virtual ExtensionResultHint preProcessSceneCallback (GltfScenePopulator &aPopulator, const tinygltf::Scene &aSceneIn, Scene *aSceneOut) override
 
virtual ExtensionResultHint postProcessAnimationCallback (GltfScenePopulator &populator, const tinygltf::Animation &aAnimationIn, std::vector< Bone *> &aTouchedBones, GltfAnimation &aAnimationOut) override
 
virtual ExtensionResultHint preProcessPopulateAnimatorsCallback (GltfScenePopulator &aPopulator, std::unordered_map< std::string, GltfAnimation > &aAnimationsIn, Scene *aSceneOut) override
 
- Public Member Functions inherited from ExtrasExtension
virtual ExtensionResultHint postProcessSceneCallback (GltfScenePopulator &aPopulator, const tinygltf::Scene &aSceneIn, Scene *aSceneOut)
 
virtual ExtensionResultHint preTraverseNodeCallback (GltfScenePopulator &aPopulator, const AugNode &aNode, Entity *aParent, Entity *&aResult)
 
virtual ExtensionResultHint postTraverseNodeCallback (GltfScenePopulator &aPopulator, const AugNode &aNode, Entity *aParent, Entity *&aResult)
 
virtual ExtensionResultHint preProcessMeshEntityCallback (GltfScenePopulator &aPopulator, const AugNode &aNode, SolidMeshEntity *&aMesh)
 
virtual ExtensionResultHint postProcessMeshEntityCallback (GltfScenePopulator &aPopulator, const AugNode &aNode, SolidMeshEntity *&aMesh)
 
virtual ExtensionResultHint preProcessSkinMeshEntityCallback (GltfScenePopulator &aPopulator, const AugNode &aNode, SkinnedMeshEntity *&aSkin)
 
virtual ExtensionResultHint postProcessSkinMeshEntityCallback (GltfScenePopulator &aPopulator, const AugNode &aNode, SkinnedMeshEntity *&aSkin)
 
virtual ExtensionResultHint preProcessCameraEntityCallback (GltfScenePopulator &aPopulator, const AugNode &aNode, LookAtCamera *&aCamera)
 
virtual ExtensionResultHint postProcessCameraEntityCallback (GltfScenePopulator &aPopulator, const AugNode &aNode, LookAtCamera *&aCamera)
 
virtual ExtensionResultHint preProcessAnimationCallback (GltfScenePopulator &aPopulator, const tinygltf::Animation &aAnimIn, std::vector< Bone *> &aTouchedBones, GltfAnimation &aAnimResult)
 
virtual ExtensionResultHint preProcessPbrMaterialCallback (GltfScenePopulator &aPopulator, const tinygltf::Material &aMaterialIn, GltfMetallicRoughness *&aMaterialOut)
 
virtual ExtensionResultHint postProcessPbrMaterialCallback (GltfScenePopulator &aPopulator, const tinygltf::Material &aMaterialIn, GltfMetallicRoughness *&aMaterialOut)
 
virtual ExtensionResultHint preProcessTextureCallback (GltfScenePopulator &aPopulator, const tinygltf::Texture &aTexture, const tinygltf::Image &aImage, SimpleTexture2D &aTextureOut)
 
virtual ExtensionResultHint postProcessTextureCallback (GltfScenePopulator &aPopulator, const tinygltf::Texture &aTexture, const tinygltf::Image &aImage, SimpleTexture2D &aTextureOut)
 
virtual ExtensionResultHint postProcessPopulateAnimatorsCallback (GltfScenePopulator &aPopulator, std::unordered_map< std::string, GltfAnimation > &aAnimationsIn, Scene *aSceneOut)
 

Protected Attributes

std::set< std::string > mEnabledAnimations
 
std::set< std::string > mDisabledAnimations
 

Additional Inherited Members

- Static Protected Member Functions inherited from ExtrasExtension
static const tinygltf::Model & getAsset (const GltfScenePopulator &aPopulator)
 

Detailed Description

Extension to read additional information about animation playing through Gltf extras

  1. Should be specified within the extras object in an animation node Format:
    "PlayHints": {
    "StartState": <"STARTPLAYING" | "STARTSTOPPED">,
    # DISABLED "TimeOffset": <Integral value of milliseconds or floating point value in seconds to offset timing>,
    # DISABLED "LengthOverride": <Integral value of milliseconds or floating point value in seconds to override length of animation>
    "Loop": <Bool: True indicates looping>
    }
  2. Should be specified on the scene object. These settings are overriden by option (1.) Format:
    "AnimationSequencing" : {
    "Enabled": [<name of animation>, ..., <name of animation>],
    "Disabled": [<name of animation>, ..., <name of animation>]
    }

The documentation for this class was generated from the following files: