VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgComponentSystemDrawable.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <osg/Drawable>
13 
14 #include <vrvCore/DtDe.h>
15 
16 #include <vrvOsg/vrvOsg.h>
17 
19 
20 
21 namespace makVrv
22 {
23  // Forward declarations.
24  class DtOsgComponentSystemNode;
25 
26 
30  class DT_DLL_VRVOSG DtOsgComponentSystemDrawable : public osg::Drawable
31  {
32  public:
33 
36 
38  DtOsgComponentSystemDrawable(const DtOsgComponentSystemDrawable& orig, const osg::CopyOp& opr);
39 
42 
43  private:
44 
47 
50 
53 
54  public:
55 
57  virtual osg::Object* clone(const osg::CopyOp& copyop) const { return new DtOsgComponentSystemDrawable(*this, copyop); }
58  virtual osg::Object* cloneType() const { return NULL; }
59 
61  virtual void init();
62 
64  virtual void drawImplementation(osg::RenderInfo& renderInfo) const;
65 
66  protected:
67 
70  };
71 
72 
75  {
76  public:
79 
82 
83  private:
88 
89  public:
91  virtual DtOsgComponentSystemDrawable* create(DtOsgComponentSystemNode* componentSystemNode) const;
92 
95  static DtOsgComponentSystemDrawableCreator& instance(DtDe& de);
96 
98  static const std::string& theClassName();
99 
100  protected:
102  };
103 }
104 
105 
106 
DT_DLL_EXAMPLESCENEROOTPLUGIN void init(DtDe &anIG)
The DtRenderer owns the component systems that draw. This class is a group node which serves as a nod...
Definition: DtOsgComponentSystemNode.h:82
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
DtOsgComponentSystemNode * myComponentSystemNode
Definition: DtOsgComponentSystemDrawable.h:69
virtual osg::Object * clone(const osg::CopyOp &copyop) const
required functions for derriving from osg::Drawable
Definition: DtOsgComponentSystemDrawable.h:57
creator for DtOsgComponentSystemDrawable
Definition: DtOsgComponentSystemDrawable.h:74
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Contains makVrv::DtDe class.
virtual osg::Object * cloneType() const
Definition: DtOsgComponentSystemDrawable.h:58
DtDe & myDe
Definition: DtOsgComponentSystemDrawable.h:68
Contains makVrv::DtVirtualBaseClass class.
DtDe & myDe
Definition: DtOsgComponentSystemDrawable.h:101
A drawable used for drawing items related to cmoponent systems. The class serves as a draw point entr...
Definition: DtOsgComponentSystemDrawable.h:30
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)