VR-Forces 4.1.1 Class Documentation
DtTacticalSmokeVisualizer.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
10 
11 #pragma once
12 
14 
15 #include <matrix/vlVector.h>
16 #include <matrix/vlTaitBryan.h>
17 
18 namespace makVrv
19 {
20  class DtSceneObjectAgent;
21  class DtSmokeStateListener;
22  class DtTacticalSmokeModelAgent;
23  class DtTacticalSmokeUpdaterAgent;
24 
28  : public DtStateVisualizer
29  {
30  public:
33  DtStateListener& listener, int modelSet );
34 
36  virtual ~DtTacticalSmokeVisualizer();
37 
39  virtual void setPuffLocation( int puffIndex, const DtVector& location );
40 
42  virtual void setPuffVelocity( int puffIndex, const DtVector& velocity );
43 
45  virtual void setPuffOrientation(
46  int puffIndex, const DtTaitBryan& orientation );
47 
49  virtual void setPuffAngularVelocity(
50  int puffIndex, const DtVector& angluarVelocity );
51 
53  virtual void setPuffDensity( int puffIndex, double density );
54 
56  virtual void setPuffDensityRate( int puffIndex, double densityRate );
57 
61  virtual void setPuffSigmas( int puffIndex, const DtVector& sigmas );
62 
64  virtual void setPuffSigmaRates(
65  int puffIndex, const DtVector& sigmaRates );
66 
68  virtual const DtStateVisualizer::TypeInfo& typeInfo() const;
69 
71  static const DtStateVisualizer::TypeInfo& theTypeInfo();
72 
73  protected:
75  virtual void createModelAgents();
77  virtual void destroyModelAgents();
78 
80  virtual void setModelDefinitionForAgents();
81 
82  // Initializes this visualizer from the given visualizer-definition.
83  virtual void setVisualizerDefinition(
84  const DtVisualizerDefinition& visDef );
85 
86  // Helper function to return the listener cast to a DtSmokeStateListener.
87  DtSmokeStateListener& smokeStateListener();
88 
89  private:
93 
97 
101 
102  protected:
104 
105  DtTacticalSmokeUpdaterAgent* mySmokeUpdater;
106  DtSceneObjectAgent* mySceneObject;
107  DtTacticalSmokeModelAgent* mySmokeModel;
108 
109  double myColorRed, myColorGreen, myColorBlue;
110 
112  };
113 
114 
117 }

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)