VR-Vantage
Loading...
Searching...
No Matches
rfxDriver.h
Go to the documentation of this file.
1/*********************************************************************************
2** Copyright (c) 2026 MAK Technologies, Inc.
3** All rights reserved.
4*********************************************************************************/
5
9
10#pragma once
11
13
15
16#include <vrvCore/DtDriver.h>
17#include <vrvUtil/signalslib.h>
18
19#include <string>
20#include <queue>
21#include <chrono>
22
23namespace makVrv
24{
25 class DtDebugLog;
26}
27
28namespace makRadarFx
29{
30 class DtBaseProcess;
31 class DtRadarFxServer;
32
36 {
37 public:
40
43
45 virtual const std::string& className() const;
46
48 virtual bool onStart();
49 virtual bool onStop();
50 virtual bool onTick();
51
54
56 virtual bool isReadyToProcess();
57
59 virtual DtRadarFxServer* server() {return myServer;}
60
62 virtual makVrv::DtDe& de() {return myDe;}
63
64 protected:
65
72 virtual void logMessageIfNecessary(DtBaseMessage* message, const std::vector<std::pair<std::string, std::string>>* additionalInfo = nullptr);
73
74 protected:
78
79 std::map<unsigned int, std::string> myRequestTypeToDisplayName;
80 std::map<unsigned int, makVrv::DtDebugLog*> myRequestTypeToLogStream;
81
82 std::chrono::system_clock::time_point myRequestStartTime;
83
85 typedef std::list<DtBaseProcess*> DtBaseProcessQueue;
87
90
91 std::string myClassName;
92
95 boost::signalslib::scoped_connection myPortChangedConn;
96 };
97
98}
Contains makVrv:DtDriver class.
DtBaseMessage is the base class for all messages that can be sent between the server and the client.
Definition rfxMessage.h:26
DtBaseProcess is the base class for all messages processes that can be sent between the server and th...
Definition rfxBaseProcess.h:28
std::chrono::system_clock::time_point myRequestStartTime
Definition rfxDriver.h:82
virtual makVrv::DtDe & de()
Accessor to the VR-Vantage display engine.
Definition rfxDriver.h:62
std::string myClassName
Definition rfxDriver.h:91
virtual DtRadarFxServer * server()
Get the server that is managing the network connections.
Definition rfxDriver.h:59
virtual ~DtRadarFxDriver()
DTOR.
DtBaseProcess * myCurrentProcess
the currently being handled process if there is one
Definition rfxDriver.h:89
virtual bool isReadyToProcess()
is the capture process ready to capture the image
DtRadarFxServer * myServer
Classes for message creation, handling and server network functionality.
Definition rfxDriver.h:76
std::map< unsigned int, makVrv::DtDebugLog * > myRequestTypeToLogStream
Definition rfxDriver.h:80
DtRadarFxDriver(makVrv::DtAgentManager &am)
CTOR takes the standard VR-Vantage driver arguments.
std::list< DtBaseProcess * > DtBaseProcessQueue
list of pending processes to handle
Definition rfxDriver.h:85
virtual bool onStop()
Stop the host output. All scene object created by the host should be destroyed.
std::map< unsigned int, std::string > myRequestTypeToDisplayName
Definition rfxDriver.h:79
virtual DtBaseProcess * currentProcess()
current capture process being executed by the server
Definition rfxDriver.h:53
virtual const std::string & className() const
Returns the name of the class.
DtBaseProcessQueue myProcessQueue
Definition rfxDriver.h:86
boost::signalslib::scoped_connection myPortChangedConn
Definition rfxDriver.h:95
virtual void logMessageIfNecessary(DtBaseMessage *message, const std::vector< std::pair< std::string, std::string > > *additionalInfo=nullptr)
Output message to a (CSV) log file, if necessary (not all message types are logged) DtBaseMessage::cs...
virtual bool onStart()
Standard driver interface functions for starting, stopping, and ticking the driver.
makVrv::DtDe & myDe
Definition rfxDriver.h:77
virtual bool onTick()
Tick.
the DtRadarFxServer is the network server for receving and sending messages to attached clients.
Definition rfxServer.h:40
The DtAgentManager manages the distributed scene object framework. This includes the objects and upda...
Definition DtAgentManager.h:39
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer,...
Definition DtDe.h:77
Definition DtDebugLog.h:39
The DtDriver is an abstract class. Developers derive from this to create logic that "directs" things ...
Definition DtDriver.h:32
#define DT_DLL_RFXSERVER
Definition include/radarFxServer/export.h:15
Definition radarFxConnector.h:28
Contains DtCreateSensorFieldOfViewCommand and DtCreateSensorFieldOfViewCommandCreator class declarati...
Definition DtGridLinesSettingsRecord.h:16