VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtAggregateMilStdIconVisualizer.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
14 
15 #include <matrix/vlTaitBryan.h>
16 
17 namespace makVrv
18 {
19  class DtAggregateStateListener;
20 
27  {
28  public:
29 
32  DtStateListener& listener, int modelSet);
33 
36  DtSceneObjectAgent* sceneObject, int modelSet );
37 
40 
43 
46 
49 
50  public:
52  virtual void initialize() override;
53 
55  void setEchelonEnabled(bool enabled);
57  bool echelonEnabled() const;
58 
63  virtual unsigned short echelonCharacterForUnitSymbolFont(int force) const;
64 
66  virtual DtUnicode generateSymbolString(float fillColor[4],
67  float outlineColor[4], unsigned int fillGlyph,
68  unsigned int outlineGlyph, unsigned int echelonGlyph,
69  bool damaged ) const;
70 
72  virtual DtUnicode generateSymbolString(float fillColor[4],
73  float outlineColor[4], unsigned int fillGlyph,
74  unsigned int outlineGlyph, bool damaged ) const;
75 
77  virtual unsigned short echelonGlyph() const;
78 
80  virtual void setShowMainIcon(bool);
81 
83  virtual void setRotateToHeading(bool);
84 
86  virtual void rotateSymbolToHeading(const DtTaitBryan&);
87 
89  virtual void refreshForceColor();
90 
92  virtual void setModelDefinitionForAgents() override;
93 
95  virtual void updateLabel() override;
96 
98  virtual void createModelAgents() override;
99 
101  virtual const DtStateVisualizer::TypeInfo& typeInfo() const;
102 
103  public:
104 
106  static const DtStateVisualizer::TypeInfo& theTypeInfo();
107 
108  protected:
111  virtual void connectToListenerSignals() override;
112 
115  virtual void setInitialValuesFromVisualizerDefinition() override;
116 
119  virtual void updatePickability();
120 
122  DtAggregateStateListener& aggregateStateListener();
123  const DtAggregateStateListener& aggregateStateListener() const;
124 
125  protected:
131 
134  };
135 }
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
Contains the makVrv::DtMilStdIconVisualizer class declaration.
The DtAggregateStateListener extends DtEntityStateListener. It provides a interface to all the visual...
Definition: DtAggregateStateListener.h:33
A visualizer for displaying a Military Standard Symbology Icon for an aggregate. A symbology icon is ...
Definition: DtAggregateMilStdIconVisualizer.h:25
The DtBaseConnection is an abstract class.
Definition: DtBaseConnection.h:38
bool myEchelonFlag
True
Definition: DtAggregateMilStdIconVisualizer.h:127
A single unicode character.
Definition: DtUnicodeChar.h:17
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
DtAggregateStateListener * myAggregateStateListener
Same as myListener, but casted for convenience.
Definition: DtAggregateMilStdIconVisualizer.h:130
DtUnicodeChar myEchelonGlyph
Definition: DtAggregateMilStdIconVisualizer.h:128
A visualizer for displaying a Military Standard Symbology Icon. A symbology icon is made up of severa...
Definition: DtMilStdIconVisualizer.h:33
int myLastForce
Definition: DtAggregateMilStdIconVisualizer.h:133
The DtStateListener is an abstract class. Subclasses implement functionality that will allow data to ...
Definition: DtStateListener.h:25
Struct to hold metadata about each functional visualizer type This allows users of the factory to get...
Definition: DtStateVisualizer.h:56
bool myRotateToHeading
Definition: DtAggregateMilStdIconVisualizer.h:132
Contains DLL export macros.

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)