VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions
makVrv::DtGridLinesDrawer Class Reference

Base class with common data / methods for drawing grid lines on projected and geocentric databases \ingroup vrvOsg. More...

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

Public Member Functions

 DtGridLinesDrawer (DtDe &de)
 Default CTOR.
virtual ~DtGridLinesDrawer ()
 Virtual DTOR.
virtual void setChannel (DtOsgChannel *channel)
 Set the channel to draw the grid lines on.
virtual void setChannelDimensions (int startChannelX, int startChannelY, int endChannelX, int endChannelY)
 Set the channel dimensions.
virtual void setupOverlay ()
 Get the overlay to use for our channel.
virtual void setupFont ()
 Get the font to use fron the font manager.
virtual double lookupClosestLatLonSpacing (double minimumSpacingRadians)
 Find the best allowable lat,lon spacing given the minimum requirement.
virtual double lookupClosestCartesianSpacing (double minimumSpacing)
 Find the best allowable cartesian spacing given the minimum requirement.
- Public Member Functions inherited from makVrv::DtGridLinesParameters
 DtGridLinesParameters ()
 CTOR.
virtual ~DtGridLinesParameters ()
 DTOR.
 DtGridLinesParameters (const DtGridLinesParameters &orig)
 Copy constructor.
DtGridLinesParametersoperator= (const DtGridLinesParameters &orig)
 \ brief Assignment operator
virtual void setGridType (makArchives::DtDisplayUnitsSettingsRecord::CoordSys gridType)
 Set the grid type.
virtual void setUnitType (makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits unitType)
 Set the unit type.
virtual void setUnitType (makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits unitType)
 Set the unit type.
virtual void setAutoSpacing (bool autoSpacing)
 Set whether auto spacing is used.
virtual void setMinSpacing (int pixels)
 Set the minimum pixel spacing for auto spacing.
virtual void setFixedSpacingAmount (double amount)
 Set the fixed spacing amount.
virtual void setXOffset (double offset)
 Set the x offset for the origin in current units.
virtual void setYOffset (double offset)
 Set the y offset amount in current units.
virtual void setDecimalPlaces (unsigned decimalPlaces)
 Set the number of decimals or, in the case of MGRS, decimalPlaces.
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.

Static Protected Member Functions

static bool clip (double xMin, double xMax, double yMin, double yMax, double x0src, double y0src, double x1src, double y1src, double &x0clip, double &y0clip, double &x1clip, double &y1clip)
 2D clipping routine. Implements Liang / Barsky Clipping

Protected Attributes

DtDemyDe
DtOsgChannelmyChannel
osg::Matrix myWorldToWindowMatrix
int myStartChannelX
int myStartChannelY
int myEndChannelX
int myEndChannelY
DtOverlayRenderermyOverlayRenderer
DtFontSP myFont
std::vector< doublemyLatLonAllowableSpacings
std::vector< doublemyCartesianAllowableSpacings
- Protected Attributes inherited from makVrv::DtGridLinesParameters
makArchives::DtDisplayUnitsSettingsRecord::CoordSys myGridType
bool myUnitTypeIsAngular
makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits myUnitType
makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits myAngularUnitType
bool myAutoSpacing
int myMinSpacing
double mySpacing
double myXOffset
double myYOffset
unsigned myDecimalPlaces
int myMaxGridLines
float myEastWestGridLineColor [4]
float myEastWestLabelColor [4]
float myNorthSouthGridLineColor [4]
float myNorthSouthLabelColor [4]
std::string myLabelFont
int myLabelPointSize
int myLabelXOffset
int myLabelYOffset
int myLabelTextWidth
int myLabelTextHeight
float myGridLineWidth

Private Member Functions

 DtGridLinesDrawer (const DtGridLinesDrawer &orig)
 Copy CTOR ( Not implemented )
DtGridLinesDraweroperator= (const DtGridLinesDrawer &rhs)
 Assignment operator ( Not implemented )

Detailed Description

Base class with common data / methods for drawing grid lines on projected and geocentric databases \ingroup vrvOsg.

Constructor & Destructor Documentation

makVrv::DtGridLinesDrawer::DtGridLinesDrawer ( DtDe de)

Default CTOR.

virtual makVrv::DtGridLinesDrawer::~DtGridLinesDrawer ( )
virtual

Virtual DTOR.

makVrv::DtGridLinesDrawer::DtGridLinesDrawer ( const DtGridLinesDrawer orig)
private

Copy CTOR ( Not implemented )

Member Function Documentation

virtual void makVrv::DtGridLinesDrawer::setChannel ( DtOsgChannel channel)
virtual

Set the channel to draw the grid lines on.

virtual void makVrv::DtGridLinesDrawer::setChannelDimensions ( int  startChannelX,
int  startChannelY,
int  endChannelX,
int  endChannelY 
)
virtual

Set the channel dimensions.

Reimplemented in makVrv::DtGeocentricGridLinesDrawer.

virtual void makVrv::DtGridLinesDrawer::setupOverlay ( )
virtual

Get the overlay to use for our channel.

virtual void makVrv::DtGridLinesDrawer::setupFont ( )
virtual

Get the font to use fron the font manager.

virtual double makVrv::DtGridLinesDrawer::lookupClosestLatLonSpacing ( double  minimumSpacingRadians)
virtual

Find the best allowable lat,lon spacing given the minimum requirement.

virtual double makVrv::DtGridLinesDrawer::lookupClosestCartesianSpacing ( double  minimumSpacing)
virtual

Find the best allowable cartesian spacing given the minimum requirement.

static bool makVrv::DtGridLinesDrawer::clip ( double  xMin,
double  xMax,
double  yMin,
double  yMax,
double  x0src,
double  y0src,
double  x1src,
double  y1src,
double x0clip,
double y0clip,
double x1clip,
double y1clip 
)
staticprotected

2D clipping routine. Implements Liang / Barsky Clipping

DtGridLinesDrawer& makVrv::DtGridLinesDrawer::operator= ( const DtGridLinesDrawer rhs)
private

Assignment operator ( Not implemented )

Member Data Documentation

DtDe& makVrv::DtGridLinesDrawer::myDe
protected
DtOsgChannel* makVrv::DtGridLinesDrawer::myChannel
protected
osg::Matrix makVrv::DtGridLinesDrawer::myWorldToWindowMatrix
protected
int makVrv::DtGridLinesDrawer::myStartChannelX
protected
int makVrv::DtGridLinesDrawer::myStartChannelY
protected
int makVrv::DtGridLinesDrawer::myEndChannelX
protected
int makVrv::DtGridLinesDrawer::myEndChannelY
protected
DtOverlayRenderer* makVrv::DtGridLinesDrawer::myOverlayRenderer
protected
DtFontSP makVrv::DtGridLinesDrawer::myFont
protected
std::vector<double> makVrv::DtGridLinesDrawer::myLatLonAllowableSpacings
protected
std::vector<double> makVrv::DtGridLinesDrawer::myCartesianAllowableSpacings
protected

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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)