# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CPSParticle Class Reference

This is the base class for all particle A deriver must provide a drawing method for his particle Not sharable. More...

#include <ps_particle.h>

Inheritance diagram for NL3D::CPSParticle

Inheritance graph
[legend]
Collaboration diagram for NL3D::CPSParticle:

Collaboration graph
[legend]
List of all members.

Public Methods

 CPSParticle ()
 Constructor. More...

uint32 getType (void) const
 return this bindable type. More...

virtual uint32 getPriority (void) const
 return priority. More...

virtual void step (TPSProcessPass pass, CAnimationTime ellapsedTime)
 process one pass for the particles. More...

virtual void draw (void) = 0
 draw the particles.

virtual void newElement (void) = 0
 Generate a new element for this bindable. More...

virtual void deleteElement (uint32 index) = 0
 Delete an element given its index Attributes of the located that hold this bindable are still accessible for the index given index out of range -> nl_assert.

virtual void resize (uint32 size) = 0
 Resize the bindable attributes containers. More...

virtual void serial (NLMISC::IStream &f) throw (NLMISC::EStream)
 serialisation. Derivers must override this, and call their parent version. More...


Detailed Description

This is the base class for all particle A deriver must provide a drawing method for his particle Not sharable.

Author(s):
Nicolas Vizerie , Nevrax France
Date:
2001

Definition at line 52 of file ps_particle.h.


Constructor & Destructor Documentation

NL3D::CPSParticle::CPSParticle ( )
 

Constructor.

Definition at line 41 of file ps_particle.cpp.


Member Function Documentation

void NL3D::CPSParticle::deleteElement ( uint32 index ) [pure virtual]
 

Delete an element given its index Attributes of the located that hold this bindable are still accessible for the index given index out of range -> nl_assert.

Reimplemented from NL3D::CPSLocatedBindable.

Reimplemented in NL3D::CPSDot, NL3D::CPSFaceLookAt, NL3D::CPSFanLight, and NL3D::CPSTailDot.

void NL3D::CPSParticle::draw ( void ) [pure virtual]
 

draw the particles.

Reimplemented in NL3D::CPSDot, NL3D::CPSFaceLookAt, NL3D::CPSFanLight, and NL3D::CPSTailDot.

uint32 NL3D::CPSParticle::getPriority ( void ) const [inline, virtual]
 

return priority.

Reimplemented from NL3D::CPSLocatedBindable.

Definition at line 65 of file ps_particle.h.

uint32 NL3D::CPSParticle::getType ( void ) const [inline, virtual]
 

return this bindable type.

Reimplemented from NL3D::CPSLocatedBindable.

Definition at line 61 of file ps_particle.h.

void NL3D::CPSParticle::newElement ( void ) [pure virtual]
 

Generate a new element for this bindable.

They are generated according to the properties of the class

Returns:
true if it could be added

Reimplemented from NL3D::CPSLocatedBindable.

Reimplemented in NL3D::CPSDot, NL3D::CPSFaceLookAt, NL3D::CPSFanLight, and NL3D::CPSTailDot.

void NL3D::CPSParticle::resize ( uint32 size ) [pure virtual]
 

Resize the bindable attributes containers.

Size is the max number of element to be contained. DERIVERS MUST CALL THEIR PARENT VERSION should not be called directly. Call CPSLocated::resize() instead

Reimplemented from NL3D::CPSLocatedBindable.

Reimplemented in NL3D::CPSDot, NL3D::CPSFaceLookAt, NL3D::CPSFanLight, and NL3D::CPSTailDot.

void NL3D::CPSParticle::serial ( NLMISC::IStream & f ) throw (NLMISC::EStream) [inline, virtual]
 

serialisation. Derivers must override this, and call their parent version.

Reimplemented from NL3D::CPSLocatedBindable.

Reimplemented in NL3D::CPSDot, NL3D::CPSFaceLookAt, NL3D::CPSFanLight, and NL3D::CPSTailDot.

Definition at line 100 of file ps_particle.h.

void NL3D::CPSParticle::step ( TPSProcessPass pass,
CAnimationTime ellapsedTime ) [inline, virtual]
 

process one pass for the particles.

The default behaviour shows the particles

Reimplemented from NL3D::CPSLocatedBindable.

Definition at line 70 of file ps_particle.h.


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