Functions |
|
virtual int | Count () const =0 |
Particle count management; number of
particles in the channel. |
|
FPInterfaceDesc * | GetDesc () |
BEGIN_FUNCTION_MAP | VFN_0 (kZeroCount, ZeroCount) |
FN_1 (kSetCount, TYPE_bool, SetCount, TYPE_INT) | |
FN_2 (kDeleteByIndex, TYPE_INT, Delete, TYPE_INT, TYPE_INT) | |
FN_1 (kDeleteByArray, TYPE_INT, Delete, TYPE_BITARRAY_BR) | |
FN_1 (kSplit, TYPE_IOBJECT, Split, TYPE_BITARRAY_BR) | |
FN_1 (kSpawn, TYPE_bool, Spawn, TYPE_INT_TAB_BR) | |
FN_1 (kAppendNum, TYPE_bool, AppendNum, TYPE_INT) | |
FN_1 (kAppend, TYPE_bool, Append, TYPE_IOBJECT) | |
virtual void | ZeroCount ()=0 |
set number of particles in the channel to
zero |
|
virtual bool | SetCount (int n)=0 |
set number of particles in the channel to n
|
|
virtual int | Delete (int start, int num)=0 |
Delete num particles from start index.
|
|
virtual int | Delete (BitArray &toRemove)=0 |
Delete particles according to the BitArray (bit set == remove).
|
|
virtual IObject * | Split (BitArray &toSplit)=0 |
To new "split" particle channel. |
|
virtual bool | Spawn (Tab< int > &spawnTable)=0 |
Spawn particles according to the spawnTable.
|
|
virtual bool | AppendNum (int num)=0 |
Append num particles to the channel(s).
|
|
virtual bool | Append (IObject *obj)=0 |
Append all particles of another
channel/container, then the input channel/container is deleted.
|
|
virtual void | ResetAddedAmount () |
For internal use; no need to implement.
|
|
virtual int | GetAddedAmount () |
For internal use; no need to implement.
|
|
FPInterfaceDesc * | GetDesc () |
int Count | ( | ) | const [pure virtual, inherited] |
Particle count management; number of particles in the channel.
FPInterfaceDesc * GetDesc | ( | ) | [inline, virtual, inherited] |
Implements FPInterface.
{ return GetDescByID(PARTICLECHANNELAMOUNTR_INTERFACE); }
BEGIN_FUNCTION_MAP VFN_0 | ( | kZeroCount | , |
ZeroCount | |||
) | [inherited] |
FN_1 | ( | kSetCount | , |
TYPE_bool | , | ||
SetCount | , | ||
TYPE_INT | |||
) | [inherited] |
FN_2 | ( | kDeleteByIndex | , |
TYPE_INT | , | ||
Delete | , | ||
TYPE_INT | , | ||
TYPE_INT | |||
) | [inherited] |
FN_1 | ( | kDeleteByArray | , |
TYPE_INT | , | ||
Delete | , | ||
TYPE_BITARRAY_BR | |||
) | [inherited] |
FN_1 | ( | kSplit | , |
TYPE_IOBJECT | , | ||
Split | , | ||
TYPE_BITARRAY_BR | |||
) | [inherited] |
FN_1 | ( | kSpawn | , |
TYPE_bool | , | ||
Spawn | , | ||
TYPE_INT_TAB_BR | |||
) | [inherited] |
FN_1 | ( | kAppendNum | , |
TYPE_bool | , | ||
AppendNum | , | ||
TYPE_INT | |||
) | [inherited] |
FN_1 | ( | kAppend | , |
TYPE_bool | , | ||
Append | , | ||
TYPE_IOBJECT | |||
) | [inherited] |
void ZeroCount | ( | ) | [pure virtual, inherited] |
set number of particles in the channel to zero
bool SetCount | ( | int | n | ) | [pure virtual, inherited] |
set number of particles in the channel to n
int Delete | ( | int | start, |
int | num | ||
) | [pure virtual, inherited] |
Delete num particles from start index.
Returns number of particles left in the channel.
int Delete | ( | BitArray & | toRemove | ) | [pure virtual, inherited] |
Delete particles according to the BitArray (bit set == remove).
Returns number of particles left in the channel
To new "split" particle channel.
Returns new particle channel; IObject type is chosen to be compatible with the available return types. All "bit-set" particles are moved.
bool Spawn | ( | Tab< int > & | spawnTable | ) | [pure virtual, inherited] |
Spawn particles according to the spawnTable.
Returns true if the operation is successful. Size of the table equals to number of particles in the channel. Table value is how many particles are cloned from the index particle.
bool AppendNum | ( | int | num | ) | [pure virtual, inherited] |
Append num particles to the channel(s).
Returns true if the operation is successful.
bool Append | ( | IObject * | obj | ) | [pure virtual, inherited] |
Append all particles of another channel/container, then the input channel/container is deleted.
Returns true if the operation is successful.
void ResetAddedAmount | ( | ) | [inline, virtual, inherited] |
int GetAddedAmount | ( | ) | [inline, virtual, inherited] |
FPInterfaceDesc * GetDesc | ( | ) | [inline, virtual, inherited] |
Implements FPInterface.
{ return GetDescByID(PARTICLECHANNELAMOUNTW_INTERFACE); }