![]() |
VR-Forces 4.0.4 Class Documentation
|
Base class with common data / methods for drawing grid lines on projected and geocentric databases \ingroup vrvOsg. More...

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 | |
| DtDe & | myDe |
| DtOsgChannel * | myChannel |
| osg::Matrix | myWorldToWindowMatrix |
| int | myStartChannelX |
| int | myStartChannelY |
| int | myEndChannelX |
| int | myEndChannelY |
| DtOverlayRenderer * | myOverlayRenderer |
| boost::shared_ptr< DtFont > | myFont |
| std::vector< double > | myLatLonAllowableSpacings |
| std::vector< double > | myCartesianAllowableSpacings |
Private Member Functions | |
| DtGridLinesDrawer (const DtGridLinesDrawer &orig) | |
| Copy CTOR ( Not implemented ) | |
| DtGridLinesDrawer & | operator= (const DtGridLinesDrawer &rhs) |
| Assignment operator ( Not implemented ) | |
Base class with common data / methods for drawing grid lines on projected and geocentric databases \ingroup vrvOsg.
Default CTOR.
| virtual makVrv::DtGridLinesDrawer::~DtGridLinesDrawer | ( | ) | [virtual] |
Virtual DTOR.
| makVrv::DtGridLinesDrawer::DtGridLinesDrawer | ( | const DtGridLinesDrawer & | orig | ) | [private] |
Copy CTOR ( Not implemented )
| 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 )
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] |
boost::shared_ptr<DtFont> makVrv::DtGridLinesDrawer::myFont [protected] |
std::vector<double> makVrv::DtGridLinesDrawer::myLatLonAllowableSpacings [protected] |
std::vector<double> makVrv::DtGridLinesDrawer::myCartesianAllowableSpacings [protected] |