VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
debugDrawRendererDriver.h
Go to the documentation of this file.
1 /*********************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************************/
5 
9 #pragma once
10 
14 #include <vrvCore/DtDriver.h>
16 #include <osg/Node>
17 #include <string>
18 #include <queue>
19 #include <map>
20 
21 namespace makVrv
22 {
23  class DtChannelManager;
24  class DtChannel;
25 }
26 
27 namespace makVrf
28 {
29  class DtBaseProcess;
30 
34  {
35  public:
38 
40  virtual ~DtDebugDrawRendererDriver();
41 
43  virtual const std::string& className() const;
44 
46  virtual bool onStart();
47  virtual bool onStop();
48  virtual bool onTick();
49 
51  virtual DtBaseProcess* currentProcess() {return myCurrentProcess;}
52 
54  virtual DtDebugDrawRenderer* server() {return myServer;}
55 
57  virtual makVrv::DtDe& de() {return myDe;}
58 
60  virtual void addTerrainPatch(const std::string& id, osg::ref_ptr<osg::Node> patchNode);
61 
63  virtual osg::ref_ptr<osg::Node> terrainPatch(const std::string& id);
64 
66  virtual void deleteAllTerrainPatch();
67 
69  virtual void deleteTerrainPatch(const std::string& id);
70 
72  virtual void displayTerrainPatch(const std::string& id);
73 
75  virtual void hideTerrainPatch(const std::string& id);
76 
77  protected:
82  typedef std::queue<DtBaseProcess*> DtBaseProcessQueue;
91  typedef std::map<std::string, osg::ref_ptr<osg::Node> > patchListType;
93  };
94 
95 }
makVrv::DtDe & myDe
Definition: debugDrawRendererDriver.h:80
DtBaseProcessQueue myProcessQueue
Definition: debugDrawRendererDriver.h:83
makVrv::DtSignalConnectionManager mySignalConnections
Signal Connection manager.
Definition: debugDrawRendererDriver.h:89
the DtDebugDrawRenderer is the network server for receiving and sending messages to attached clients...
Definition: debugDrawRenderer.h:36
virtual makVrv::DtDe & de()
Accessor to the VR-Vantage display engine.
Definition: debugDrawRendererDriver.h:57
bool myServerStarted
is the server running
Definition: debugDrawRendererDriver.h:87
DtBaseProcess is the base class for all messages processes that can be sent between the server and th...
Definition: baseProcess.h:32
The DtDriver is an abstract class.
Definition: DtDriver.h:31
std::queue< DtBaseProcess * > DtBaseProcessQueue
queue for list of pending processes to handle
Definition: debugDrawRendererDriver.h:82
Defines a message factory for creating DtBaseMessage classes from an array of bytes.
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
patchListType myPatchMap
Definition: debugDrawRendererDriver.h:92
virtual DtDebugDrawRenderer * server()
Get the server that is managing the network connections.
Definition: debugDrawRendererDriver.h:54
DtDebugDrawRenderer * myServer
Classes for message creation, handling and server network functionality.
Definition: debugDrawRendererDriver.h:79
The DtAgentManager manages the distributed scene object framework.
Definition: DtAgentManager.h:38
DtDebugDrawRenderer is the main class that controls the processing flow of the DebugDrawRenderer.
Definition: debugDrawRendererDriver.h:33
Contains makVrv:DtDriver class.
#define DT_DLL_DEBUGDRAWRENDERER
Definition: debugDrawRendererExport.h:19
DtBaseProcess * myCurrentProcess
the currently being handled process if there is one
Definition: debugDrawRendererDriver.h:85
Base class to provide boost signal/slot management.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
std::map< std::string, osg::ref_ptr< osg::Node > > patchListType
map of terrain patch to draw
Definition: debugDrawRendererDriver.h:91
virtual DtBaseProcess * currentProcess()
current process being executed by the server
Definition: debugDrawRendererDriver.h:51

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)