Torque2D Reference
Loading...
Searching...
No Matches
ParticleAssetFieldCollection Class Reference

#include <ParticleAssetFieldCollection.h>

Public Types

typedef HashMap< StringTableEntry, ParticleAssetField * > typeFieldHash

Public Member Functions

 ParticleAssetFieldCollection ()
virtual ~ParticleAssetFieldCollection ()
void copyTo (ParticleAssetFieldCollection &fieldCollection)
void addField (ParticleAssetField &particleAssetField, const char *pFieldName, F32 maxTime, F32 minValue, F32 maxValue, F32 defaultValue)
ParticleAssetFieldselectField (const char *pFieldName)
void deselectField (void)
const ParticleAssetFieldgetSelectedField (void) const
const typeFieldHashgetFields (void) const
ParticleAssetFieldfindField (const char *pFieldName)
S32 setSingleDataKey (const F32 value)
S32 addDataKey (F32 time, F32 value)
bool removeDataKey (S32 index)
bool clearDataKeys (void)
bool setDataKey (S32 index, F32 value)
F32 getDataKeyValue (S32 index) const
F32 getDataKeyTime (S32 index) const
const ParticleAssetField::DataKeygetDataKey (const U32 index) const
U32 getDataKeyCount (void) const
F32 getMinValue (void) const
F32 getMaxValue (void) const
F32 getMinTime (void) const
F32 getMaxTime (void) const
F32 getFieldValue (F32 time) const
bool setRepeatTime (const F32 repeatTime)
F32 getRepeatTime (void) const
bool setValueScale (const F32 valueScale)
F32 getValueScale (void) const
void onTamlCustomWrite (TamlCustomNodes &customNodes)
void onTamlCustomRead (const TamlCustomNodes &customNodes)
void WriteCustomTamlSchema (const AbstractClassRep *pClassRep, TiXmlElement *pParentElement) const

Detailed Description


Member Typedef Documentation

◆ typeFieldHash

typedef HashMap<StringTableEntry, ParticleAssetField*> typeFieldHash

Constructor & Destructor Documentation

◆ ParticleAssetFieldCollection()

◆ ~ParticleAssetFieldCollection()

Member Function Documentation

◆ addDataKey()

S32 addDataKey ( F32 time,
F32 value )

◆ addField()

void addField ( ParticleAssetField & particleAssetField,
const char * pFieldName,
F32 maxTime,
F32 minValue,
F32 maxValue,
F32 defaultValue )

◆ clearDataKeys()

bool clearDataKeys ( void )

◆ copyTo()

void copyTo ( ParticleAssetFieldCollection & fieldCollection)

◆ deselectField()

void deselectField ( void )
inline

◆ findField()

ParticleAssetField * findField ( const char * pFieldName)

◆ getDataKey()

const ParticleAssetField::DataKey & getDataKey ( const U32 index) const

◆ getDataKeyCount()

U32 getDataKeyCount ( void ) const

◆ getDataKeyTime()

F32 getDataKeyTime ( S32 index) const

◆ getDataKeyValue()

F32 getDataKeyValue ( S32 index) const

◆ getFields()

const typeFieldHash & getFields ( void ) const
inline

◆ getFieldValue()

F32 getFieldValue ( F32 time) const

◆ getMaxTime()

F32 getMaxTime ( void ) const

◆ getMaxValue()

F32 getMaxValue ( void ) const

◆ getMinTime()

F32 getMinTime ( void ) const

◆ getMinValue()

F32 getMinValue ( void ) const

◆ getRepeatTime()

F32 getRepeatTime ( void ) const

◆ getSelectedField()

const ParticleAssetField * getSelectedField ( void ) const
inline

◆ getValueScale()

F32 getValueScale ( void ) const

◆ onTamlCustomRead()

void onTamlCustomRead ( const TamlCustomNodes & customNodes)

◆ onTamlCustomWrite()

void onTamlCustomWrite ( TamlCustomNodes & customNodes)

◆ removeDataKey()

bool removeDataKey ( S32 index)

◆ selectField()

ParticleAssetField * selectField ( const char * pFieldName)

◆ setDataKey()

bool setDataKey ( S32 index,
F32 value )

◆ setRepeatTime()

bool setRepeatTime ( const F32 repeatTime)

◆ setSingleDataKey()

S32 setSingleDataKey ( const F32 value)

◆ setValueScale()

bool setValueScale ( const F32 valueScale)

◆ WriteCustomTamlSchema()

void WriteCustomTamlSchema ( const AbstractClassRep * pClassRep,
TiXmlElement * pParentElement ) const

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