![]() |
VR-Forces 5.0.2 Developer's Guide
|
vrvGraphics-based implementation of 2D Grid Lines on projected databases \ingroup vrvOsg

Classes | |
| struct | GridLine |
Public Member Functions | |
| DtProjectedGridLinesDrawer (DtDe &de) | |
| virtual | ~DtProjectedGridLinesDrawer () |
| virtual void | drawGridLines () |
| virtual void | setMaxGridLines (int maxGridLines) |
| virtual void | setWindowDimensions (double startWindowX, double startWindowY, double endWindowX, double endWindowY) |
| virtual void | setCenter (const osg::Vec2d ¢er) |
| virtual void | setHeading (double heading) |
| virtual void | setScale (double scale) |
| virtual void | destroyGridLines () |
Public Member Functions inherited from makVrv::DtGridLinesDrawer | |
| DtGridLinesDrawer (DtDe &de) | |
| virtual | ~DtGridLinesDrawer () |
| virtual void | setChannel (DtOsgChannel *channel) |
| virtual void | setChannelDimensions (int startChannelX, int startChannelY, int endChannelX, int endChannelY) |
| virtual void | setupOverlay () |
| virtual void | setupFont () |
| virtual double | lookupClosestLatLonSpacing (double minimumSpacingRadians) |
| virtual double | lookupClosestCartesianSpacing (double minimumSpacing) |
| void | setPixelRatio (float pixelRatio) |
Public Member Functions inherited from makVrv::DtGridLinesParameters | |
| DtGridLinesParameters () | |
| virtual | ~DtGridLinesParameters () |
| DtGridLinesParameters (const DtGridLinesParameters &orig) | |
| DtGridLinesParameters & | operator= (const DtGridLinesParameters &orig) |
| virtual void | setGridType (makArchives::DtDisplayUnitsSettingsRecord::CoordSys gridType) |
| virtual void | setUnitType (makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits unitType) |
| virtual void | setUnitType (makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits unitType) |
| virtual void | setMinimalGridlineLabelsEnabled (bool enabled) |
| virtual void | setAutoSpacing (bool autoSpacing) |
| virtual void | setMinSpacing (int pixels) |
| virtual void | setFixedSpacingAmount (double amount) |
| virtual void | setXOffset (double offset) |
| virtual void | setYOffset (double offset) |
| virtual void | setDecimalPlaces (unsigned decimalPlaces) |
| virtual void | setEastWestGridLineColor (float r, float g, float b, float a) |
| virtual void | setEastWestLabelColor (float r, float g, float b, float a) |
| virtual void | setNorthSouthGridLineColor (float r, float g, float b, float a) |
| virtual void | setNorthSouthLabelColor (float r, float g, float b, float a) |
| virtual void | setLabelFont (const std::string &fontName) |
| virtual void | setLabelPointSize (int pointSize) |
| virtual void | setLabelXOffset (int pixels) |
| virtual void | setLabelYOffset (int pixels) |
| virtual void | setLabelTextWidth (int width) |
| virtual void | setLabelTextHeight (int height) |
| virtual void | setGridLineWidth (float width) |
Protected Types | |
| enum | LabelPosition { Bottom, Left, Top, Right, Indeterminate } |
| typedef std::vector< GridLine > | GridLineVector |
| typedef std::vector < DtTextProxy * > | GridBoxLabelArray |
| typedef std::vector< float > | VertexList |
| typedef boost::unordered_set < DtUnicode > | UsedGridLabels |
Static Protected Member Functions | |
| static void | rotate (const DtProjectedGridLinesDrawer::VertexList &in, double rad, DtProjectedGridLinesDrawer::VertexList &out) |
| static void | translate (const DtProjectedGridLinesDrawer::VertexList &in, const osg::Vec2 &translation, DtProjectedGridLinesDrawer::VertexList &out) |
| static void | scale (const DtProjectedGridLinesDrawer::VertexList &in, double s, DtProjectedGridLinesDrawer::VertexList &out) |
Static Protected Member Functions inherited from makVrv::DtGridLinesDrawer | |
| 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) |
Private Member Functions | |
| DtProjectedGridLinesDrawer (const DtProjectedGridLinesDrawer &orig) | |
| DtProjectedGridLinesDrawer & | operator= (const DtProjectedGridLinesDrawer &rhs) |
|
protected |
|
protected |
|
protected |
his type can be used to provide a list of vertices to the polygon objects
|
protected |
|
protected |
| makVrv::DtProjectedGridLinesDrawer::DtProjectedGridLinesDrawer | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
private |
Unimplemented copy constructor.
|
virtual |
Draw the grid lines (and labels)
|
virtual |
Override base class to allocate memory for lines.
Reimplemented from makVrv::DtGridLinesParameters.
|
virtual |
Set the approximate DB dimensions of the view within the unrotated window.
|
virtual |
Set the DB location at the center of the window.
|
virtual |
Set the current observer heading.
|
virtual |
Set the current observer scale.
|
virtual |
Destroy all grid lines in the current channel.
|
protectedvirtual |
Reloads text label fonts on runtime font size change.
Implements makVrv::DtGridLinesDrawer.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Determine, based on autoSpacing setting or fixed spacing value, what the grid spacing should be. Modifies myXSpacing and myYSpacing.
|
protectedvirtual |
Find the range of x's and y's to attempt to draw grid lines for (in database coordinates). It takes the grid type into account, and attempts to use a logical origin (like the zone origin in UTM).
|
protectedvirtual |
Given x and y in database coordinates, create a label string for the grid line in the coordinate system appropriate for the current grid type. This method may change xMeters if mecessary to get a migrid Label into the current UTM zone.
|
protectedvirtual |
|
protected |
Convert degree spacing to meters, used to actually draw the lines Note that the spacing may be different for x and y when the units are degrees.
|
protectedvirtual |
Find the offset and alignment for a label.
|
protectedvirtual |
Find the offset and alignment for a grid box label.
|
protectedvirtual |
Determine which screen edge a label is closest to.
|
protectedvirtual |
Determine which screen edge a label type is supposed to be on.
|
protected |
Convert one degree of latitude (on the current flat-earth projected db) into meters.
|
protectedvirtual |
Convert one degree of longitude (on the current flat-earth projected db) into meters.
|
protectedvirtual |
Return the fixed spacing amount for the current gridType. Returns the spacing amount in meters or degrees.
|
protectedvirtual |
Return the x offset for the current gridType. Returns the x offset in meters or degrees.
|
protectedvirtual |
Return the y offset for the current gridType. Returns the y offset in meters or degrees.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
slot for when the coordinate system changes
|
protectedvirtual |
Iterate through the grid line intersections, considering them as grid boxes, and request labels from the coordinate display object. If non-zero length labels are returned, and the label isn't a duplicate, add the label to the grid.
|
staticprotected |
Utility function to rotate a list of vertices.
|
staticprotected |
Utility function to translate a list of vertices.
|
staticprotected |
Utility function to scale a list of vertices.
|
private |
Unimplemented assignment operator.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
local clone of the system wide coordinate system. for thread safety.