# 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::CPSEmitterConic Class Reference

The same as a directionnel emitter, but you can also specify the radius for emission. More...

#include <ps_emitter.h>

Inheritance diagram for NL3D::CPSEmitterConic:

NL3D::CPSEmitterDirectionnal NL3D::CPSEmitter NL3D::CPSModulatedEmitter NL3D::CPSDirection NL3D::CPSLocatedBindable NLMISC::IStreamable NLMISC::IClassable List of all members.

Public Methods

 CPSEmitterConic ()
virtual void serial (NLMISC::IStream &f) throw (NLMISC::EStream)
 ==========================================================================. More...

 NLMISC_DECLARE_CLASS (CPSEmitterConic)
virtual void emit (const NLMISC::CVector &srcPos, uint32 index, NLMISC::CVector &pos, NLMISC::CVector &speed)
 ==========================================================================. More...

void setRadius (float r)
 Set a new radius for emission. More...

float getRadius (void) const
 Get the emission radius. More...

virtual void setDir (const NLMISC::CVector &v)
 ==========================================================================. More...


Protected Attributes

float _Radius

Detailed Description

The same as a directionnel emitter, but you can also specify the radius for emission.

Definition at line 556 of file ps_emitter.h.


Constructor & Destructor Documentation

NL3D::CPSEmitterConic::CPSEmitterConic   [inline]
 

Definition at line 560 of file ps_emitter.h.

References NL3D::CPSLocatedBindable::_Name, and _Radius.


Member Function Documentation

void NL3D::CPSEmitterConic::emit const NLMISC::CVector   srcPos,
uint32    index,
NLMISC::CVector   pos,
NLMISC::CVector   speed
[virtual]
 

==========================================================================.

Reimplemented from NL3D::CPSEmitterDirectionnal.

Definition at line 1410 of file ps_emitter.cpp.

References NL3D::CPSEmitterDirectionnal::_Dir, NL3D::CPSEmitter::_EmittedType, NL3D::CPSModulatedEmitter::_EmitteeSpeed, NL3D::CPSModulatedEmitter::_EmitteeSpeedScheme, NL3D::CPSLocatedBindable::_Owner, _Radius, index, nlassert, and NLMISC::CVector::normalize.

float NL3D::CPSEmitterConic::getRadius void    const [inline]
 

Get the emission radius.

Definition at line 578 of file ps_emitter.h.

References _Radius.

NL3D::CPSEmitterConic::NLMISC_DECLARE_CLASS CPSEmitterConic   
 

Reimplemented from NL3D::CPSEmitterDirectionnal.

void NL3D::CPSEmitterConic::serial NLMISC::IStream   f throw (NLMISC::EStream) [virtual]
 

==========================================================================.

Reimplemented from NL3D::CPSEmitterDirectionnal.

Definition at line 1395 of file ps_emitter.cpp.

void NL3D::CPSEmitterConic::setDir const NLMISC::CVector   v [virtual]
 

==========================================================================.

Reimplemented from NL3D::CPSEmitterDirectionnal.

Definition at line 1403 of file ps_emitter.cpp.

References v.

void NL3D::CPSEmitterConic::setRadius float    r [inline]
 

Set a new radius for emission.

Definition at line 575 of file ps_emitter.h.

References _Radius, and r.


Member Data Documentation

float NL3D::CPSEmitterConic::_Radius [protected]
 

Definition at line 586 of file ps_emitter.h.

Referenced by CPSEmitterConic, emit, getRadius, and setRadius.


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