VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDebugDrawCallbackInterface.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 
14 #include <osg/Vec3d>
15 #include <osg/Vec3f>
16 
17 namespace osg
18 {
19  class RenderInfo;
20 }
21 
22 
23 namespace makVrv
24 {
25  class DtDe;
26  class DtOsgGizmoRenderer;
27 
31  {
32  public:
35 
38 
44  DtDebugDrawCallbackInterface& operator=(const DtDebugDrawCallbackInterface& rhs) = delete;
45 
46  public:
48  virtual void drawDebugLines(osg::RenderInfo& renderInfo, const osg::Vec3d& eyePoint, DtOsgGizmoRenderer* renderer) = 0;
49 
51  virtual void systemShutDown();
52 
54  virtual bool somethingToDraw(void) const;
55 
56  protected:
58  };
59 }
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
A simple interface for allowing the various systems to draw lines at the right time.
Definition: DtDebugDrawCallbackInterface.h:30
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
DtDe & myDe
Definition: DtDebugDrawCallbackInterface.h:57
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:72

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)