VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 #include <osg/BoundingSphere>
18 
19 namespace osg
20 {
21  class Geode;
22  class Group;
23 }
24 
25 namespace makVrv
26 {
27 
28  class DtOsgRibbon;
29  class DtSceneObject;
30 
35  {
36  public:
37 
39  virtual ~DtDecalModelInstance();
40 
43  virtual bool realize( DtModelDefinition& definition );
44 
46  virtual void addToConnector( DtOsgSceneConnector* connector );
47 
49  virtual bool removeFromConnector( DtOsgSceneConnector* connector );
50 
52  virtual void setParentSceneObject( const DtUniqueID& sceneObjID );
53 
56  virtual DtSceneObject* parentSceneObject();
57 
61  virtual void setOcclusionEnabled( bool enabled );
62 
64  virtual void setColor( const osg::Vec4& color );
65 
67  virtual void setVisible( bool isVisible ) {}
68 
70  virtual void update();
71 
72  protected:
73 
75 
78 
80  virtual DtOsgRibbon* createRibbonEffect( const osg::Vec3& pointA,
81  const osg::Vec3& pointB );
82 
84  virtual osg::Node* findFromCache( DtModelDefinition& definition );
85 
86  protected:
87 
88  osg::ref_ptr<DtOsgRibbon> myRibbon;
91  bool myColorSet;
92  osg::Vec4 myColor;
94 
95  };
96 
97 
101  : public DtModelInstanceCreator
102  {
103  public:
104 
106  static void registerCreator( DtDe& de );
107 
109  virtual ~DtDecalModelInstanceCreator();
110 
112  virtual DtModelInstance* create( DtDe& de );
113 
114  protected:
115 
117 
118  };
119 
120 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)