VR-Forces 4.0.4 Class Documentation
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]

List of all members.

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.

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
boost::shared_ptr< DtFontmyFont
std::vector< double > myLatLonAllowableSpacings
std::vector< double > myCartesianAllowableSpacings

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

Default CTOR.

Virtual DTOR.

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 
) [static, protected]

2D clipping routine. Implements Liang / Barsky Clipping

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

Assignment operator ( Not implemented )


Member Data Documentation

boost::shared_ptr<DtFont> makVrv::DtGridLinesDrawer::myFont [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)