3ds Max C++ API Reference
Loading...
Searching...
No Matches
IParticleChannelAmount.h

Functions

virtual int Count () const =0
 Particle count management; number of particles in the channel.
FPInterfaceDescGetDesc ()
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 IObjectSplit (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.
FPInterfaceDescGetDesc ()

Detailed Description

Function Documentation

◆ Count()

virtual int Count ( ) const
pure virtual

Particle count management; number of particles in the channel.

◆ GetDesc() [1/2]

FPInterfaceDesc * GetDesc ( )
inlinevirtual
Remarks
Returns a pointer to the class which contains the interface metadata.

Implements FPInterface.

#define PARTICLECHANNELAMOUNTR_INTERFACE
Definition IParticleChannelAmount.h:22
virtual FPInterfaceDesc * GetDescByID(Interface_ID id)
Definition ifnpub.h:619

◆ ZeroCount()

virtual void ZeroCount ( )
pure virtual

set number of particles in the channel to zero

◆ SetCount()

virtual bool SetCount ( int n)
pure virtual

set number of particles in the channel to n

◆ Delete() [1/2]

virtual int Delete ( int start,
int num )
pure virtual

Delete num particles from start index.

Returns number of particles left in the channel.

◆ Delete() [2/2]

virtual int Delete ( BitArray & toRemove)
pure virtual

Delete particles according to the BitArray (bit set == remove).

Returns number of particles left in the channel

◆ Split()

virtual IObject * Split ( BitArray & toSplit)
pure virtual

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.

◆ Spawn()

virtual bool Spawn ( Tab< int > & spawnTable)
pure virtual

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.

◆ AppendNum()

virtual bool AppendNum ( int num)
pure virtual

Append num particles to the channel(s).

Returns true if the operation is successful.

◆ Append()

virtual bool Append ( IObject * obj)
pure virtual

Append all particles of another channel/container, then the input channel/container is deleted.

Returns true if the operation is successful.

◆ ResetAddedAmount()

virtual void ResetAddedAmount ( )
inlinevirtual

For internal use; no need to implement.

144{ ; }

◆ GetAddedAmount()

virtual int GetAddedAmount ( )
inlinevirtual

For internal use; no need to implement.

149{ return 0; }

◆ GetDesc() [2/2]

FPInterfaceDesc * GetDesc ( )
inlinevirtual
Remarks
Returns a pointer to the class which contains the interface metadata.

Implements FPInterface.

#define PARTICLECHANNELAMOUNTW_INTERFACE
Definition IParticleChannelAmount.h:23