18 #include <osg/ref_ptr>
29 class DtChannelConfiguration;
30 class DtChannelManager;
31 class DtModelDefinition;
33 class DtOverlayRenderer;
35 class DtWindowConfiguration;
37 class DtCoordinateSystem;
69 virtual void setVisible(
bool isVisible);
72 virtual bool visible();
75 virtual void setChannelName(
const std::string& deName,
76 const std::string& winName,
const std::string& channelName);
80 virtual void setModelDefinition(
const std::string& modelDefinition);
84 virtual void updateCompass(
bool force);
87 virtual void setDarkTickColor(
float r,
float g,
float b,
float a);
90 virtual void setLightTickColor(
float r,
float g,
float b,
float a);
93 virtual void setSymbolsFilename(
const std::string&
filename);
97 virtual void setPixelRatio(
float pixelRatio);
110 for (
int i = 0; i < 4; ++i)
112 characterValue[i] = 0;
118 unsigned char characterValue[4];
132 virtual void slot_channelConfigurationModified(
const std::string& deName,
133 const std::string& winName,
const std::string& oldChannelName,
138 virtual void slot_windowConfigurationModified(
const std::string& deName,
143 virtual void slot_displayUnitUnitChanged(
144 const DtUnicode& displayUnitCollectionName,
145 const DtUnicode& displayUnitName,
unsigned int newUnit,
146 unsigned int oldUnit);
149 virtual void slot_update();
152 virtual void slot_coordinateSystemChanged();
156 bool updateCompassCharacter(
const std::string& filename,
158 const osg::Vec4& texCoords);
164 virtual void createCompass();
167 void destroyCompass();
171 osg::Vec2 calcCompassCenterPosition();
180 virtual bool updateOrientationUnits();
183 virtual void updateCompass();
189 virtual void computeCenteringOffsets(
float* offsets,
190 const int numCharacters,
const float characterWidth);
195 virtual void computeHeadingString(
const float radHeading,
196 std::string& outString);
199 virtual void computeCharacterCoords(
const unsigned char value,
205 virtual void initCompassSymbolCharacterDisplay(
CompassSymbol& symbol,
210 virtual void initPopoutSymbolCharacterDisplay(
CompassSymbol& symbol,
216 virtual bool initCompassSymbolCharacters(
CompassSymbol& symbol);
226 static void translate(
228 const osg::Vec2& translation,
Diagonal crossing liens.
Definition: DtTacticalGraphicUtilities.h:93
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
DtSignalConnectionManager myConnections
Definition: DtOsgChannel3dViewCompassInstance.h:252
vrvGraphics-based implementation of a model-like object that draws a 3d view first person shooter sty...
Definition: DtOsgChannel3dViewCompassInstance.h:46
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
A stucture to define a set of characters and tickmark associated with a direction on the compass...
Definition: DtOsgChannel3dViewCompassInstance.h:103
Interface for a DtChannel3dViewCompassInstance A model-like object that draws a 3d view first person ...
Definition: DtChannel3dViewCompassInstance.h:29
osg::Vec2 myCompassCenterPosition
Definition: DtOsgChannel3dViewCompassInstance.h:264
This owns a list of channel configurations.
Definition: DtWindowConfiguration.h:28
bool myCompassDirty
Definition: DtOsgChannel3dViewCompassInstance.h:269
This class provides the OSG-specific implementation of a DtChannel.
Definition: DtOsgChannel.h:52
CompassSymbol()
Definition: DtOsgChannel3dViewCompassInstance.h:105
A model definition Interaction any number of named parameters, and also can be used to store cached d...
Definition: DtModelDefinition.h:38
std::vector< float > VertexList
This type can be used to provide a list of vertices to the polygon objects.
Definition: DtOsgChannel3dViewCompassInstance.h:219
int myCreateState
Definition: DtOsgChannel3dViewCompassInstance.h:259
DtSignalConnectionManager myPixelRatioConnection
Definition: DtOsgChannel3dViewCompassInstance.h:253
int numCharacters
Definition: DtOsgChannel3dViewCompassInstance.h:117
A structure to contain light and dark line segments for a compass tick mark.
Definition: DtOsgChannel3dViewCompassInstance.h:239
Contains the DtSharedDisplayUnitsSettings class declaration.
The abstract Channel Class.
Definition: DtChannel.h:35
TickMark myPopoutL
Definition: DtOsgChannel3dViewCompassInstance.h:267
TickMark()
Definition: DtOsgChannel3dViewCompassInstance.h:241
A class which represents a single line segment.
Definition: DtLineSegment.h:22
CompassSymbol myPopoutSymbol
Definition: DtOsgChannel3dViewCompassInstance.h:266
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
TickMark myPopoutR
Definition: DtOsgChannel3dViewCompassInstance.h:268
float myPixelRatio
Definition: DtOsgChannel3dViewCompassInstance.h:261
The DtCoordinateSystem is used to manage the current coordinate system of the scene.
Definition: DtCoordinateSystem.h:41
OrientationUnits
Enumeration of the different orientation units.
Definition: DtDisplayUnitsSettingsRecord.h:101
DtSharedDisplayUnitsSettings::OrientationUnits myOrientationUnit
Definition: DtOsgChannel3dViewCompassInstance.h:271
Base class for handling DtChannels. Derived classes should override the tick() method and advance the...
Definition: DtChannelManager.h:32
A single 2D quadrilateral. None of this class's member functions are virtual because: ...
Definition: DtQuad.h:28
Base class to provide boost signal/slot management.
Configuration for a single channel Serialized and sent to remote displays as necessary to configure r...
Definition: DtChannelConfiguration.h:26
Contains makVrv::DtChannel3dViewCompassInstance class.
Contains DLL export macros.
DtOsgChannel * myChannel
Definition: DtOsgChannel3dViewCompassInstance.h:255
bool myCompassIsMagnetic
Definition: DtOsgChannel3dViewCompassInstance.h:257
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
DtLineSegment * darkSide
Definition: DtOsgChannel3dViewCompassInstance.h:249
DtLineSegment * darkSide
Definition: DtOsgChannel3dViewCompassInstance.h:121
DtLineSegment * lightSide
Definition: DtOsgChannel3dViewCompassInstance.h:120
osg::ref_ptr< osg::Texture > myCompassSymbolsTexture
Definition: DtOsgChannel3dViewCompassInstance.h:263
DtLineSegment * lightSide
Definition: DtOsgChannel3dViewCompassInstance.h:248
The DtOverlayRenderer implements the overlay concept. An overlay is a 2D scene that is drawn on top o...
Definition: DtOverlayRenderer.h:41