Atoms Crowd  4.1.0
Atoms::AtomsClip Class Reference

Atoms clip. More...

#include <AtomsClip.h>

Public Member Functions

 AtomsClip (const std::string &clipPath)
 Constructor.
 
 AtomsClip (const unsigned int numFrames, const unsigned int numJoints, const double fps)
 Constructor.
 
 AtomsClip (const unsigned int numFrames, const unsigned int numJoints, const double fps, const bool parentSpace)
 Constructor.
 
 ~AtomsClip ()
 Destructor.
 
void setJointName (const unsigned int jointId, const std::string &name)
 Sets the joint name.
 
const std::string & getJointName (const unsigned int jointId)
 
void setJointTranslations (const unsigned int jointId, AtomsCore::Vector3ArrayMetadata &jointTranslations)
 Sets joint translations.
 
void setJointRotations (const unsigned int jointId, AtomsCore::QuaternionArrayMetadata &jointRotations)
 Sets joint rotations.
 
void setJointScales (const unsigned int jointId, AtomsCore::Vector3ArrayMetadata &jointScales)
 Sets joint scales.
 
AtomsPtr< const AtomsCore::Vector3ArrayMetadata > getJointTranslations (const unsigned int jointId) const
 Sets joint translations.
 
AtomsPtr< const AtomsCore::QuaternionArrayMetadata > getJointRotations (const unsigned int jointId) const
 Gets joint rotations.
 
AtomsPtr< const AtomsCore::Vector3ArrayMetadata > getJointScales (const unsigned int jointId) const
 Gets joint scales.
 
template<typename T >
void setJointMetadata (const unsigned int jointId, const std::string &metadataName, const AtomsPtr< AtomsCore::TypedArrayMetadata< T >> &value)
 Sets joint metadata.
 
template<typename T >
const AtomsPtr< AtomsCore::TypedArrayMetadata< T > > getJointMetadata (const unsigned int jointId, const std::string &metadataName) const
 Gets joint metadata.
 
const AtomsPtr< const AtomsCore::MapMetadatagetJointMetadatas (const unsigned int jointId) const
 Gets all joint metadatas.
 
template<typename T >
void setJointStaticMetadata (const unsigned int jointId, const std::string &metadataName, const AtomsPtr< AtomsCore::MetadataImpl< T >> &value)
 Sets joint static metadata.
 
template<typename T >
const AtomsPtr< AtomsCore::MetadataImpl< T > > getJointStaticMetadata (const unsigned int jointId, const std::string &metadataName) const
 Get joint static metadata.
 
void setInParentSpace (bool flag)
 Sets use parent space flag.
 
bool inParentSpace () const
 Gets the parent space flag.
 
const AtomsPtr< const AtomsCore::MapMetadatagetJointStaticMetadatas (const unsigned int jointId) const
 Gets all joint static metadatas.
 
const double getFps () const
 Gets fps of this clip.
 
const unsigned int getNumJoints () const
 get the number of joints
 
const unsigned int getNumFrames () const
 Gets hte number of frames.
 
const std::vector< std::string > getJointMetadataNames (const unsigned int jointId) const
 Gets joint metadata names.
 
const std::vector< std::string > getJointStaticMetadataNames (const unsigned int jointId) const
 Gets joint static metadata names.
 
bool exportToFile (const std::string &clipPath)
 Save this clip to disk.
 

Detailed Description

Atoms clip.


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