VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtParticleSystemModelInstance.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2026 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvOsg/vrvOsg.h>
14 #include <vrvOsg/DtOsgRibbon.h>
15 
16 #include <matrix/vlVector.h>
17 
18 #include <osg/ref_ptr>
19 #include <osg/BoundingBox>
20 #include <osg/MatrixTransform>
21 
22 namespace osg
23 {
24  class Geode;
25  class Group;
26 }
27 
28 
29 namespace makVrv
30 {
31  class DtDefinitionCachePayload;
32  class DtOsgParticleSystemEffect;
33 
37  {
38  public:
39 
41  virtual void setIntensity(float intensity) = 0;
42 
44  virtual void setScale(float scale) = 0;
45 
49  virtual void setIgnoreModelScaling(bool ignoreModelScaling) = 0;
50 
52  virtual bool ignoreModelScaling() const = 0;
53 
55  virtual void setDuration(double seconds) = 0;
56 
58  virtual void setWind(const DtVector& windVector, const DtVector& up) = 0;
59 
61  virtual void setMaxParticlesToEmit(int max) = 0;
62 
65  virtual bool realize(const DtModelDefinition& definition) = 0;
66 
78  virtual osg::Node* getOrLoadFromDefinition(const DtModelDefinition& definition,
79  const std::string& filename, const DtModelLoadParams& params,
80  DtDefinitionCachePayload* payload) = 0;
81 
83  virtual void addToConnector( DtOsgSceneConnector* connector ) = 0;
84 
86  virtual bool removeFromConnector( DtOsgSceneConnector* connector ) = 0;
87 
89  virtual void stop() = 0;
90 
92  virtual void start() = 0;
93 
95  virtual void pause() = 0;
96 
98  virtual void resume() = 0;
99 
101  virtual void setVisible(bool isVisible) = 0;
102 
104  virtual void setOffset(const DtVector& offset) = 0;
105 
107  virtual void setArtPart(int artPart) = 0;
108 
110  virtual void setPosition(double x, double y, double z) = 0;
111 
113  virtual void setPosition(int index, double x, double y, double z) = 0;
114 
115  protected:
116 
119  ;
120  }
121 
122 
123  };
124 
125 }
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
A model definition Interaction any number of named parameters, and also can be used to store cached d...
Definition: DtModelDefinition.h:44
Contains makVrv::DtOsgModelInstance class.
DtOsgSceneConnector is used by models to create an OSG position/orientation transform so that it can ...
Definition: DtOsgSceneConnector.h:77
The base class for simple OSG based model instances. This call can&#39;t be instantiated itself...
Definition: DtOsgModelInstance.h:77
A virtual base class for a particle effect from a model definition.
Definition: DtParticleSystemModelInstance.h:36
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
Base class for ribbons.
voidpf uLong offset
Definition: ioapi.h:42
DtParticleSystemModelInstance(DtDe &de)
Create the effect, no op constructor.
Definition: DtParticleSystemModelInstance.h:118
Parameters pre-read from a DtModelDefinition, either from the live definition on the main thread via ...
Definition: DtModelLoadParams.h:34
Accumulates definition cache entries produced by a background load.
Definition: DtDefinitionCachePayload.h:37

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)