Open 3D Engine EMotionFX Gem API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
#include <ChunkProcessors.h>
Inherits MCore::RefCounted.
Public Member Functions | |
virtual AZ_CLASS_ALLOCATOR_DECL bool | Process (MCore::File *file, Importer::ImportParameters &importParams)=0 |
uint32 | GetChunkID () const |
uint32 | GetVersion () const |
void | SetLogging (bool loggingActive) |
bool | GetLogging () const |
Public Member Functions inherited from MCore::RefCounted | |
RefCounted () | |
virtual | ~RefCounted () |
void | IncreaseReferenceCount () |
void | DecreaseReferenceCount () |
void | Destroy () |
uint32 | GetReferenceCount () const |
Static Public Member Functions | |
static MCORE_INLINE void | ConvertVector3 (AZ::Vector3 *value, MCore::Endian::EEndianType endianType, uint32 count=1) |
static MCORE_INLINE void | ConvertQuaternion (AZ::Quaternion *value, MCore::Endian::EEndianType endianType, uint32 count=1) |
static MCORE_INLINE void | Convert16BitQuaternion (MCore::Compressed16BitQuaternion *value, MCore::Endian::EEndianType endianType, uint32 count=1) |
static MCORE_INLINE void | ConvertScale (AZ::Vector3 *value, MCore::Endian::EEndianType endianType, uint32 count=1) |
Protected Member Functions | |
ChunkProcessor (uint32 chunkID, uint32 version) | |
virtual | ~ChunkProcessor () |
Protected Member Functions inherited from MCore::RefCounted | |
virtual void | Delete () |
Protected Attributes | |
uint32 | m_chunkId |
uint32 | m_version |
bool | m_loggingActive |
The chunk processor base class. Chunk processors read in a specific chunk, convert them into EMotion FX objects and apply them to either actors or motions. Chunk processors have got a version number, so that there is the possibility of having several processor implementations with different version numbers for one type of chunk. This gives us backward compatibility. Logging can be actived or deactived by functions provided by the base class.
|
protected |
The constructor.
chunkID | The ID of the chunk processor. |
version | The version number of the chunk processor, so what version number of the given chunk this processor can read and process. |
|
protectedvirtual |
Destructor.
|
inlinestatic |
Convert a 16 bit compressed Quaternion object. This will convert the coordinate system and the endian type.
value | The quaternion to convert. |
endianType | The endian type in which the current object is stored. |
count | The number of items to convert. |
|
inlinestatic |
Convert a Quaternion object. This will convert the coordinate system and the endian type.
value | The quaternion to convert. |
endianType | The endian type in which the current object is stored. |
count | The number of items to convert. |
|
inlinestatic |
Convert a Vector3 object as scale. This is a bit different from the ConvertVector3, as it will not invert any of the x, y or z components if the coordinate system will require this. This will convert the coordinate system and the endian type.
value | The vector to convert. |
endianType | The endian type in which the current object is stored. |
count | The number of items to convert. |
|
inlinestatic |
Convert a Vector3 object. This will convert the coordinate system and the endian type.
value | The vector to convert. |
endianType | The endian type in which the current object is stored. |
count | The number of items to convert. |
uint32 EMotionFX::ChunkProcessor::GetChunkID | ( | ) | const |
Return the id of the chunk processor.
bool EMotionFX::ChunkProcessor::GetLogging | ( | ) | const |
Return the log status.
uint32 EMotionFX::ChunkProcessor::GetVersion | ( | ) | const |
Return the version number of the chunk processor.
|
pure virtual |
Read and process a chunk. This is the main method. It will return false when we have reached the end of the file or something bad has happened while reading. This is pure virtual method, which has to be overloaded by the processors inherited from this base class.
file | The file from which the processor reads out the chunk. & |
importParams | The import parameters. |
void EMotionFX::ChunkProcessor::SetLogging | ( | bool | loggingActive | ) |
Set the log status.
The | log status. True if the chunk shall log events, false if not. |
|
protected |
The id of the chunk processor.
|
protected |
When set to true the processor chunk will log events, otherwise no logging will be performed.
|
protected |
The version number of the chunk processor, to provide backward compatibility.