VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions
makVrv::DtParticleSystemModelInstance Class Referenceabstract

A virtual base class for a particle effect from a model definition.

Inheritance diagram for makVrv::DtParticleSystemModelInstance:
Inheritance graph
[legend]

Public Member Functions

virtual void setIntensity (float intensity)=0
 
virtual void setScale (float scale)=0
 
virtual void setIgnoreModelScaling (bool ignoreModelScaling)=0
 
virtual bool ignoreModelScaling () const =0
 
virtual void setDuration (double seconds)=0
 
virtual void setWind (const DtVector &windVector, const DtVector &up)=0
 
virtual void setMaxParticlesToEmit (int max)=0
 
virtual bool realize (const DtModelDefinition &definition)=0
 
virtual osg::Node * getOrLoadFromDefinition (const DtModelDefinition &definition)=0
 
virtual void addToConnector (DtOsgSceneConnector *connector)=0
 
virtual bool removeFromConnector (DtOsgSceneConnector *connector)=0
 
virtual void stop ()=0
 
virtual void start ()=0
 
virtual void pause ()=0
 
virtual void resume ()=0
 
virtual void setVisible (bool isVisible)=0
 
virtual void setOffset (const DtVector &offset)=0
 
virtual void setArtPart (int artPart)=0
 
virtual void setPosition (double x, double y, double z)=0
 
virtual void setPosition (int index, double x, double y, double z)=0
 
- Public Member Functions inherited from makVrv::DtOsgModelInstance
virtual ~DtOsgModelInstance ()
 
virtual bool cloneInstance (const DtModelDefinition &definition)
 
virtual bool saveModelToFile (const std::string &filename) const
 
virtual void enableColorBlending (bool b)
 
virtual void setBlendColor (float r, float g, float b, float a)
 
virtual void enableTexture (bool onOff)
 
virtual osg::Node * rootNode ()
 
virtual const osg::Node * rootNode () const
 
virtual osg::Node * sensorNode ()
 
virtual const osg::Node * sensorNode () const
 
virtual void setDynamicSensorRegion (const std::string &region, bool state)
 
virtual bool dynamicSensorRegion (const std::string &region)
 
virtual const
SensorRegionStateMap
dynamicSensorRegionMap () const
 
virtual void slot_atcGlobalModelEnableChanged ()
 
virtual bool alphaToCoverageEnabled ()
 
- Public Member Functions inherited from makVrv::DtModelInstance
 DtModelInstance (DtDe &de)
 
virtual ~DtModelInstance ()
 
const std::string & realizedDefinitionName () const
 
const DtVectorboundingBoxExtents () const
 
void getBoundingBoxExtents (double &x, double &y, double &z) const
 
const DtVectorboundingBoxCenter () const
 
void getBoundingBoxCenter (double &x, double &y, double &z) const
 
void getBoundingBoxComponents (DtVector &minimum, DtVector &maximum)
 
const DtVectorallGeometryboundingBoxExtents () const
 
void getAllGeometryBoundingBoxExtents (double &x, double &y, double &z) const
 
const DtVectorallGeometryboundingBoxCenter () const
 
void getAllGeometryBoundingBoxCenter (double &x, double &y, double &z) const
 
void getAllGeometryBoundingBoxComponents (DtVector &minimum, DtVector &maximum)
 
virtual void setContributesToBound (bool trueOrFalse)
 
bool contributesToBound () const
 

Protected Member Functions

 DtParticleSystemModelInstance (DtDe &de)
 
- Protected Member Functions inherited from makVrv::DtOsgModelInstance
 DtOsgModelInstance (DtDe &de)
 
virtual void updateColorBlending ()
 
virtual void updateColorBlending (osg::Node *node)
 
virtual void enableTexture (osg::Node *root, bool onOff)
 
virtual void updateBoundingBoxViaContents ()
 
virtual void setRootNode (osg::Node *node)
 
virtual void setUpDepthTest (osg::StateSet *stateSet)
 

Additional Inherited Members

- Public Types inherited from makVrv::DtOsgModelInstance
enum  AlphaToCoverageState { USE_GLOBAL, FORCE_OFF, FORCE_ON }
 
typedef std::unordered_map
< std::string, bool
SensorRegionStateMap
 
- Static Public Member Functions inherited from makVrv::DtModelInstance
static float readFloat (const std::string &paramName, const DtModelDefinition &definition)
 
static DtVector readVector (const std::string &paramName, const DtModelDefinition &definition)
 
static DtVector4< float > readVector4 (const std::string &paramName, const DtModelDefinition &definition)
 
- Public Attributes inherited from makVrv::DtOsgModelInstance
boost::signalslib::signal
< void(const std::string &) > 
signal_dynamicSensorRegionAdded
 
boost::signalslib::signal
< void(const std::string
&, bool) > 
signal_dynamicSensorRegionChanged
 
boost::signalslib::signal
< void(bool)> 
signal_atcModeEnableChanged
 
- Public Attributes inherited from makVrv::DtModelInstance
boost::signalslib::signal
< void(DtModelInstance *)> 
signal_modelInstanceChanged
 
- Protected Attributes inherited from makVrv::DtOsgModelInstance
osg::ref_ptr< osg::Node > myModelRoot
 
osg::ref_ptr< osg::StateSet > myCachedState
 
SensorRegionStateMap mySensorRegionMap
 
AlphaToCoverageState myAlphaToCoverageState
 
DtSignalConnectionManager myConnections
 
bool myModelInstanceShaderSet
 
- Protected Attributes inherited from makVrv::DtModelInstance
DtDemyDe
 
std::string myRealizedModelDefinitionName
 
DtVector myBoundingBoxCenter
 
DtVector myBoundingBoxExtents
 
DtVector myBoundingBoxMinimum
 
DtVector myBoundingBoxMaximum
 
DtVector myAllGeometryBoundingBoxCenter
 
DtVector myAllGeometryBoundingBoxExtents
 
DtVector myAllGeometryBoundingBoxMinimum
 
DtVector myAllGeometryBoundingBoxMaximum
 
bool myContributesToBound
 
bool myColorBlendingEnabled
 
float myBlendRed
 
float myBlendBlue
 
float myBlendGreen
 
float myBlendAlpha
 

Constructor & Destructor Documentation

makVrv::DtParticleSystemModelInstance::DtParticleSystemModelInstance ( DtDe de)
inlineprotected

Create the effect, no op constructor.

Member Function Documentation

virtual void makVrv::DtParticleSystemModelInstance::setIntensity ( float  intensity)
pure virtual
virtual void makVrv::DtParticleSystemModelInstance::setScale ( float  scale)
pure virtual
virtual void makVrv::DtParticleSystemModelInstance::setIgnoreModelScaling ( bool  ignoreModelScaling)
pure virtual

Sets Whether ignore scaling the particle by distance when you enable the "XR" mode. This can be configured from "ignoreModelScaling" in the model definition. Default is true.

Implemented in makVrv::DtFxParticleSystemModelInstance.

virtual bool makVrv::DtParticleSystemModelInstance::ignoreModelScaling ( ) const
pure virtual

Get whether model scaling is disabled for this model instance.

Implemented in makVrv::DtFxParticleSystemModelInstance.

virtual void makVrv::DtParticleSystemModelInstance::setDuration ( double  seconds)
pure virtual

Set the effect duration.

Implemented in makVrv::DtFxParticleSystemModelInstance.

virtual void makVrv::DtParticleSystemModelInstance::setWind ( const DtVector windVector,
const DtVector up 
)
pure virtual

Set the effect wind.

Implemented in makVrv::DtFxParticleSystemModelInstance.

virtual void makVrv::DtParticleSystemModelInstance::setMaxParticlesToEmit ( int  max)
pure virtual

Set the maximum number of particles to emit.

Implemented in makVrv::DtFxParticleSystemModelInstance.

virtual bool makVrv::DtParticleSystemModelInstance::realize ( const DtModelDefinition definition)
pure virtual

Attempt to realize a definition. If the model instance can't realize the definition it should return false.

Reimplemented from makVrv::DtOsgModelInstance.

Implemented in makVrv::DtFxParticleSystemModelInstance.

virtual osg::Node* makVrv::DtParticleSystemModelInstance::getOrLoadFromDefinition ( const DtModelDefinition definition)
pure virtual

Load a node from a file, or from the cache if possible.

Implemented in makVrv::DtFxParticleSystemModelInstance.

virtual void makVrv::DtParticleSystemModelInstance::addToConnector ( DtOsgSceneConnector connector)
pure virtual

Tell the model instance to add itself to the provided node.

Reimplemented from makVrv::DtOsgModelInstance.

Implemented in makVrv::DtFxParticleSystemModelInstance.

virtual bool makVrv::DtParticleSystemModelInstance::removeFromConnector ( DtOsgSceneConnector connector)
pure virtual

Tell the model instance to remove itself from the provided node.

Reimplemented from makVrv::DtOsgModelInstance.

Implemented in makVrv::DtFxParticleSystemModelInstance.

virtual void makVrv::DtParticleSystemModelInstance::stop ( )
pure virtual

Tell the model to stop emitting particles.

Implemented in makVrv::DtFxParticleSystemModelInstance, and makVrv::DtParticleRotorWashModelInstance.

virtual void makVrv::DtParticleSystemModelInstance::start ( )
pure virtual

Tell the model to start emitting particles.

Implemented in makVrv::DtFxParticleSystemModelInstance, and makVrv::DtParticleRotorWashModelInstance.

virtual void makVrv::DtParticleSystemModelInstance::pause ( )
pure virtual

Freeze the particle emitters.

Implemented in makVrv::DtFxParticleSystemModelInstance.

virtual void makVrv::DtParticleSystemModelInstance::resume ( )
pure virtual

resume the particle emitters.

Implemented in makVrv::DtFxParticleSystemModelInstance.

virtual void makVrv::DtParticleSystemModelInstance::setVisible ( bool  isVisible)
pure virtual

stops the emission of particles

Implements makVrv::DtModelInstance.

Implemented in makVrv::DtFxParticleSystemModelInstance, and makVrv::DtParticleRotorWashModelInstance.

virtual void makVrv::DtParticleSystemModelInstance::setOffset ( const DtVector offset)
pure virtual

sets the offset of the particles system rel to model origin or articulated part

Implemented in makVrv::DtFxParticleSystemModelInstance, and makVrv::DtParticleRotorWashModelInstance.

virtual void makVrv::DtParticleSystemModelInstance::setArtPart ( int  artPart)
pure virtual

sets the articulated articulated part to attach system to.

Implemented in makVrv::DtFxParticleSystemModelInstance.

virtual void makVrv::DtParticleSystemModelInstance::setPosition ( double  x,
double  y,
double  z 
)
pure virtual

sets the position of the system explicitly.

Implemented in makVrv::DtFxParticleSystemModelInstance.

virtual void makVrv::DtParticleSystemModelInstance::setPosition ( int  index,
double  x,
double  y,
double  z 
)
pure virtual

sets the position of a sub emitter .

Implemented in makVrv::DtFxParticleSystemModelInstance.


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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)