VR-Forces 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:
31  DtSceneObjectAgent* sceneObject, DtModelSetId modelSet );
32 
35 
38 
41 
44 
45  public:
47  virtual void initialize() override;
48 
50  void setEchelonEnabled(bool enabled);
52  bool echelonEnabled() const;
53 
58  virtual unsigned short echelonCharacterForUnitSymbolFont(int force) const;
59 
61  virtual DtUnicode generateSymbolString(float fillColor[4],
62  float outlineColor[4], unsigned int fillGlyph,
63  unsigned int outlineGlyph, unsigned int echelonGlyph,
64  bool damaged ) const;
65 
67  virtual DtUnicode generateSymbolString(float fillColor[4],
68  float outlineColor[4], unsigned int fillGlyph,
69  unsigned int outlineGlyph, bool damaged ) const;
70 
72  virtual unsigned short echelonGlyph() const;
73 
75  virtual void setRotateToHeading(bool);
76 
78  virtual void rotateSymbolToHeading(const DtTaitBryan&);
79 
81  virtual void refreshForceColor();
82 
84  virtual void setModelDefinitionForAgents() override;
85 
87  virtual void updateLabel() override;
88 
90  virtual void createModelAgents() override;
91 
93  virtual const DtStateVisualizer::TypeInfo& typeInfo() const;
94 
95  public:
96 
98  static const DtStateVisualizer::TypeInfo& theTypeInfo();
99 
100  protected:
103  virtual void connectToListenerSignals() override;
104 
107  virtual void setInitialValuesFromVisualizerDefinition() override;
108 
111  virtual void updatePickability();
112 
114  DtAggregateStateListener& aggregateStateListener();
115  const DtAggregateStateListener& aggregateStateListener() const;
116 
117  protected:
123 
126  };
127 }
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:35
bool myEchelonFlag
True
Definition: DtAggregateMilStdIconVisualizer.h:119
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:122
DtUnicodeChar myEchelonGlyph
Definition: DtAggregateMilStdIconVisualizer.h:120
A visualizer for displaying a Military Standard Symbology Icon. A symbology icon is made up of severa...
Definition: DtMilStdIconVisualizer.h:34
int myLastForce
Definition: DtAggregateMilStdIconVisualizer.h:125
DtModelSetId
Definition: DtModelSetEnums.h:19
The DtStateListener is an abstract class. Subclasses implement functionality that will allow data to ...
Definition: DtStateListener.h:26
Struct to hold metadata about each functional visualizer type This allows users of the factory to get...
Definition: DtStateVisualizer.h:54
bool myRotateToHeading
Definition: DtAggregateMilStdIconVisualizer.h:124
Contains DLL export macros.

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)