VR-Forces 4.1 Class Documentation
DtParticleSystemModelInstance.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 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 namespace makVrv
29 {
30  class DtParticleEffect;
31 
35  {
36  public:
37 
39 
42 
44  virtual void setIntensity(float intensity);
45 
47  virtual void setScale(float scale);
48 
50  virtual void setDuration(double seconds);
51 
53  virtual void setWind(const DtVector& windVector);
54 
57  //virtual void setPosition( const DtVector& position);
58 
61  virtual bool realize(DtModelDefinition& definition);
62 
63  virtual osg::Node* buildEffectNode( DtModelDefinition &definition );
64 
66  virtual void addToConnector( DtOsgSceneConnector* connector );
67 
69  virtual bool removeFromConnector( DtOsgSceneConnector* connector );
70 
72  virtual void stop();
73 
75  virtual void start();
76 
78  virtual void pause();
79 
80  virtual void resume();
81 
83  virtual void setVisible(bool isVisible) {}
84 
85  protected:
86 
89 
90  osg::BoundingBox calculateParentExtents(osg::Node* parent);
91 
93  osg::Node* findFromCache(DtModelDefinition& definition);
94 
96  osg::Node* loadNode(const std::string& filenameParam, const std::string& resourcePathList );
97 
98  protected:
99  osg::ref_ptr<DtParticleEffect> myEffect;
100  };
101 
105  {
106  public:
107 
109  static void registerCreator(DtDe& de);
110 
113 
115  virtual DtModelInstance* create(DtDe& de);
116 
117  protected:
119  };
120 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)