VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
makVrv::DtOsgChannelGridLinesInstance Class Reference

vrvGraphics-based implementation of grid lines More...

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

List of all members.

Public Member Functions

 DtOsgChannelGridLinesInstance (DtDe &de)
 CTOR.
virtual ~DtOsgChannelGridLinesInstance ()
 DTOR.
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 setVisible (bool isVisible)
 Set the grid line visibility state.
virtual void setGridType (makArchives::DtDisplayUnitsSettingsRecord::CoordSys gridType)
 Set the grid type.
virtual void setUnitType (makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits unitType)
 Set the linear unit type.
virtual void setUnitType (makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits unitType)
 Set the angular unit type.
virtual void setAutoSpacing (bool autoSpacing)
 Set whether auto spacing is used.
virtual void setFixedSpacingAmount (double amount)
 Set the fixed spacing amount for meters.
virtual void setXOffset (double offset)
 Set the x offset for the origin in meters.
virtual void setYOffset (double offset)
 Set the y offset amount in meters.
virtual void setMinSpacing (int pixels)
 Set the minimum pixel spacing for auto spacing.
virtual void setDecimalPlaces (unsigned decimalPlaces)
 Set the decimalPlaces to use for labels.
virtual void setMaxGridLines (int maxGridLines)
 Set the max number of grid lines in each direction.
virtual void setEastWestGridLineColor (float r, float g, float b, float a)
 Set the color of east-west grid lines.
virtual void setEastWestLabelColor (float r, float g, float b, float a)
 Set the color of the labels on east-west grid lines.
virtual void setNorthSouthGridLineColor (float r, float g, float b, float a)
 Set the color of north-south grid lines.
virtual void setNorthSouthLabelColor (float r, float g, float b, float a)
 Set the color of the labels north-south grid lines.
virtual void setLabelFont (const std::string &fontName)
 Set the font used for labels.
virtual void setLabelPointSize (int pointSize)
 Set the point size used for labels.
virtual void setLabelXOffset (int pixels)
 Set the offset of labels from the bottom of the screen.
virtual void setLabelYOffset (int pixels)
 Set the offset of labels from the left side of the screen.
virtual void setLabelTextWidth (int width)
 Set the width of the box used to display text in.
virtual void setLabelTextHeight (int height)
 Set the height of the box used to display text in.
virtual void setGridLineWidth (float width)
 Set the width of grid lines.
virtual void updateGridLines ()
 Called anytime any of the grid line parameters change and each tick.

Protected Member Functions

virtual
DtProjectedGridLinesDrawer
createAndInitializeProjectedDBGridLinesDrawer ()
 Create and initialized the specialized grid lines drawer for projected databases.
virtual
DtGeocentricGridLinesDrawer
createAndInitializeGeocentricDBGridLinesDrawer ()
 Create and initialized the specialized grid lines drawer for geocentric databases.
virtual void slot_channelCreated (DtChannelManager *, DtChannel *)
 Called when a channel is created - is this our channel?
virtual void slot_channelToBeDestroyed (DtChannelManager *, DtChannel *)
 Called when a channel is about to be destroyed.
void slot_channelUpdated (DtChannelManager *, DtChannel *)
 This slot is attached to the renderer's update signal.

Protected Attributes

DtDemyDe
DtSignalConnectionManager myConnections
DtOsgChannelmyChannel
bool myFirstFrame
DtGridLinesDrawermyGridLinesDrawer
DtVector myPreviousCameraPosition
osg::Quat myPreviousCameraRotation
double myPreviousScale
double myPreviousWindowHeight
double myPreviousWindowWidth
double myPreviousViewportLeft
double myPreviousViewportRight
double myPreviousViewportTop
double myPreviousViewportBottom
bool myParamsChanged

Private Member Functions

 DtOsgChannelGridLinesInstance (const DtOsgChannelGridLinesInstance &orig)
 Unimplemented copy constructor.
DtOsgChannelGridLinesInstanceoperator= (const DtOsgChannelGridLinesInstance &rhs)
 Unimplemented assignment operator.

Detailed Description

vrvGraphics-based implementation of grid lines


Constructor & Destructor Documentation

CTOR.

DTOR.

Unimplemented copy constructor.


Member Function Documentation

virtual void makVrv::DtOsgChannelGridLinesInstance::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::DtChannelGridLinesInstance.

virtual void makVrv::DtOsgChannelGridLinesInstance::setModelDefinition ( const std::string &  modelDefinition) [virtual]

Set the model definition; note that this (potentially) includes all the other parameters enumeration below.

Reimplemented from makVrv::DtChannelGridLinesInstance.

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

Set the grid line visibility state.

Reimplemented from makVrv::DtChannelGridLinesInstance.

Set the grid type.

Reimplemented from makVrv::DtGridLinesParameters.

Set the linear unit type.

Reimplemented from makVrv::DtGridLinesParameters.

Set the angular unit type.

Reimplemented from makVrv::DtGridLinesParameters.

virtual void makVrv::DtOsgChannelGridLinesInstance::setAutoSpacing ( bool  autoSpacing) [virtual]

Set whether auto spacing is used.

Reimplemented from makVrv::DtGridLinesParameters.

virtual void makVrv::DtOsgChannelGridLinesInstance::setFixedSpacingAmount ( double  amount) [virtual]

Set the fixed spacing amount for meters.

Reimplemented from makVrv::DtGridLinesParameters.

virtual void makVrv::DtOsgChannelGridLinesInstance::setXOffset ( double  offset) [virtual]

Set the x offset for the origin in meters.

Reimplemented from makVrv::DtGridLinesParameters.

virtual void makVrv::DtOsgChannelGridLinesInstance::setYOffset ( double  offset) [virtual]

Set the y offset amount in meters.

Reimplemented from makVrv::DtGridLinesParameters.

virtual void makVrv::DtOsgChannelGridLinesInstance::setMinSpacing ( int  pixels) [virtual]

Set the minimum pixel spacing for auto spacing.

Reimplemented from makVrv::DtGridLinesParameters.

virtual void makVrv::DtOsgChannelGridLinesInstance::setDecimalPlaces ( unsigned  decimalPlaces) [virtual]

Set the decimalPlaces to use for labels.

Reimplemented from makVrv::DtGridLinesParameters.

virtual void makVrv::DtOsgChannelGridLinesInstance::setMaxGridLines ( int  maxGridLines) [virtual]

Set the max number of grid lines in each direction.

Reimplemented from makVrv::DtGridLinesParameters.

virtual void makVrv::DtOsgChannelGridLinesInstance::setEastWestGridLineColor ( float  r,
float  g,
float  b,
float  a 
) [virtual]

Set the color of east-west grid lines.

Reimplemented from makVrv::DtGridLinesParameters.

virtual void makVrv::DtOsgChannelGridLinesInstance::setEastWestLabelColor ( float  r,
float  g,
float  b,
float  a 
) [virtual]

Set the color of the labels on east-west grid lines.

Reimplemented from makVrv::DtGridLinesParameters.

virtual void makVrv::DtOsgChannelGridLinesInstance::setNorthSouthGridLineColor ( float  r,
float  g,
float  b,
float  a 
) [virtual]

Set the color of north-south grid lines.

Reimplemented from makVrv::DtGridLinesParameters.

virtual void makVrv::DtOsgChannelGridLinesInstance::setNorthSouthLabelColor ( float  r,
float  g,
float  b,
float  a 
) [virtual]

Set the color of the labels north-south grid lines.

Reimplemented from makVrv::DtGridLinesParameters.

virtual void makVrv::DtOsgChannelGridLinesInstance::setLabelFont ( const std::string &  fontName) [virtual]

Set the font used for labels.

Reimplemented from makVrv::DtGridLinesParameters.

virtual void makVrv::DtOsgChannelGridLinesInstance::setLabelPointSize ( int  pointSize) [virtual]

Set the point size used for labels.

Reimplemented from makVrv::DtGridLinesParameters.

virtual void makVrv::DtOsgChannelGridLinesInstance::setLabelXOffset ( int  pixels) [virtual]

Set the offset of labels from the bottom of the screen.

Reimplemented from makVrv::DtGridLinesParameters.

virtual void makVrv::DtOsgChannelGridLinesInstance::setLabelYOffset ( int  pixels) [virtual]

Set the offset of labels from the left side of the screen.

Reimplemented from makVrv::DtGridLinesParameters.

virtual void makVrv::DtOsgChannelGridLinesInstance::setLabelTextWidth ( int  width) [virtual]

Set the width of the box used to display text in.

Reimplemented from makVrv::DtGridLinesParameters.

virtual void makVrv::DtOsgChannelGridLinesInstance::setLabelTextHeight ( int  height) [virtual]

Set the height of the box used to display text in.

Reimplemented from makVrv::DtGridLinesParameters.

virtual void makVrv::DtOsgChannelGridLinesInstance::setGridLineWidth ( float  width) [virtual]

Set the width of grid lines.

Reimplemented from makVrv::DtGridLinesParameters.

Called anytime any of the grid line parameters change and each tick.

Implements makVrv::DtChannelGridLinesInstance.

Create and initialized the specialized grid lines drawer for projected databases.

Create and initialized the specialized grid lines drawer for geocentric databases.

Called when a channel is created - is this our channel?

Called when a channel is about to be destroyed.

This slot is attached to the renderer's update signal.

DtOsgChannelGridLinesInstance& makVrv::DtOsgChannelGridLinesInstance::operator= ( const DtOsgChannelGridLinesInstance rhs) [private]

Unimplemented assignment operator.


Member Data Documentation


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)