![]() |
VR-Forces 4.7 Class Documentation
|
vrvGraphics-based implementation of a 2D compass More...

Classes | |
| struct | TickMark |
Public Member Functions | |
| DtOsgChannelCompassInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~DtOsgChannelCompassInstance () |
| DTOR. | |
| virtual void | setVisible (bool isVisible) |
| Set the compass to visible or invisible. | |
| virtual bool | visible () |
| Return visibility status. | |
| virtual void | setChannelName (const std::string &deName, const std::string &winName, const std::string &channelName) |
| Set the name of the channel that this compass should be drawn on. | |
| virtual void | setModelDefinition (const std::string &modelDefinition) |
| Set the model definition; note that this (potentially) includes all the other parameters enumeration below. | |
| virtual void | updateCompass (bool force) |
| Called anytime any of the compass frame parameters change; calls redraw compass needle. | |
| void | updateLetter (bool &dirtyFlag, const std::string &filename, int tickIndex, DtQuad *letterQuad, osg::ref_ptr< osg::Texture > &letterTexture, bool &force) |
| virtual void | setNorthLetterFilename (const std::string &filename) |
| Override base class method to set the dirty flag. | |
| virtual void | setSouthLetterFilename (const std::string &filename) |
| Override base class method to set the dirty flag. | |
| virtual void | setEastLetterFilename (const std::string &filename) |
| Override base class method to set the dirty flag. | |
| virtual void | setWestLetterFilename (const std::string &filename) |
| Override base class method to set the dirty flag. | |
| virtual void | setDarkTickColor (float r, float g, float b, float a) |
| Override base class method to change dark color on all tick marks. | |
| virtual void | setLightTickColor (float r, float g, float b, float a) |
| Override base class method to change dark color on all tick marks. | |
Public Member Functions inherited from makVrv::DtChannelCompassInstance | |
| DtChannelCompassInstance () | |
| CTOR. | |
| virtual | ~DtChannelCompassInstance () |
| DTOR. | |
| virtual void | setCompassHeading (double heading) |
| set the compass heading | |
| virtual void | setLocation (DtChannelCompass::Locations location) |
| Set the compass location. | |
| DtChannelCompass::Locations | location () const |
| Returns the current location of the compass. | |
| virtual void | setMargins (unsigned int xMargin, unsigned int yMargin) |
| Set the margins, in pixels. | |
| virtual void | setCompassRadius (unsigned int radius) |
| Set the size of the compass, in pixels. | |
| virtual void | setNorthLetterSize (unsigned int width, unsigned int height) |
| Set the size of the North Letter, in pixels. | |
| void | setSouthLetterSize (unsigned int width, unsigned int height) |
| Set the size of the South Letter, in pixels. | |
| virtual void | setEastLetterSize (unsigned int width, unsigned int height) |
| Set the size of the East Letter, in pixels. | |
| virtual void | setWestLetterSize (unsigned int width, unsigned int height) |
| Set the size of the West Letter, in pixels. | |
| virtual void | showSmallTickMarks (bool show) |
| show or hide the smaller (every 15 degrees) tick marks | |
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) |
| void | createCompass () |
| void | destroyCompass () |
| osg::Vec2 | calcCenterPosition () |
| void | slot_update () |
| DtLineSegment * | createDarkSide (DtOverlayRenderer &overlay) |
| DtLineSegment * | createLightSide (DtOverlayRenderer &overlay) |
Static Protected Member Functions | |
| static void | rotate (const DtOsgChannelCompassInstance::VertexList &in, double rad, DtOsgChannelCompassInstance::VertexList &out) |
| Utility function to rotate a list of vertices. | |
| static void | translate (const DtOsgChannelCompassInstance::VertexList &in, const osg::Vec2 &translation, DtOsgChannelCompassInstance::VertexList &out) |
| Utility function to translate a list of vertices. | |
| static void | scale (const DtOsgChannelCompassInstance::VertexList &in, double s, DtOsgChannelCompassInstance::VertexList &out) |
vrvGraphics-based implementation of a 2D compass
|
protected |
| makVrv::DtOsgChannelCompassInstance::DtOsgChannelCompassInstance | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
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, | ||
| DtQuad * | letterQuad, | ||
| osg::ref_ptr< osg::Texture > & | 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 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.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
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 |