VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtGlStudioDrawable.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
14 
15 #include <vrvCore/DtUniqueID.h>
16 #include <osg/Drawable>
17 
18 
19 //forward defs
20 class DtString;
21 
22 namespace osgGA
23 {
24  class GUIEventAdapter;
25 }
26 
27 namespace osgViewer
28 {
29  class Viewer;
30 }
31 namespace disti
32 {
33  class ComponentBase;
34  class DisplayEvent;
35 }
36 
37 namespace makVrv
38 {
39 
40 class DtDe;
41 class DtMouseEvent;
42 
45 class DT_DLL_VRVGLSTUDIOSHARED DtGlStudioDrawable : public osg::Drawable
46 {
47 public:
50 
53  DtGlStudioDrawable(disti::ComponentBase *component);
54 
58  const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
59 
61  virtual ~DtGlStudioDrawable();
62 
64  virtual osg::Object* cloneType() const;
65  virtual osg::Object* clone(const osg::CopyOp& copyop) const;
66  virtual bool isSameKindAs(const osg::Object* obj) const;
67  virtual const char* libraryName() const;
68  virtual const char* className() const;
69 
71  virtual bool loadLiveComponent(const std::string& fileName, const std::string& className);
72 
74  virtual void destroyComponent();
75 
79  virtual void setComponent(disti::ComponentBase* comp);
80 
83  virtual disti::ComponentBase* component();
84 
86  virtual bool handleMouseInput(const DtMouseEvent& ea);
87 
89  virtual osg::BoundingBox computeBound() const;
90 
92  virtual bool supports(osg::PrimitiveFunctor&) const;
93 
99  virtual void accept(osg::PrimitiveFunctor& functor) const;
100 
103  virtual void update(osg::NodeVisitor* visitor, osg::Drawable* drawable);
104 
105  virtual bool cull(osg::NodeVisitor* visitor, osg::Drawable* drawable, osg::State* state=NULL) const;
106 
107  virtual void drawImplementation(osg::RenderInfo& state) const;
108 
109  virtual void setProperty(const std::string& prop, const std::string& val);
110 
111  virtual void setDe(DtDe* de);
112  virtual void setCockpitObject(DtOsgGlStudioCockpit* cockpitObject);
113 
114 protected:
116  disti::ComponentBase* myComponent;
118 };
119 
120 } //makVrv::

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)