NL3D::CPSDirection Class Reference

#include <ps_direction.h>

Inheritance diagram for NL3D::CPSDirection:

NL3D::CPSDirectionnalForce NL3D::CPSEmitterDirectionnal NL3D::CPSEmitterRectangle NL3D::CPSMagneticForce NL3D::CPSEmitterConic NL3D::CPSRadialEmitter

Detailed Description

This class is an interface for object for a particle system that need a direction (forces, emitter...) Some of these object support global value as a direction (see CParticleSystem::setGlobalVectorValue), so calls to setDir then have no effect.

Definition at line 40 of file ps_direction.h.

Public Member Functions

virtual void enableGlobalVectorValue (const std::string &name)
virtual NLMISC::CVector getDir (void) const=0
virtual std::string getGlobalVectorValueName () const
virtual void setDir (const NLMISC::CVector &v)=0
virtual bool supportGlobalVectorValue () const


Member Function Documentation

virtual void NL3D::CPSDirection::enableGlobalVectorValue const std::string &  name  )  [inline, virtual]
 

The direction is taken from a global vector defined in the particle system NULL or an empty string as a name disable the use of a global value

Reimplemented in NL3D::CPSDirectionnalForce.

Definition at line 49 of file ps_direction.h.

00049 {}      

virtual NLMISC::CVector NL3D::CPSDirection::getDir void   )  const [pure virtual]
 

Implemented in NL3D::CPSEmitterDirectionnal, NL3D::CPSEmitterRectangle, and NL3D::CPSDirectionnalForce.

virtual std::string NL3D::CPSDirection::getGlobalVectorValueName  )  const [inline, virtual]
 

Reimplemented in NL3D::CPSDirectionnalForce.

Definition at line 50 of file ps_direction.h.

00050 { return ""; }  

virtual void NL3D::CPSDirection::setDir const NLMISC::CVector v  )  [pure virtual]
 

Implemented in NL3D::CPSEmitterDirectionnal, NL3D::CPSEmitterRectangle, NL3D::CPSEmitterConic, and NL3D::CPSDirectionnalForce.

virtual bool NL3D::CPSDirection::supportGlobalVectorValue  )  const [inline, virtual]
 

Reimplemented in NL3D::CPSDirectionnalForce.

Definition at line 45 of file ps_direction.h.

00045 { return false; }


The documentation for this class was generated from the following file:
Generated on Tue Mar 16 07:06:53 2004 for NeL by doxygen 1.3.6