vrvGraphics-based implementation of 2D Grid Lines on projected databases \ingroup vrvOsg
More...
|
| | DtProjectedGridLinesDrawer (DtDe &de) |
| | CTOR. More...
|
| |
| virtual | ~DtProjectedGridLinesDrawer () |
| | DTOR. More...
|
| |
| virtual void | drawGridLines () |
| | Draw the grid lines (and labels) More...
|
| |
| virtual void | setMaxGridLines (int maxGridLines) |
| | Override base class to allocate memory for lines. More...
|
| |
| virtual void | setWindowDimensions (double startWindowX, double startWindowY, double endWindowX, double endWindowY) |
| | Set the approximate DB dimensions of the view within the unrotated window. More...
|
| |
| virtual void | setCenter (const osg::Vec2d ¢er) |
| | Set the DB location at the center of the window. More...
|
| |
| virtual void | setHeading (double heading) |
| | Set the current observer heading. More...
|
| |
| virtual void | setScale (double scale) |
| | Set the current observer scale. More...
|
| |
| virtual void | destroyGridLines () |
| | Destroy all grid lines in the current channel. More...
|
| |
| | DtGridLinesDrawer (DtDe &de) |
| | Default CTOR. More...
|
| |
| virtual | ~DtGridLinesDrawer () |
| | Virtual DTOR. More...
|
| |
| virtual void | setChannel (DtOsgChannel *channel) |
| | Set the channel to draw the grid lines on. More...
|
| |
| virtual void | setChannelDimensions (int startChannelX, int startChannelY, int endChannelX, int endChannelY) |
| | Set the channel dimensions. More...
|
| |
| virtual void | setupOverlay () |
| | Get the overlay to use for our channel. More...
|
| |
| virtual void | setupFont () |
| | Get the font to use fron the font manager. More...
|
| |
| virtual double | lookupClosestLatLonSpacing (double minimumSpacingRadians) |
| | Find the best allowable lat,lon spacing given the minimum requirement. More...
|
| |
| virtual double | lookupClosestCartesianSpacing (double minimumSpacing) |
| | Find the best allowable cartesian spacing given the minimum requirement. More...
|
| |
| void | setPixelRatio (float pixelRatio) |
| | Sets the pixel density ratio to scale grid lines on high dpi screens. More...
|
| |
| | DtGridLinesParameters () |
| | CTOR. More...
|
| |
| virtual | ~DtGridLinesParameters () |
| | DTOR. More...
|
| |
| | DtGridLinesParameters (const DtGridLinesParameters &orig) |
| | Copy constructor. More...
|
| |
| DtGridLinesParameters & | operator= (const DtGridLinesParameters &orig) |
| | \ brief Assignment operator More...
|
| |
| virtual void | setGridType (makArchives::DtDisplayUnitsSettingsRecord::CoordSys gridType) |
| | Set the grid type. More...
|
| |
| virtual void | setUnitType (makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits unitType) |
| | Set the unit type. More...
|
| |
| virtual void | setUnitType (makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits unitType) |
| | Set the unit type. More...
|
| |
| virtual void | setMinimalGridlineLabelsEnabled (bool enabled) |
| | Set whether or not minimal gridline labels are used. More...
|
| |
| virtual void | setAutoSpacing (bool autoSpacing) |
| | Set whether auto spacing is used. More...
|
| |
| virtual void | setMinSpacing (int pixels) |
| | Set the minimum pixel spacing for auto spacing. More...
|
| |
| virtual void | setFixedSpacingAmount (double amount) |
| | Set the fixed spacing amount. More...
|
| |
| virtual void | setXOffset (double offset) |
| | Set the x offset for the origin in current units. More...
|
| |
| virtual void | setYOffset (double offset) |
| | Set the y offset amount in current units. More...
|
| |
| virtual void | setDecimalPlaces (unsigned decimalPlaces) |
| | Set the number of decimals or, in the case of MGRS, decimalPlaces. More...
|
| |
| virtual void | setEastWestGridLineColor (float r, float g, float b, float a) |
| | Set the color of east-west grid lines. More...
|
| |
| virtual void | setEastWestLabelColor (float r, float g, float b, float a) |
| | Set the color of the labels on east-west grid lines. More...
|
| |
| virtual void | setNorthSouthGridLineColor (float r, float g, float b, float a) |
| | Set the color of north-south grid lines. More...
|
| |
| virtual void | setNorthSouthLabelColor (float r, float g, float b, float a) |
| | Set the color of the labels north-south grid lines. More...
|
| |
| virtual void | setLabelFont (const std::string &fontName) |
| | Set the font used for labels. More...
|
| |
| virtual void | setLabelPointSize (int pointSize) |
| | Set the point size used for labels. More...
|
| |
| virtual void | setLabelXOffset (int pixels) |
| | Set the offset of labels from the bottom of the screen. More...
|
| |
| virtual void | setLabelYOffset (int pixels) |
| | Set the offset of labels from the left side of the screen. More...
|
| |
| virtual void | setLabelTextWidth (int width) |
| | Set the width of the box used to display text in. More...
|
| |
| virtual void | setLabelTextHeight (int height) |
| | Set the height of the box used to display text in. More...
|
| |
| virtual void | setGridLineWidth (float width) |
| | Set the width of grid lines. More...
|
| |
|
| virtual void | reloadTextFonts () |
| | Reloads text label fonts on runtime font size change. More...
|
| |
| virtual void | drawNorthSouthGridLinesAndLabels () |
| |
| virtual void | drawEastWestGridLinesAndLabels () |
| |
| virtual void | findSpacing () |
| | Determine, based on autoSpacing setting or fixed spacing value, what the grid spacing should be. More...
|
| |
| virtual void | anchorAndOffsetLines () |
| | Find the range of x's and y's to attempt to draw grid lines for (in database coordinates). More...
|
| |
| virtual DtUnicode | createLabel (const double &xMeters, const double &yMeters, bool isNorthSouth) |
| | 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. More...
|
| |
| virtual bool | labelGridBox (double nsValue, double ewValue, int labelIndex) |
| |
| void | convertDegreeSpacingToMeters (double gridSpacing, double &xSpacing, double &ySpacing) const |
| | 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. More...
|
| |
| virtual DtFont::TextAlignement | offsetLabel (double xSrc, double ySrc, double &xOffset, double &yOffset, DtBoundingBox &bbox) const |
| | Find the offset and alignment for a label. More...
|
| |
| virtual DtFont::TextAlignement | offsetGridBoxLabel (double xSrc, double ySrc, double &xOffset, double &yOffset, DtBoundingBox &bbox) const |
| | Find the offset and alignment for a grid box label. More...
|
| |
| virtual LabelPosition | calcLabelPosition (double x, double y) const |
| | Determine which screen edge a label is closest to. More...
|
| |
| virtual void | calcDesiredLabelPosition () |
| | Determine which screen edge a label type is supposed to be on. More...
|
| |
| double | degreesLatitudeToMeters (double x, double y) const |
| | Convert one degree of latitude (on the current flat-earth projected db) into meters. More...
|
| |
| double | convertToMetersOrDegrees (double value) const |
| |
| virtual double | degreesLongitudeToMeters () const |
| | Convert one degree of longitude (on the current flat-earth projected db) into meters. More...
|
| |
| virtual double | fixedSpacingAmount () const |
| | Return the fixed spacing amount for the current gridType. More...
|
| |
| virtual double | xOffset () const |
| | Return the x offset for the current gridType. More...
|
| |
| virtual double | yOffset () const |
| | Return the y offset for the current gridType. More...
|
| |
| virtual void | clearUnusedLinesAndLabels (int index, GridLineVector &lines) |
| |
| virtual void | clearUnusedGridBoxLabels (int index) |
| |
| virtual bool | drawGridLineAndLabel (double startX, double startY, double endX, double endY, GridLine &gridLine, float *lineColor, LabelPosition labelPosition, float *labelColor, bool isNorthSouth) |
| |
| virtual void | labelGridBoxes () |
| | Iterate through the grid line intersections, considering them as grid boxes, and request labels from the coordinate display object. More...
|
| |
vrvGraphics-based implementation of 2D Grid Lines on projected databases \ingroup vrvOsg