VR-Forces 4.1.1 Class Documentation
DtRibbonModelInstance.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 #include <vrvOsg/DtOsgRibbon.h>
16 
18 
19 #include <matrix/vlVector.h>
20 
21 #include <osg/ref_ptr>
22 
23 namespace osg
24 {
25  class Geode;
26  class Group;
27 }
28 
29 namespace makVrv
30 {
31 
32  class DtOsgRibbon;
33  class DtSceneObject;
34 
39  {
40  public:
41 
43  virtual ~DtRibbonModelInstance();
44 
47  virtual bool realize( DtModelDefinition& definition );
48 
50  virtual void addToConnector( DtOsgSceneConnector* connector );
51 
52  virtual void updateRibbonWidth();
53 
55  virtual bool removeFromConnector( DtOsgSceneConnector* connector );
56 
58  virtual void setParentSceneObject( const DtUniqueID& sceneObjID );
59 
62  virtual DtSceneObject* parentSceneObject();
63 
66  virtual void setOcclusionEnabled( bool enabled );
67 
69  virtual void setRibbonSpacing( float spacing );
70 
75  virtual void setRibbonLength( int maxSamples );
76 
78  virtual void setColor( const osg::Vec4& color );
79 
81  virtual void setVisible( bool isVisible ) {}
82 
84  virtual void update();
85 
86  protected:
87 
89 
92 
94  virtual osg::Node* findFromCache( DtModelDefinition& definition );
95 
97  protected:
98 
99  osg::ref_ptr<DtOsgRibbon> myRibbon;
105  osg::Vec4 myColor;
106 
107  };
108 
109 
113  : public DtModelInstanceCreator
114  {
115  public:
116 
118  static void registerCreator( DtDe& de );
119 
121  virtual ~DtRibbonModelInstanceCreator();
122 
124  virtual DtModelInstance* create( DtDe& de );
125 
126  protected:
127 
130 
131  };
132 
133 }

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)