VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTacticalSmokeModelInstance.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
14 
15 #include <osg/ref_ptr>
16 #include <osg/Switch>
17 #include <osg/Vec2>
18 #include <osg/Vec4>
19 
20 #include <string>
21 #include <vector>
22 
23 #include <matrix/vlVector.h>
24 
25 
26 namespace makVrv
27 {
28  class DtDe;
29  class DtModelDefinition;
30  class DtParticleSystemModelInstance;
31 
38  {
40 
41  public:
45 
48 
54  virtual bool realize(DtModelDefinition& definition);
55 
58  virtual void setVisible(bool isVisible);
59 
63  virtual void setPuffPosition(int puffIndex, const DtVector& fxSysPosition);
64 
67  virtual void setWindDirection(const DtVector& winddir);
68 
70  virtual void slot_handleWindDirectionChanged(float dir);
71 
73  virtual void slot_handleWindSpeedChanged(float speed);
74 
76  virtual void start();
77 
79  virtual void stop();
80 
82  virtual void pause();
83 
85  virtual void resume();
86 
87  protected:
89  virtual void destroyEffect();
90 
92  virtual void updateWind();
93 
95  virtual void createFxSystem(DtModelDefinition& definition);
96 
97  protected:
101 
102  float myWindSpeed;
105  bool myUpSet;
106  };
107 
108 
113  {
114  public:
115 
117  static void registerCreator(DtDe& de);
118 
121 
123  virtual DtModelInstance* create(DtDe& de);
124 
125  protected:
127  };
128 
129 
130 }
131 
The base class for all model instances.
Definition: DtModelInstance.h:39
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
virtual ~DtTacticalSmokeModelInstanceCreator()
DTOR.
Definition: DtTacticalSmokeModelInstance.h:120
DtSignalConnectionManager myConnections
Definition: DtTacticalSmokeModelInstance.h:100
A model definition Interaction any number of named parameters, and also can be used to store cached d...
Definition: DtModelDefinition.h:38
Contains makVrv::DtOsgModelInstance class.
DtVector myUp
Definition: DtTacticalSmokeModelInstance.h:104
The base class for simple OSG based model instances.
Definition: DtOsgModelInstance.h:76
DtTacticalSmokeModelInstanceCreator()
Definition: DtTacticalSmokeModelInstance.h:126
The polymorphic creator for the DtModelInstance.
Definition: DtModelInstance.h:148
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
DtVector myPosition
Definition: DtTacticalSmokeModelInstance.h:99
float myWindDirection
Definition: DtTacticalSmokeModelInstance.h:103
A virtual base class for a particle effect from a model definition.
Definition: DtParticleSystemModelInstance.h:35
A Creator for the makVrv::DtTacticalSmokeModelInstance class.
Definition: DtTacticalSmokeModelInstance.h:111
Contains DLL export macros.
bool myUpSet
Definition: DtTacticalSmokeModelInstance.h:105
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
float myWindSpeed
Definition: DtTacticalSmokeModelInstance.h:102
DtParticleSystemModelInstance * myFxCloud
Definition: DtTacticalSmokeModelInstance.h:98
A model instance of a tactical smoke cloud consisting of several puffs of smoke.
Definition: DtTacticalSmokeModelInstance.h:37

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)