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

#include <ParticleAssetField.h>

Classes

struct  DataKey
 Data Key Node. More...

Public Member Functions

 ParticleAssetField ()
virtual ~ParticleAssetField ()
void copyTo (ParticleAssetField &field)
void initialize (const F32 maxTime, const F32 minValue, const F32 maxValue, const F32 defaultValue)
void setValueBounds (F32 maxTime, F32 minValue, F32 maxValue, F32 defaultValue)
void setFieldName (const char *pFieldName)
StringTableEntry getFieldName (void) const
bool setValueScale (const F32 valueScale)
F32 getValueScale (void)
bool setRepeatTime (const F32 repeatTime)
F32 getRepeatTime (void) const
F32 getMinValue (void) const
F32 getMaxValue (void) const
F32 getMinTime (void) const
F32 getMaxTime (void) const
F32 getValueScale (void) const
F32 getDefaultValue (void) const
void resetDataKeys (void)
S32 setSingleDataKey (const F32 value)
bool doesKeyExist (const F32 time)
S32 addDataKey (const F32 time, const F32 value)
bool removeDataKey (const U32 index)
void clearDataKeys (void)
bool setDataKeyValue (const U32 index, const F32 value)
F32 getDataKeyValue (const U32 index) const
F32 getDataKeyTime (const U32 index) const
U32 getDataKeyCount (void) const
const DataKeygetDataKey (const U32 index) const
F32 getFieldValue (F32 time) const
void onTamlCustomWrite (TamlCustomNode *pCustomNode)
void onTamlCustomRead (const TamlCustomNode *pCustomNode)
void WriteCustomTamlSchema (const AbstractClassRep *pClassRep, TiXmlElement *pParentElement)

Static Public Member Functions

static F32 calculateFieldBV (const ParticleAssetField &base, const ParticleAssetField &variation, const F32 effectAge, const bool modulate=false, const F32 modulo=0.0f)
static F32 calculateFieldBVE (const ParticleAssetField &base, const ParticleAssetField &variation, const ParticleAssetField &effect, const F32 effectAge, const bool modulate=false, const F32 modulo=0.0f)
static F32 calculateFieldBVLE (const ParticleAssetField &base, const ParticleAssetField &variation, const ParticleAssetField &overlife, const ParticleAssetField &effect, const F32 effectTime, const F32 particleAge, const bool modulate=false, const F32 modulo=0.0f)

Static Public Attributes

static ParticleAssetField::DataKey BadDataKey

Detailed Description


Constructor & Destructor Documentation

◆ ParticleAssetField()

◆ ~ParticleAssetField()

~ParticleAssetField ( )
virtual

Member Function Documentation

◆ addDataKey()

S32 addDataKey ( const F32 time,
const F32 value )

◆ calculateFieldBV()

F32 calculateFieldBV ( const ParticleAssetField & base,
const ParticleAssetField & variation,
const F32 effectAge,
const bool modulate = false,
const F32 modulo = 0.0f )
static

◆ calculateFieldBVE()

F32 calculateFieldBVE ( const ParticleAssetField & base,
const ParticleAssetField & variation,
const ParticleAssetField & effect,
const F32 effectAge,
const bool modulate = false,
const F32 modulo = 0.0f )
static

◆ calculateFieldBVLE()

F32 calculateFieldBVLE ( const ParticleAssetField & base,
const ParticleAssetField & variation,
const ParticleAssetField & overlife,
const ParticleAssetField & effect,
const F32 effectTime,
const F32 particleAge,
const bool modulate = false,
const F32 modulo = 0.0f )
static

◆ clearDataKeys()

void clearDataKeys ( void )

◆ copyTo()

void copyTo ( ParticleAssetField & field)

◆ doesKeyExist()

bool doesKeyExist ( const F32 time)

◆ getDataKey()

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

◆ getDataKeyCount()

U32 getDataKeyCount ( void ) const
inline

◆ getDataKeyTime()

F32 getDataKeyTime ( const U32 index) const

◆ getDataKeyValue()

F32 getDataKeyValue ( const U32 index) const

◆ getDefaultValue()

F32 getDefaultValue ( void ) const
inline

◆ getFieldName()

StringTableEntry getFieldName ( void ) const
inline

◆ getFieldValue()

F32 getFieldValue ( F32 time) const

◆ getMaxTime()

F32 getMaxTime ( void ) const
inline

◆ getMaxValue()

F32 getMaxValue ( void ) const
inline

◆ getMinTime()

F32 getMinTime ( void ) const
inline

◆ getMinValue()

F32 getMinValue ( void ) const
inline

◆ getRepeatTime()

F32 getRepeatTime ( void ) const
inline

◆ getValueScale() [1/2]

F32 getValueScale ( void )
inline

◆ getValueScale() [2/2]

F32 getValueScale ( void ) const
inline

◆ initialize()

void initialize ( const F32 maxTime,
const F32 minValue,
const F32 maxValue,
const F32 defaultValue )

◆ onTamlCustomRead()

void onTamlCustomRead ( const TamlCustomNode * pCustomNode)

◆ onTamlCustomWrite()

void onTamlCustomWrite ( TamlCustomNode * pCustomNode)

◆ removeDataKey()

bool removeDataKey ( const U32 index)

◆ resetDataKeys()

void resetDataKeys ( void )

◆ setDataKeyValue()

bool setDataKeyValue ( const U32 index,
const F32 value )

◆ setFieldName()

void setFieldName ( const char * pFieldName)

◆ setRepeatTime()

bool setRepeatTime ( const F32 repeatTime)

◆ setSingleDataKey()

S32 setSingleDataKey ( const F32 value)

◆ setValueBounds()

void setValueBounds ( F32 maxTime,
F32 minValue,
F32 maxValue,
F32 defaultValue )

◆ setValueScale()

bool setValueScale ( const F32 valueScale)

◆ WriteCustomTamlSchema()

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

Member Data Documentation

◆ BadDataKey

ParticleAssetField::DataKey BadDataKey
static

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