Public Member Functions | Private Attributes
Emitter Class Reference

The functions and elements of an Emitter. More...

#include <Emitter.h>

List of all members.

Public Member Functions

 Emitter (const ngl::Vec3 _location=ngl::Vec3(0, 0, 0), const float _size=1.0, const float _emitDensityRate=4.0, const float _emitTemperatureRate=4.0)
 Constructor for Emitter.
 ~Emitter ()
 Destructor for Emitter.
float getEmitDensityRate () const
 Gets the emit rate of the density.
float getEmitTemperatureRate () const
 Gets the emit rate of the temperature.
ngl::Vec3 getLocation () const
 Gets the location of the emitter.
float getSize () const
 Gets the size of the emitter.
void setEmitDensityRate (double _val)
 Sets the density rate of the emitter.
void setEmitTemperatureRate (double _val)
 Sets the temperature rate of the emitter.
void setLocation (const ngl::Vec3 _loc)
 Sets the emitter location.
void setSize (double _val)
 Sets the size of the emitter.

Private Attributes

float m_emitDensityRate
 The rate that the density is emitted (Density per Voxel per Second)
float m_emitTemperatureRate
 The rate that the temperature is emitted (Density per Voxel per Second)
ngl::Vec3 m_location
 The location of the emitter in the voxel grid.
float m_size
 The size of the emitter.

Detailed Description

The functions and elements of an Emitter.


Constructor & Destructor Documentation

Emitter::Emitter ( const ngl::Vec3  _location = ngl::Vec3(0,0,0),
const float  _size = 1.0,
const float  _emitDensityRate = 4.0,
const float  _emitTemperatureRate = 4.0 
)

Constructor for Emitter.

Parameters:
[in]_locationthe location of the emitter in the voxel grid domain.
[in]_sizethe size of the emitter (the radius).
[in]_emitDensityRatethe rate in which density is being emitted.
[in]_emitTemperatureRatethe rate in which temperature is being emitted.

1. Initialize the class member variables.

Destructor for Emitter.

1. De-allocate the memory.


Member Function Documentation

float Emitter::getEmitDensityRate ( ) const [inline]

Gets the emit rate of the density.

Returns:
the m_emitDensityRate variable
float Emitter::getEmitTemperatureRate ( ) const [inline]

Gets the emit rate of the temperature.

Returns:
the m_emitTemperatureRate variable
ngl::Vec3 Emitter::getLocation ( ) const [inline]

Gets the location of the emitter.

Returns:
the m_emitterLocation variable
float Emitter::getSize ( ) const [inline]

Gets the size of the emitter.

Returns:
the m_emitterSize variable
void Emitter::setEmitDensityRate ( double  _val) [inline]

Sets the density rate of the emitter.

Parameters:
[in]_valthe value to be set to the density rate of the emitter
void Emitter::setEmitTemperatureRate ( double  _val) [inline]

Sets the temperature rate of the emitter.

Parameters:
[in]_valthe value to be set to the temperature rate of the emitter
void Emitter::setLocation ( const ngl::Vec3  _loc) [inline]

Sets the emitter location.

Parameters:
[in]_locthe vector to be set to the emitter location
void Emitter::setSize ( double  _val) [inline]

Sets the size of the emitter.

Parameters:
[in]_valthe value to be set to the size of the emitter

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables