Support Forum       G3D Web Page     
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
G3D::ParticleSystemModel::Emitter Class Reference

All properties are in object space. More...

Inherits G3D::ReferenceCountedObject.

Classes

class  SpawnLocation
 
class  Specification
 

Public Member Functions

virtual void spawnParticles (ParticleSystem *system, int numParticlesToEmit, SimTime time, SimTime timeSinceParticleSystemInit, SimTime deltaTime, int emitterIndex) const
 
const Specificationspecification () const
 

Static Public Member Functions

static shared_ptr< Emittercreate (const Specification &s)
 

Protected Member Functions

 Emitter (const Specification &s)
 

Static Protected Member Functions

template<class T , class ... ArgTypes>
static shared_ptr< T > createShared (ArgTypes &&... args)
 Like std::make_shared, but works for protected constructors. More...
 

Protected Attributes

shared_ptr< ParticleMaterialm_material
 
shared_ptr< Shapem_spawnShape
 
Specification m_specification
 

Friends

class ParticleSystem
 
class ParticleSystemModel
 

Detailed Description

All properties are in object space.

Constructor & Destructor Documentation

◆ Emitter()

G3D::ParticleSystemModel::Emitter::Emitter ( const Specification s)
explicitprotected

Referenced by create().

Member Function Documentation

◆ create()

static shared_ptr<Emitter> G3D::ParticleSystemModel::Emitter::create ( const Specification s)
inlinestatic

◆ createShared()

template<class T , class ... ArgTypes>
static shared_ptr<T> G3D::ReferenceCountedObject::createShared ( ArgTypes &&...  args)
inlinestaticprotectedinherited

Like std::make_shared, but works for protected constructors.

Call as createShared<myclass>.

◆ spawnParticles()

virtual void G3D::ParticleSystemModel::Emitter::spawnParticles ( ParticleSystem system,
int  numParticlesToEmit,
SimTime  time,
SimTime  timeSinceParticleSystemInit,
SimTime  deltaTime,
int  emitterIndex 
) const
virtual
Parameters
initialSpawnTrue during instantiation of the ParticleSystem.

◆ specification()

const Specification& G3D::ParticleSystemModel::Emitter::specification ( ) const
inline

Friends And Related Function Documentation

◆ ParticleSystem

friend class ParticleSystem
friend

◆ ParticleSystemModel

friend class ParticleSystemModel
friend

Member Data Documentation

◆ m_material

shared_ptr<ParticleMaterial> G3D::ParticleSystemModel::Emitter::m_material
protected

◆ m_spawnShape

shared_ptr<Shape> G3D::ParticleSystemModel::Emitter::m_spawnShape
protected

◆ m_specification

Specification G3D::ParticleSystemModel::Emitter::m_specification
protected

Referenced by specification().


documentation generated on Wed Nov 24 2021 08:01:59 using doxygen 1.8.15