VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
tacticalGraphicProcessor.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (c) 2026 MAK Technologies, Inc.
3  * All rights reserved.
4  ******************************************************************************/
5 
6 #pragma once
7 
8 #include "iProcessor.h"
9 #include "dataTypes.h"
10 #include <string>
11 #include <vector>
12 #include "vrfManager.h"
13 
28 {
29 public:
30  DtTacticalGraphicProcessor() = default;
31  virtual ~DtTacticalGraphicProcessor() override = default;
32 
33  // =========================================================================
34  // DtProcessor interface
35  // =========================================================================
36  virtual void initialize(const DtVrfContext& context) override;
37  virtual void poll() override;
38  virtual void dispatchPendingEvents() override;
39  virtual void shutdown() override;
40  virtual int count() const override;
41 
42  // =========================================================================
43  // Query interface
44  // =========================================================================
45 
48  std::vector<DtDatasource::DtTacticalGraphicSnapshot> queryAll() const;
49 
54  DtDatasource::DtTacticalGraphicSnapshot query(const std::string& objectName) const;
55 
56 protected:
57  std::shared_ptr<DtDatasource::DtTacticalGraphicSnapshot> snapshotFor(DtWebServerObjectPtr obj) const;
58 
59 private:
61 };
DtTacticalGraphicSnapshot - Complete state of a tactical graphic at a point in time. Represents waypoints, routes, boundaries, areas, and other tactical overlays.
Definition: dataTypes.h:124
DtTacticalGraphicProcessor()=default
virtual void shutdown() override
Called on teardown. Release any resources.
virtual void poll() override
Called each tick while the VRF API mutex is held. Collect state changes and queue them internally...
std::vector< DtDatasource::DtTacticalGraphicSnapshot > queryAll() const
Return snapshots for all currently known tactical graphics. TODO: implement once the shared VRF data ...
std::shared_ptr< DtDatasource::DtTacticalGraphicSnapshot > snapshotFor(DtWebServerObjectPtr obj) const
DtVrfContext - Bundles the VRF runtime objects passed to a processor on initialization. All pointers remain valid for the lifetime of the processor.
Definition: vrfManager.h:59
virtual void dispatchPendingEvents() override
Called each tick AFTER the VRF API mutex is released. Deliver any queued change notifications.
DtProcessor - Abstract base interface for per-client data processors.
Definition: iProcessor.h:25
virtual ~DtTacticalGraphicProcessor() override=default
virtual int count() const override
Number of objects currently known to this processor.
DtTacticalGraphicProcessor - Lightweight per-client tactical graphic processor.
Definition: tacticalGraphicProcessor.h:27
virtual void initialize(const DtVrfContext &context) override
Called once before the first tick.
DtVrfContext myVrfContext
Definition: tacticalGraphicProcessor.h:60
DtDatasource::DtTacticalGraphicSnapshot query(const std::string &objectName) const
Return the snapshot for a single tactical graphic by objectName. Returns a default-constructed DtTact...
std::shared_ptr< DtWebServerObject > DtWebServerObjectPtr
Definition: webServerObject.h:90

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)