![]() |
VR-Forces Developer's Guide
|
vrvGraphics-based implementation of a 2D compass

Classes | |
| struct | TickMark |
Public Member Functions | |
| DtOsgChannelCompassInstance (DtDe &de) | |
| virtual | ~DtOsgChannelCompassInstance () |
| DtOsgChannelCompassInstance ()=delete | |
| DtOsgChannelCompassInstance (const DtOsgChannelCompassInstance &other)=delete | |
| DtOsgChannelCompassInstance & | operator= (const DtOsgChannelCompassInstance &other)=delete |
| virtual void | setVisible (bool isVisible) |
| virtual bool | visible () |
| virtual void | setChannelName (const std::string &deName, const std::string &winName, const std::string &channelName) |
| virtual void | setModelDefinition (const std::string &modelDefinition) |
| virtual void | updateCompass (bool force) |
| void | updateLetter (bool &dirtyFlag, const std::string &filename, int tickIndex, DtQuadProxyInterface *letterQuad, DtOsgTextureWrapper *letterTexture, bool &force) |
| virtual void | setNorthLetterFilename (const std::string &filename) |
| virtual void | setSouthLetterFilename (const std::string &filename) |
| virtual void | setEastLetterFilename (const std::string &filename) |
| virtual void | setWestLetterFilename (const std::string &filename) |
| virtual void | setStarFilename (const std::string &filename) |
| virtual void | setDarkTickColor (float r, float g, float b, float a) |
| virtual void | setLightTickColor (float r, float g, float b, float a) |
| virtual void | setPixelRatio (float pixelRatio) |
Public Member Functions inherited from makVrv::DtChannelCompassInstance | |
| DtChannelCompassInstance (DtDe &de) | |
| virtual | ~DtChannelCompassInstance () |
| DtChannelCompassInstance (const DtChannelCompassInstance &other)=delete | |
| DtChannelCompassInstance & | operator= (const DtChannelCompassInstance &other)=delete |
| virtual void | setCompassHeading (double heading) |
| virtual void | setLocation (DtChannelCompass::Locations location) |
| DtChannelCompass::Locations | location () const |
| virtual void | setMargins (unsigned int xMargin, unsigned int yMargin) |
| virtual void | setCompassRadius (unsigned int radius) |
| virtual void | setNorthLetterSize (unsigned int width, unsigned int height) |
| void | setSouthLetterSize (unsigned int width, unsigned int height) |
| virtual void | setEastLetterSize (unsigned int width, unsigned int height) |
| virtual void | setWestLetterSize (unsigned int width, unsigned int height) |
| virtual void | setStarSize (unsigned int width, unsigned int height) |
| virtual void | showSmallTickMarks (bool show) |
Public Member Functions inherited from makVrv::DtSetVisibilityInterface | |
| virtual | ~DtSetVisibilityInterface () |
Protected Types | |
| typedef std::vector< float > | VertexList |
Protected Member Functions | |
| virtual void | slot_channelCreated (DtChannelManager *, DtChannel *) |
| virtual void | slot_channelToBeDestroyed (DtChannelManager *, DtChannel *) |
| virtual void | slot_channelConfigurationModified (const std::string &deName, const std::string &winName, const std::string &oldChannelName, const DtChannelConfiguration &config) |
| virtual void | slot_windowConfigurationModified (const std::string &deName, const std::string &winName, const DtWindowConfiguration &config) |
| virtual void | slot_coordinateSystemChanged () |
| void | createCompass () |
| void | destroyCompass () |
| osg::Vec2 | calcCenterPosition () |
| void | slot_update () |
| DtLineSegment * | createDarkSide (DtOverlayRendererInterface &overlay) |
| DtLineSegment * | createLightSide (DtOverlayRendererInterface &overlay) |
Static Protected Member Functions | |
| static void | rotate (const DtOsgChannelCompassInstance::VertexList &in, double rad, DtOsgChannelCompassInstance::VertexList &out) |
| static void | translate (const DtOsgChannelCompassInstance::VertexList &in, const osg::Vec2 &translation, DtOsgChannelCompassInstance::VertexList &out) |
| static void | scale (const DtOsgChannelCompassInstance::VertexList &in, double s, DtOsgChannelCompassInstance::VertexList &out) |
|
protected |
| makVrv::DtOsgChannelCompassInstance::DtOsgChannelCompassInstance | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
delete |
Default Constructor not implemented.
|
delete |
Copy Constructor not implemented - Copy not allowed.
|
delete |
Assignment Operator not implemented - Assignment not allowed.
|
virtual |
Set the compass to visible or invisible.
Implements makVrv::DtSetVisibilityInterface.
|
virtual |
Return visibility status.
|
virtual |
Set the name of the channel that this compass should be drawn on.
Reimplemented from makVrv::DtChannelCompassInstance.
|
virtual |
Set the model definition; note that this (potentially) includes all the other parameters enumeration below.
Reimplemented from makVrv::DtChannelCompassInstance.
|
virtual |
Called anytime any of the compass frame parameters change; calls redraw compass needle.
Implements makVrv::DtChannelCompassInstance.
| void makVrv::DtOsgChannelCompassInstance::updateLetter | ( | bool & | dirtyFlag, |
| const std::string & | filename, | ||
| int | tickIndex, | ||
| DtQuadProxyInterface * | letterQuad, | ||
| DtOsgTextureWrapper * | letterTexture, | ||
| bool & | force | ||
| ) |
|
virtual |
Override base class method to set the dirty flag.
Reimplemented from makVrv::DtChannelCompassInstance.
|
virtual |
Override base class method to set the dirty flag.
Reimplemented from makVrv::DtChannelCompassInstance.
|
virtual |
Override base class method to set the dirty flag.
Reimplemented from makVrv::DtChannelCompassInstance.
|
virtual |
Override base class method to set the dirty flag.
Reimplemented from makVrv::DtChannelCompassInstance.
|
virtual |
Override base class method to set the dirty flag.
Reimplemented from makVrv::DtChannelCompassInstance.
|
virtual |
Override base class method to change dark color on all tick marks.
Reimplemented from makVrv::DtChannelCompassInstance.
|
virtual |
Override base class method to change dark color on all tick marks.
Reimplemented from makVrv::DtChannelCompassInstance.
|
virtual |
Sets the pixel density ratio to scale grid lines on high dpi screens.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
slot for when the coordinate system changes
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
Utility function to rotate a list of vertices.
|
staticprotected |
Utility function to translate a list of vertices.
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
local clone of the system wide coordinate system. for thread safety.