VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtOsgParticleSystemModel.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtOsgParticleSystemModel.h,v $ $Revision: 1.17 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtOsgParticleSystemModel_H_
14 #define DtOsgParticleSystemModel_H_
15 
16 #include <vrvOsg/vrvOsg.h>
18 #include <osg/Group>
19 #include <matrix/vlVector.h>
20 
21 namespace makVrv
22 {
23  class DtOsgSceneConnector;
24  class DtParticleSystemModelInstance;
25 
29  {
30  public:
31 
34 
36  virtual ~DtOsgParticleSystemModel();
37 
39  virtual void setModelDefinition( const std::string& str );
40 
43  virtual std::string className() const;
44 
46  virtual void setIntensity(float intensity);
47 
49  virtual void setScale(float scale);
50 
52  virtual void setDuration(double seconds);
53 
55 
56  virtual void setPosition(int vtx, const DtVector& position);
57  virtual void setOrientation(int vtx, const DtTaitBryan& orientation);
59 
61  virtual void setWindDirection(const DtVector& direction);
62 
64  virtual void stop();
65 
67  virtual void start();
68 
70  virtual void pause();
71 
72  virtual void resume();
73 
75  virtual void setVisible(bool isVisible);
76 
80  virtual void setIsSupportModel(bool isSupport);
81 
82  protected:
83 
84  virtual void addToScene(const DtUniqueID& id, int modelSet,
85  int visualizerType);
86 
87  virtual void addToSceneAsProp( const DtUniqueID& sceneObjectId);
88 
89  virtual void removeFromScene();
90 
91  protected:
92  virtual void slot_handleWindDirectionChanged(float dir);
93  virtual void slot_handleWindSpeedChanged(float speed);
94  virtual void updateWind();
95 
97  double myIntensity;
99  double myScale;
101  double myDuration;
107  DtTaitBryan myOrientation;
109 
110  float myWindSpeed;
113  bool myUpSet;
114  };
115 }
116 
117 #endif
118 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)