VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgGizmoRendererManager.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2021 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
15 
16 #include <osg/ref_ptr>
17 
18 #include <string>
19 
20 namespace makVrv
21 {
22  class DtOsgGizmoRenderer;
23  class DtDe;
24 
28  {
29  public:
33  virtual ~DtOsgGizmoRendererManager();
34 
36  DtOsgGizmoRendererManager() = delete;
40  DtOsgGizmoRendererManager& operator=(const DtOsgGizmoRendererManager& rhs) = delete;
41 
42  public:
44  virtual DtOsgGizmoRenderer* gizmoRenderer();
45 
46  public:
47 
50  static DtOsgGizmoRendererManager& instance(DtDe& de);
51 
53  static void registerInstance(DtDe& de, DtOsgGizmoRendererManager* manager);
54 
56  static const std::string& theClassName();
57 
58  protected:
61  };
62 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Definition: featureContext.h:37
a class to quickly render a bunch of basic primitives as debugging aids basic overview, create an adapter that inherits from DtDebugDrawCallbackInterface then call DtOsgGizmoRenderer::addDebugDrawerCallback() to register it with the system. Your code will then get called while the system is drawing, user should then add various primitives that will get rendered in one big batch after all the callbacks. See DtOsgLightDebugAdapter::drawDebugLines() for an example.
Definition: DtOsgGizmoRenderer.h:44
Contains makVrv::DtVirtualBaseClass class.
DtGizmoRendererManager.
Definition: DtOsgGizmoRendererManager.h:27
osg::ref_ptr< DtOsgGizmoRenderer > myRenderer
Definition: DtOsgGizmoRendererManager.h:60
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:70
DtDe & myDe
Definition: DtOsgGizmoRendererManager.h:59

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)