VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDetonationLineVisualizer.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
13 
14 #pragma once
16 #include <matrix/vlVector.h>
17 
18 namespace makVrv
19 {
20  class DtAttachableUpdaterAgent;
21  class Dt3DSegmentedLineModelAgent;
22  class DtProjectedWidgetModelAgent;
23  class DtWidgetAgent;
24  class DtDetonationInteractionStateListener;
25 
32  {
33  public:
38  DtSceneObjectAgent* sceneObject, DtModelSetId modelSet );
39 
41  virtual ~DtDetonationLineVisualizer();
42 
44  DtDetonationLineVisualizer() = delete;
45 
48 
50  DtDetonationLineVisualizer& operator=( const DtDetonationLineVisualizer& ) = delete;
51 
52  public:
53 
55  virtual void initialize() override;
56 
58  virtual void setEnabled(bool b);
59 
61  bool enabled() const;
62 
64  virtual void setParent(DtStateVisualizer*);
65 
67  virtual const DtStateVisualizer::TypeInfo& typeInfo() const;
68 
70  static const DtStateVisualizer::TypeInfo& theTypeInfo();
71 
72  protected:
73 
74  virtual void createModelAgents();
75  virtual void destroyModelAgents();
76 
79  virtual void connectToListenerSignals() override;
80 
83  virtual void setInitialValuesFromVisualizerDefinition() override;
84 
85  virtual void setModelDefinitionForAgents();
86  virtual DtVector lineColor() const;
87 
88  protected:
89  double myLifeTime;
90  bool myEnabled;
91  bool myOcclude;
93  DtProjectedWidgetModelAgent* myProjectedWidgetModelAgent;
94  DtWidgetAgent* myDetonationIconAgent;
95  Dt3DSegmentedLineModelAgent* myLineAgent;
96  DtAttachableUpdaterAgent* myAttachableUpdater;
98 
106  };
107 
112 }
Dt3DSegmentedLineModelAgent * myLineAgent
Definition: DtDetonationLineVisualizer.h:95
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
DtUnicode myBackgroundImage
Definition: DtDetonationLineVisualizer.h:92
bool myOcclude
Definition: DtDetonationLineVisualizer.h:91
Definition: DtStateVisualizer.h:274
DtWidgetAgent * myDetonationIconAgent
Definition: DtDetonationLineVisualizer.h:94
double myLifeTime
Definition: DtDetonationLineVisualizer.h:89
The DtBaseConnection is an abstract class.
Definition: DtBaseConnection.h:35
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Contains makVrv:DtStateVisualizer class.
DtStateVisualizerCreatorTemplate< DtDetonationLineVisualizer > DtDetonationLineVisualizerCreator
Creator that will be registered with the state visualizer factory to create this class.
Definition: DtDetonationLineVisualizer.h:111
DtSceneObjectAgent * myTemporaryDetonationSceneObjectAgent
This visualizer requires its own scene object for detonations. This scene object can be passed to the...
Definition: DtDetonationLineVisualizer.h:105
DtAttachableUpdaterAgent * myAttachableUpdater
Definition: DtDetonationLineVisualizer.h:96
The DtStateVisualizer is an abstract class. Developers derive from this to create logic that &quot;directs...
Definition: DtStateVisualizer.h:30
DtProjectedWidgetModelAgent * myProjectedWidgetModelAgent
Definition: DtDetonationLineVisualizer.h:93
DtModelSetId
Definition: DtModelSetEnums.h:19
bool myEnabled
Definition: DtDetonationLineVisualizer.h:90
The DtStateListener is an abstract class. Subclasses implement functionality that will allow data to ...
Definition: DtStateListener.h:26
Displays a detonation line from the shooter to the detonation location and an icon at the detonation ...
Definition: DtDetonationLineVisualizer.h:31
Struct to hold metadata about each functional visualizer type This allows users of the factory to get...
Definition: DtStateVisualizer.h:54
DtDetonationInteractionStateListener * myDetonationListener
Definition: DtDetonationLineVisualizer.h:97
Base listener class for detonation interactions.
Definition: DtDetonationInteractionStateListener.h:23

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)