![]() |
VR-Forces 4.0.4 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. | |
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) |
Protected Attributes | |
| DtDe & | myDe |
| DtSignalConnectionManager | myConnections |
| DtOsgChannel * | myChannel |
| osg::ref_ptr< osg::Texture > | myNorthTexture |
| osg::ref_ptr< osg::Texture > | mySouthTexture |
| osg::ref_ptr< osg::Texture > | myEastTexture |
| osg::ref_ptr< osg::Texture > | myWestTexture |
| DtQuad * | myNorthLetter |
| DtQuad * | mySouthLetter |
| DtQuad * | myEastLetter |
| DtQuad * | myWestLetter |
| osg::Vec2 | myCenterPosition |
| bool | myNorthLetterDirty |
| bool | mySouthLetterDirty |
| bool | myEastLetterDirty |
| bool | myWestLetterDirty |
| TickMark | myLargeTickMarks [7] |
| TickMark | mySmallTickMarks [16] |
vrvGraphics-based implementation of a 2D compass
typedef std::vector<float> makVrv::DtOsgChannelCompassInstance::VertexList [protected] |
| virtual makVrv::DtOsgChannelCompassInstance::~DtOsgChannelCompassInstance | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtOsgChannelCompassInstance::setVisible | ( | bool | isVisible | ) | [virtual] |
Set the compass to visible or invisible.
Implements makVrv::DtSetVisibilityInterface.
| virtual bool makVrv::DtOsgChannelCompassInstance::visible | ( | ) | [virtual] |
Return visibility status.
| virtual void makVrv::DtOsgChannelCompassInstance::setChannelName | ( | const std::string & | deName, |
| const std::string & | winName, | ||
| const std::string & | channelName | ||
| ) | [virtual] |
Set the name of the channel that this compass should be drawn on.
Reimplemented from makVrv::DtChannelCompassInstance.
| virtual void makVrv::DtOsgChannelCompassInstance::setModelDefinition | ( | const std::string & | modelDefinition | ) | [virtual] |
Set the model definition; note that this (potentially) includes all the other parameters enumeration below.
Reimplemented from makVrv::DtChannelCompassInstance.
| virtual void makVrv::DtOsgChannelCompassInstance::updateCompass | ( | bool | force | ) | [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 void makVrv::DtOsgChannelCompassInstance::setNorthLetterFilename | ( | const std::string & | filename | ) | [virtual] |
Override base class method to set the dirty flag.
Reimplemented from makVrv::DtChannelCompassInstance.
| virtual void makVrv::DtOsgChannelCompassInstance::setSouthLetterFilename | ( | const std::string & | filename | ) | [virtual] |
Override base class method to set the dirty flag.
Reimplemented from makVrv::DtChannelCompassInstance.
| virtual void makVrv::DtOsgChannelCompassInstance::setEastLetterFilename | ( | const std::string & | filename | ) | [virtual] |
Override base class method to set the dirty flag.
Reimplemented from makVrv::DtChannelCompassInstance.
| virtual void makVrv::DtOsgChannelCompassInstance::setWestLetterFilename | ( | const std::string & | filename | ) | [virtual] |
Override base class method to set the dirty flag.
Reimplemented from makVrv::DtChannelCompassInstance.
| virtual void makVrv::DtOsgChannelCompassInstance::setDarkTickColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Override base class method to change dark color on all tick marks.
Reimplemented from makVrv::DtChannelCompassInstance.
| virtual void makVrv::DtOsgChannelCompassInstance::setLightTickColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Override base class method to change dark color on all tick marks.
Reimplemented from makVrv::DtChannelCompassInstance.
| virtual void makVrv::DtOsgChannelCompassInstance::slot_channelCreated | ( | DtChannelManager * | , |
| DtChannel * | |||
| ) | [protected, virtual] |
| virtual void makVrv::DtOsgChannelCompassInstance::slot_channelToBeDestroyed | ( | DtChannelManager * | , |
| DtChannel * | |||
| ) | [protected, virtual] |
| virtual void makVrv::DtOsgChannelCompassInstance::slot_channelConfigurationModified | ( | const std::string & | deName, |
| const std::string & | winName, | ||
| const std::string & | oldChannelName, | ||
| const DtChannelConfiguration & | config | ||
| ) | [protected, virtual] |
| virtual void makVrv::DtOsgChannelCompassInstance::slot_windowConfigurationModified | ( | const std::string & | deName, |
| const std::string & | winName, | ||
| const DtWindowConfiguration & | config | ||
| ) | [protected, virtual] |
| void makVrv::DtOsgChannelCompassInstance::createCompass | ( | ) | [protected] |
| void makVrv::DtOsgChannelCompassInstance::destroyCompass | ( | ) | [protected] |
| osg::Vec2 makVrv::DtOsgChannelCompassInstance::calcCenterPosition | ( | ) | [protected] |
| void makVrv::DtOsgChannelCompassInstance::slot_update | ( | ) | [protected] |
| DtLineSegment* makVrv::DtOsgChannelCompassInstance::createDarkSide | ( | DtOverlayRenderer & | overlay | ) | [protected] |
| DtLineSegment* makVrv::DtOsgChannelCompassInstance::createLightSide | ( | DtOverlayRenderer & | overlay | ) | [protected] |
| static void makVrv::DtOsgChannelCompassInstance::rotate | ( | const DtOsgChannelCompassInstance::VertexList & | in, |
| double | rad, | ||
| DtOsgChannelCompassInstance::VertexList & | out | ||
| ) | [static, protected] |
Utility function to rotate a list of vertices.
| static void makVrv::DtOsgChannelCompassInstance::translate | ( | const DtOsgChannelCompassInstance::VertexList & | in, |
| const osg::Vec2 & | translation, | ||
| DtOsgChannelCompassInstance::VertexList & | out | ||
| ) | [static, protected] |
Utility function to translate a list of vertices.
| static void makVrv::DtOsgChannelCompassInstance::scale | ( | const DtOsgChannelCompassInstance::VertexList & | in, |
| double | s, | ||
| DtOsgChannelCompassInstance::VertexList & | out | ||
| ) | [static, protected] |
DtDe& makVrv::DtOsgChannelCompassInstance::myDe [protected] |
osg::ref_ptr<osg::Texture> makVrv::DtOsgChannelCompassInstance::myNorthTexture [protected] |
osg::ref_ptr<osg::Texture> makVrv::DtOsgChannelCompassInstance::mySouthTexture [protected] |
osg::ref_ptr<osg::Texture> makVrv::DtOsgChannelCompassInstance::myEastTexture [protected] |
osg::ref_ptr<osg::Texture> makVrv::DtOsgChannelCompassInstance::myWestTexture [protected] |
DtQuad* makVrv::DtOsgChannelCompassInstance::myNorthLetter [protected] |
DtQuad* makVrv::DtOsgChannelCompassInstance::mySouthLetter [protected] |
DtQuad* makVrv::DtOsgChannelCompassInstance::myEastLetter [protected] |
DtQuad* makVrv::DtOsgChannelCompassInstance::myWestLetter [protected] |
osg::Vec2 makVrv::DtOsgChannelCompassInstance::myCenterPosition [protected] |
TickMark makVrv::DtOsgChannelCompassInstance::myLargeTickMarks[7] [protected] |
TickMark makVrv::DtOsgChannelCompassInstance::mySmallTickMarks[16] [protected] |