VR-Forces 4.1 Class Documentation
DtGlStudioDrawable.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtGlStudioDrawable.h,v $ $Revision: 1.5 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
17 
18 #include <vrvCore/DtUniqueID.h>
19 #include <osg/Drawable>
20 
21 
22 //forward defs
23 class DtString;
24 
25 namespace osgGA
26 {
27  class GUIEventAdapter;
28 }
29 
30 namespace osgViewer
31 {
32  class Viewer;
33 }
34 namespace disti
35 {
36  class ComponentBase;
37  class DisplayEvent;
38 }
39 
40 namespace makVrv
41 {
42 
43 class DtDe;
44 class DtMouseEvent;
45 
48 class DT_DLL_VRVGLSTUDIOSHARED DtGlStudioDrawable : public osg::Drawable
49 {
50 public:
53 
56  DtGlStudioDrawable(disti::ComponentBase *component);
57 
61  const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
62 
64  virtual ~DtGlStudioDrawable();
65 
67  virtual osg::Object* cloneType() const;
68  virtual osg::Object* clone(const osg::CopyOp& copyop) const;
69  virtual bool isSameKindAs(const osg::Object* obj) const;
70  virtual const char* libraryName() const;
71  virtual const char* className() const;
72 
74  virtual bool loadLiveComponent(const std::string& fileName, const std::string& className);
75 
77  virtual void destroyComponent();
78 
82  virtual void setComponent(disti::ComponentBase* comp);
83 
86  virtual disti::ComponentBase* component();
87 
89  virtual bool handleMouseInput(const DtMouseEvent& ea);
90 
92  virtual osg::BoundingBox computeBound() const;
93 
95  virtual bool supports(osg::PrimitiveFunctor&) const;
96 
102  virtual void accept(osg::PrimitiveFunctor& functor) const;
103 
106  virtual void update(osg::NodeVisitor* visitor, osg::Drawable* drawable);
107 
108  virtual bool cull(osg::NodeVisitor* visitor, osg::Drawable* drawable, osg::State* state=NULL) const;
109 
110  virtual void drawImplementation(osg::RenderInfo& state) const;
111 
112  virtual void setProperty(const std::string& prop, const std::string& val);
113 
114  virtual void setDe(DtDe* de);
115  virtual void setCockpitObject(DtOsgGlStudioCockpit* cockpitObject);
116 
117 protected:
119  disti::ComponentBase* myComponent;
121 };
122 
123 } //makVrv::

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)