VR-Forces 4.0.4 Class Documentation
Classes | Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes
makVrv::DtOsgChannelCompassInstance Class Reference

vrvGraphics-based implementation of a 2D compass More...

Inheritance diagram for makVrv::DtOsgChannelCompassInstance:
Inheritance graph
[legend]

List of all members.

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 ()
DtLineSegmentcreateDarkSide (DtOverlayRenderer &overlay)
DtLineSegmentcreateLightSide (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

DtDemyDe
DtSignalConnectionManager myConnections
DtOsgChannelmyChannel
osg::ref_ptr< osg::Texture > myNorthTexture
osg::ref_ptr< osg::Texture > mySouthTexture
osg::ref_ptr< osg::Texture > myEastTexture
osg::ref_ptr< osg::Texture > myWestTexture
DtQuadmyNorthLetter
DtQuadmySouthLetter
DtQuadmyEastLetter
DtQuadmyWestLetter
osg::Vec2 myCenterPosition
bool myNorthLetterDirty
bool mySouthLetterDirty
bool myEastLetterDirty
bool myWestLetterDirty
TickMark myLargeTickMarks [7]
TickMark mySmallTickMarks [16]

Detailed Description

vrvGraphics-based implementation of a 2D compass


Member Typedef Documentation

typedef std::vector<float> makVrv::DtOsgChannelCompassInstance::VertexList [protected]

Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

virtual void makVrv::DtOsgChannelCompassInstance::setVisible ( bool  isVisible) [virtual]

Set the compass to visible or invisible.

Implements makVrv::DtSetVisibilityInterface.

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_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]

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.


Member Data Documentation

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]

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)