VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgTacticalSmokeModel.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 
16 #include <vrvCore/DtUniqueID.h>
17 
18 #include <matrix/vlVector.h>
19 #include <matrix/vlTaitBryan.h>
20 
21 namespace makVrv
22 {
23 
24  class DtDe;
25  class DtOsgSceneConnector;
26 
30  {
31  public:
32 
37 
39  virtual ~DtOsgTacticalSmokeModel();
40 
44  virtual const std::string& className() const;
45 
46  //@name Distributed Interface
48 
52  virtual void setPosition(int vtx, const DtVector& pos);
53 
57  virtual void setOrientation(int vtx, const DtTaitBryan& ori);
58 
61  virtual void setVisible(bool isVisible);
62 
66  virtual void setIsSupportModel(bool isSupport);
67 
70  virtual void setWindDirection(const DtVector& winddir);
71 
73  virtual void start();
74 
76  virtual void stop();
77 
79  virtual void pause();
80 
82  virtual void resume();
83 
85 
87  virtual void setModelDefinition(const std::string& str);
88 
89  //@name Inherited DtModel methods
91 
93  virtual void addToScene(
94  const DtUniqueID& id, int modelSet, int visualizerType);
95 
97  virtual void removeFromScene();
98 
100 
101  private:
103  void removeInstanceFromScene();
104 
108  {
109  return dynamic_cast<DtTacticalSmokeModelInstance*>(modelInstance());
110  }
111 
112  private:
116 
120 
124 
125  private:
128  DtTaitBryan myOrientation;
132  };
133 
134 }
Contains the declaration for makVrv::DtTacticalSmokeModelInstance.
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtTaitBryan myOrientation
Definition: DtOsgTacticalSmokeModel.h:128
DtOsgSceneConnector * mySceneConnector
Definition: DtOsgTacticalSmokeModel.h:126
bool myPositionIsSet
Definition: DtOsgTacticalSmokeModel.h:129
DtOsgSceneConnector is used by models to create an OSG position/orientation transform so that it can ...
Definition: DtOsgSceneConnector.h:76
DtTacticalSmokeModelInstance * tacticalSmokeModelInstance()
A helper function to cast the base-class DtModelInstance pointer into a DtTacticalSmokeModelInstance ...
Definition: DtOsgTacticalSmokeModel.h:107
DtVector myPosition
Definition: DtOsgTacticalSmokeModel.h:127
A model of a tactical smoke cloud made up of several smoke-puffs.
Definition: DtOsgTacticalSmokeModel.h:29
bool myOrientationIsSet
Definition: DtOsgTacticalSmokeModel.h:130
Contains the declaration for makVrv::DtTacticalSmokeModel.
Contains makVrv::DtUniqueID type.
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:70
A model of a tactical smoke cloud made up of several smoke-puffs.
Definition: DtTacticalSmokeModel.h:25
bool myOrientUp
Definition: DtOsgTacticalSmokeModel.h:131
A model instance of a tactical smoke cloud consisting of several puffs of smoke. This requires the us...
Definition: DtTacticalSmokeModelInstance.h:40

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)