VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfSpotReportElement.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 <vrfGuiCore/vrfGuiCore.h>
16 
20 #include <vrvCore/DtElementEntry.h>
21 #include <vrvCore/DtElement.h>
22 
23 namespace makVrv
24 {
25  class DtVisualizerCreationSettings;
26  class DtStateListener;
27  class DtSceneObjectAgent;
28  class DtKinematicState;
29 }
30 
31 namespace makVrf
32 {
33  class DtVrfSpotReportVisualizerSet;
34  class DtVrfSpotReportsSettingsRecord;
35 
37  {
38  public:
40  virtual ~DtVrfSpotReportElement() override;
41 
42  public:
43  virtual void setModelSetEnabled( makVrv::DtModelSetId modelSet, bool enabled ) override;
44 
46  virtual void setPickable(bool b);
47 
49  virtual void setCertaintyLevel(int);
50 
52  virtual const makVrv::DtElementEntry::ElementType elementType() const override;
53  static const makVrv::DtElementEntry::ElementType theElementType();
54 
55  virtual void visualize(makVrv::DtModelSetId modelSet = makVrv::DtModelSetId::Unspecified);
57  {
60  makVrv::DtSceneObjectAgent* sceneObject;
61  };
62 
63  typedef std::map<makVrv::DtModelSetId, SpotReportVisuals*> SpotReportModelSetMap;
64 
66  {
67  return mySpotReportModelSetMap;
68  }
69 
71  virtual void setVisualizerCreationSettings(makVrv::DtVisualizerCreationSettings* s);
72 
74  virtual void destroyVisualizersByType(makVrv::DtModelSetId modelSet, int visualType);
75 
77  virtual void createVisualizersByType(makVrv::DtModelSetId modelSet, int visualType);
78 
79  protected:
80  virtual makVrv::DtKinematicState* createKinState() const;
81 
82  virtual void slot_objectVisibilityChanged( makVrv::DtUniqueID id, bool isShown, int context );
83 
86  virtual void slot_spotReportChanged(const DtSpotReportStateComponentData& s);
87 
90  virtual void slot_spotReportOptionsChanged(const DtVrfSpotReportsSettingsRecord&);
91 
93  virtual makVrv::DtUnicode chooseModelDefinition(
94  const std::vector<makVrv::DtUnicode>& definitions);
95 
96  virtual bool isUnknown(const std::vector<makVrv::DtUnicode>& definitions) const;
97  virtual bool isUnknown(const makVrv::DtUnicode& definition) const;
98 
99  virtual void updateVisibilityBasedOnSettings();
100 
101  virtual void slot_objectVisibilityChanged(makVrv::DtUniqueID id, bool);
102 
103  protected:
104 
106 
111 
114 
116 
119  };
120 
122 }
Contains makVrv::DtvrfSpotReportDataHandler class. Translates from VRF DtSpotReport data type to DtSp...
Definition: vrfSpotReportElement.h:56
DtSpotReportStateComponentData mySpotReportState
Definition: vrfSpotReportElement.h:110
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
bool myPickable
Definition: vrfSpotReportElement.h:113
makVrv::DtSignalConnectionManager myVisualUpdateConnections
Definition: vrfSpotReportElement.h:107
makVrv::DtSceneObjectAgent * sceneObject
Definition: vrfSpotReportElement.h:60
Definition: vrfSpotReportVisualizerSet.h:31
Definition: vrfSpotReportsSettingsRecord.h:33
Contains makVrv::DtSpotReportListener class. Creates a simple listener that will hold onto and emit s...
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
makVrv::DtVisualizerCreationSettings * myVisualizerCreationSettings
Definition: vrfSpotReportElement.h:108
Definition: DtElement.h:277
The DtElement class implements the common behavior of simulation based elements added to the scene...
Definition: DtElement.h:44
makVrv::DtSignalConnectionManager myConnections
Definition: vrfSpotReportElement.h:115
The DtBaseConnection is an abstract class.
Definition: DtBaseConnection.h:35
makVrv::DtStateListener & myListener
Definition: vrfSpotReportElement.h:109
Contains makVrv::DtVirtualBaseClass class.
std::map< makVrv::DtModelSetId, SpotReportVisuals * > SpotReportModelSetMap
Definition: vrfSpotReportElement.h:63
makVrv::DtKinematicState * myKinematicState
Definition: vrfSpotReportElement.h:118
Base class for Kinematic State Objects e.g. DtEntityKinematicState Controls kinematic state of a scen...
Definition: DtKinematicState.h:54
makVrv::DtModelSetId myModelSet
Definition: vrfSpotReportElement.h:112
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Contains makVrv::DtElement class.
0) Define the State Component Data. This struct replaces the legion stuff
Definition: spotReportStateComponent.h:25
ElementType
Definition: DtElementEntry.h:26
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
Contains makVrv:DtBaseConnection class.
Definition: vrfSpotReportElement.h:36
Base class to provide boost signal/slot management.
SpotReportModelSetMap mySpotReportModelSetMap
Definition: vrfSpotReportElement.h:105
makVrv::DtModelSetId modelSet
Definition: vrfSpotReportElement.h:58
DtVrfSpotReportVisualizerSet * visualizerSet
Definition: vrfSpotReportElement.h:59
VisualizerShowHideContext
Definition: DtShowHideContext.h:41
const SpotReportModelSetMap & spotReportModelSetMap() const
Definition: vrfSpotReportElement.h:65
DtModelSetId
Definition: DtModelSetEnums.h:19
The DtStateListener is an abstract class. Subclasses implement functionality that will allow data to ...
Definition: DtStateListener.h:26
makVrv::DtUnicode mySpotReportDefinition
Definition: vrfSpotReportElement.h:117
Container class which indicates which visualizers need to be created for each modelSet, based on whether that visualizer visualizes something that is currently enabled and if the visualizer is create-on-demand vs. create-always. Visualizers with visual types not in the map are treated as needing to be created (hence the map only suppresses creation of unneeded visualizers). Once these settings have been initialized connestToSettingsSignals() should be called so that these settings are kept up to date with the settings in the GUI.
Definition: DtVisualizerCreationSettings.h:33
Contains makVrv::DtElementEntry class.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)