VR-Forces 4.1 Class Documentation
DtDecalModelInstance.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 
12 #include <vrvOsg/vrvOsg.h>
13 
15 
16 #include <osg/ref_ptr>
17 
18 namespace osg
19 {
20  class Geode;
21  class Group;
22 }
23 
24 namespace makVrv
25 {
26 
27  class DtOsgRibbon;
28  class DtSceneObject;
29 
34  {
35  public:
36 
38  virtual ~DtDecalModelInstance();
39 
42  virtual bool realize( DtModelDefinition& definition );
43 
45  virtual void addToConnector( DtOsgSceneConnector* connector );
46 
48  virtual bool removeFromConnector( DtOsgSceneConnector* connector );
49 
51  virtual void setParentSceneObject( const DtUniqueID& sceneObjID );
52 
55  virtual DtSceneObject* parentSceneObject();
56 
60  virtual void setOcclusionEnabled( bool enabled );
61 
63  virtual void setColor( const osg::Vec4& color );
64 
66  virtual void setVisible( bool isVisible ) {}
67 
69  virtual void update();
70 
71  protected:
72 
74 
77 
79  virtual DtOsgRibbon* createRibbonEffect( const osg::Vec3& pointA,
80  const osg::Vec3& pointB );
81 
83  virtual osg::Node* findFromCache( DtModelDefinition& definition );
84 
85  protected:
86 
87  osg::ref_ptr<DtOsgRibbon> myRibbon;
90  bool myColorSet;
91  osg::Vec4 myColor;
92 
93  };
94 
95 
99  : public DtModelInstanceCreator
100  {
101  public:
102 
104  static void registerCreator( DtDe& de );
105 
107  virtual ~DtDecalModelInstanceCreator();
108 
110  virtual DtModelInstance* create( DtDe& de );
111 
112  protected:
113 
115 
116  };
117 
118 }

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)