VR-Forces 5.0.1 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:
34 
37  DtStateListener& listener, int modelSet);
38 
43  DtSceneObjectAgent* sceneObject, int modelSet );
44 
46  virtual ~DtDetonationLineVisualizer();
47 
49  DtDetonationLineVisualizer() = delete;
50 
53 
55  DtDetonationLineVisualizer& operator=( const DtDetonationLineVisualizer& ) = delete;
56 
57  public:
58 
60  virtual void initialize() override;
61 
63  virtual void setEnabled(bool b);
64 
66  bool enabled() const;
67 
69  virtual void setParent(DtStateVisualizer*);
70 
72  virtual const DtStateVisualizer::TypeInfo& typeInfo() const;
73 
75  static const DtStateVisualizer::TypeInfo& theTypeInfo();
76 
77  protected:
78 
79  virtual void createModelAgents();
80  virtual void destroyModelAgents();
81 
84  virtual void connectToListenerSignals() override;
85 
88  virtual void setInitialValuesFromVisualizerDefinition() override;
89 
90  virtual void setModelDefinitionForAgents();
91  virtual DtVector lineColor() const;
92 
93  protected:
94  double myLifeTime;
95  bool myEnabled;
96  bool myOcclude;
98  DtProjectedWidgetModelAgent* myProjectedWidgetModelAgent;
99  DtWidgetAgent* myDetonationIconAgent;
100  Dt3DSegmentedLineModelAgent* myLineAgent;
101  DtAttachableUpdaterAgent* myAttachableUpdater;
103 
111  };
112 
117 }
Dt3DSegmentedLineModelAgent * myLineAgent
Definition: DtDetonationLineVisualizer.h:100
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:97
bool myOcclude
Definition: DtDetonationLineVisualizer.h:96
Definition: DtStateVisualizer.h:305
DtWidgetAgent * myDetonationIconAgent
Definition: DtDetonationLineVisualizer.h:99
double myLifeTime
Definition: DtDetonationLineVisualizer.h:94
The DtBaseConnection is an abstract class.
Definition: DtBaseConnection.h:39
#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:116
DtSceneObjectAgent * myTemporaryDetonationSceneObjectAgent
This visualizer requires its own scene object for detonations. This scene object can be passed to the...
Definition: DtDetonationLineVisualizer.h:110
DtAttachableUpdaterAgent * myAttachableUpdater
Definition: DtDetonationLineVisualizer.h:101
The DtStateVisualizer is an abstract class. Developers derive from this to create logic that &quot;directs...
Definition: DtStateVisualizer.h:32
DtProjectedWidgetModelAgent * myProjectedWidgetModelAgent
Definition: DtDetonationLineVisualizer.h:98
bool myEnabled
Definition: DtDetonationLineVisualizer.h:95
The DtStateListener is an abstract class. Subclasses implement functionality that will allow data to ...
Definition: DtStateListener.h:25
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:56
DtDetonationInteractionStateListener * myDetonationListener
Definition: DtDetonationLineVisualizer.h:102
Base listener class for detonation interactions.
Definition: DtDetonationInteractionStateListener.h:23

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)