VR-Forces Development_Version 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 
13 
14 #include <osg/BoundingSphere>
15 
16 namespace osg
17 {
18  class Geode;
19  class Group;
20 }
21 
22 namespace makVrv
23 {
24 
25  class DtOsgRibbon;
26  class DtSceneObject;
27 
32  {
33  public:
34 
36  virtual ~DtDecalModelInstance();
37 
40  virtual bool realize( DtModelDefinition& definition );
41 
43  virtual void addToConnector( DtOsgSceneConnector* connector );
44 
46  virtual bool removeFromConnector( DtOsgSceneConnector* connector );
47 
49  virtual void setParentSceneObject( const DtUniqueID& sceneObjID );
50 
53  virtual DtSceneObject* parentSceneObject();
54 
58  virtual void setOcclusionEnabled( bool enabled );
59 
61  virtual void setColor( const osg::Vec4& color );
62 
64  virtual void setVisible( bool isVisible ) {}
65 
67  virtual void update();
68 
69  protected:
70 
72 
75 
77  virtual DtOsgRibbon* createRibbonEffect( const osg::Vec3& pointA,
78  const osg::Vec3& pointB );
79 
81  virtual osg::Node* findFromCache( DtModelDefinition& definition );
82 
83  protected:
84 
85  osg::ref_ptr<DtOsgRibbon> myRibbon;
88  bool myColorSet;
89  osg::Vec4 myColor;
91 
92  };
93 
94 
98  : public DtModelInstanceCreator
99  {
100  public:
101 
103  static void registerCreator( DtDe& de );
104 
106  virtual ~DtDecalModelInstanceCreator();
107 
109  virtual DtModelInstance* create( DtDe& de );
110 
111  protected:
112 
114 
115  };
116 
117 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)