![]() |
VR-Forces 4.0.4 Class Documentation
|
vrvGraphics-based implementation of grid lines More...

Public Member Functions | |
| DtOsgChannelGridLinesInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~DtOsgChannelGridLinesInstance () |
| DTOR. | |
| virtual void | setChannelName (const std::string &deName, const std::string &winName, const std::string &channelName) |
| Set the name of the channel that this compass should be drawn on. | |
| virtual void | setModelDefinition (const std::string &modelDefinition) |
| Set the model definition; note that this (potentially) includes all the other parameters enumeration below. | |
| virtual void | setVisible (bool isVisible) |
| Set the grid line visibility state. | |
| virtual void | setGridType (makArchives::DtDisplayUnitsSettingsRecord::CoordSys gridType) |
| Set the grid type. | |
| virtual void | setUnitType (makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits unitType) |
| Set the linear unit type. | |
| virtual void | setUnitType (makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits unitType) |
| Set the angular unit type. | |
| virtual void | setAutoSpacing (bool autoSpacing) |
| Set whether auto spacing is used. | |
| virtual void | setFixedSpacingAmount (double amount) |
| Set the fixed spacing amount for meters. | |
| virtual void | setXOffset (double offset) |
| Set the x offset for the origin in meters. | |
| virtual void | setYOffset (double offset) |
| Set the y offset amount in meters. | |
| virtual void | setMinSpacing (int pixels) |
| Set the minimum pixel spacing for auto spacing. | |
| virtual void | setDecimalPlaces (unsigned decimalPlaces) |
| Set the decimalPlaces to use for labels. | |
| 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. | |
| virtual void | updateGridLines () |
| Called anytime any of the grid line parameters change and each tick. | |
Protected Member Functions | |
| virtual DtProjectedGridLinesDrawer * | createAndInitializeProjectedDBGridLinesDrawer () |
| Create and initialized the specialized grid lines drawer for projected databases. | |
| virtual DtGeocentricGridLinesDrawer * | createAndInitializeGeocentricDBGridLinesDrawer () |
| Create and initialized the specialized grid lines drawer for geocentric databases. | |
| virtual void | slot_channelCreated (DtChannelManager *, DtChannel *) |
| Called when a channel is created - is this our channel? | |
| virtual void | slot_channelToBeDestroyed (DtChannelManager *, DtChannel *) |
| Called when a channel is about to be destroyed. | |
| void | slot_channelUpdated (DtChannelManager *, DtChannel *) |
| This slot is attached to the renderer's update signal. | |
Protected Attributes | |
| DtDe & | myDe |
| DtSignalConnectionManager | myConnections |
| DtOsgChannel * | myChannel |
| bool | myFirstFrame |
| DtGridLinesDrawer * | myGridLinesDrawer |
| DtVector | myPreviousCameraPosition |
| osg::Quat | myPreviousCameraRotation |
| double | myPreviousScale |
| double | myPreviousWindowHeight |
| double | myPreviousWindowWidth |
| double | myPreviousViewportLeft |
| double | myPreviousViewportRight |
| double | myPreviousViewportTop |
| double | myPreviousViewportBottom |
| bool | myParamsChanged |
Private Member Functions | |
| DtOsgChannelGridLinesInstance (const DtOsgChannelGridLinesInstance &orig) | |
| Unimplemented copy constructor. | |
| DtOsgChannelGridLinesInstance & | operator= (const DtOsgChannelGridLinesInstance &rhs) |
| Unimplemented assignment operator. | |
vrvGraphics-based implementation of grid lines
| virtual makVrv::DtOsgChannelGridLinesInstance::~DtOsgChannelGridLinesInstance | ( | ) | [virtual] |
DTOR.
| makVrv::DtOsgChannelGridLinesInstance::DtOsgChannelGridLinesInstance | ( | const DtOsgChannelGridLinesInstance & | orig | ) | [private] |
Unimplemented copy constructor.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setChannelName | ( | const std::string & | deName, |
| const std::string & | winName, | ||
| const std::string & | channelName | ||
| ) | [virtual] |
Set the name of the channel that this compass should be drawn on.
Reimplemented from makVrv::DtChannelGridLinesInstance.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setModelDefinition | ( | const std::string & | modelDefinition | ) | [virtual] |
Set the model definition; note that this (potentially) includes all the other parameters enumeration below.
Reimplemented from makVrv::DtChannelGridLinesInstance.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setVisible | ( | bool | isVisible | ) | [virtual] |
Set the grid line visibility state.
Reimplemented from makVrv::DtChannelGridLinesInstance.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setGridType | ( | makArchives::DtDisplayUnitsSettingsRecord::CoordSys | gridType | ) | [virtual] |
Set the grid type.
Reimplemented from makVrv::DtGridLinesParameters.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setUnitType | ( | makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits | unitType | ) | [virtual] |
Set the linear unit type.
Reimplemented from makVrv::DtGridLinesParameters.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setUnitType | ( | makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits | unitType | ) | [virtual] |
Set the angular unit type.
Reimplemented from makVrv::DtGridLinesParameters.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setAutoSpacing | ( | bool | autoSpacing | ) | [virtual] |
Set whether auto spacing is used.
Reimplemented from makVrv::DtGridLinesParameters.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setFixedSpacingAmount | ( | double | amount | ) | [virtual] |
Set the fixed spacing amount for meters.
Reimplemented from makVrv::DtGridLinesParameters.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setXOffset | ( | double | offset | ) | [virtual] |
Set the x offset for the origin in meters.
Reimplemented from makVrv::DtGridLinesParameters.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setYOffset | ( | double | offset | ) | [virtual] |
Set the y offset amount in meters.
Reimplemented from makVrv::DtGridLinesParameters.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setMinSpacing | ( | int | pixels | ) | [virtual] |
Set the minimum pixel spacing for auto spacing.
Reimplemented from makVrv::DtGridLinesParameters.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setDecimalPlaces | ( | unsigned | decimalPlaces | ) | [virtual] |
Set the decimalPlaces to use for labels.
Reimplemented from makVrv::DtGridLinesParameters.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setMaxGridLines | ( | int | maxGridLines | ) | [virtual] |
Set the max number of grid lines in each direction.
Reimplemented from makVrv::DtGridLinesParameters.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setEastWestGridLineColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the color of east-west grid lines.
Reimplemented from makVrv::DtGridLinesParameters.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setEastWestLabelColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the color of the labels on east-west grid lines.
Reimplemented from makVrv::DtGridLinesParameters.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setNorthSouthGridLineColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the color of north-south grid lines.
Reimplemented from makVrv::DtGridLinesParameters.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setNorthSouthLabelColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the color of the labels north-south grid lines.
Reimplemented from makVrv::DtGridLinesParameters.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setLabelFont | ( | const std::string & | fontName | ) | [virtual] |
Set the font used for labels.
Reimplemented from makVrv::DtGridLinesParameters.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setLabelPointSize | ( | int | pointSize | ) | [virtual] |
Set the point size used for labels.
Reimplemented from makVrv::DtGridLinesParameters.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setLabelXOffset | ( | int | pixels | ) | [virtual] |
Set the offset of labels from the bottom of the screen.
Reimplemented from makVrv::DtGridLinesParameters.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setLabelYOffset | ( | int | pixels | ) | [virtual] |
Set the offset of labels from the left side of the screen.
Reimplemented from makVrv::DtGridLinesParameters.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setLabelTextWidth | ( | int | width | ) | [virtual] |
Set the width of the box used to display text in.
Reimplemented from makVrv::DtGridLinesParameters.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setLabelTextHeight | ( | int | height | ) | [virtual] |
Set the height of the box used to display text in.
Reimplemented from makVrv::DtGridLinesParameters.
| virtual void makVrv::DtOsgChannelGridLinesInstance::setGridLineWidth | ( | float | width | ) | [virtual] |
Set the width of grid lines.
Reimplemented from makVrv::DtGridLinesParameters.
| virtual void makVrv::DtOsgChannelGridLinesInstance::updateGridLines | ( | ) | [virtual] |
Called anytime any of the grid line parameters change and each tick.
Implements makVrv::DtChannelGridLinesInstance.
| virtual DtProjectedGridLinesDrawer* makVrv::DtOsgChannelGridLinesInstance::createAndInitializeProjectedDBGridLinesDrawer | ( | ) | [protected, virtual] |
Create and initialized the specialized grid lines drawer for projected databases.
| virtual DtGeocentricGridLinesDrawer* makVrv::DtOsgChannelGridLinesInstance::createAndInitializeGeocentricDBGridLinesDrawer | ( | ) | [protected, virtual] |
Create and initialized the specialized grid lines drawer for geocentric databases.
| virtual void makVrv::DtOsgChannelGridLinesInstance::slot_channelCreated | ( | DtChannelManager * | , |
| DtChannel * | |||
| ) | [protected, virtual] |
Called when a channel is created - is this our channel?
| virtual void makVrv::DtOsgChannelGridLinesInstance::slot_channelToBeDestroyed | ( | DtChannelManager * | , |
| DtChannel * | |||
| ) | [protected, virtual] |
Called when a channel is about to be destroyed.
| void makVrv::DtOsgChannelGridLinesInstance::slot_channelUpdated | ( | DtChannelManager * | , |
| DtChannel * | |||
| ) | [protected] |
This slot is attached to the renderer's update signal.
| DtOsgChannelGridLinesInstance& makVrv::DtOsgChannelGridLinesInstance::operator= | ( | const DtOsgChannelGridLinesInstance & | rhs | ) | [private] |
Unimplemented assignment operator.
DtDe& makVrv::DtOsgChannelGridLinesInstance::myDe [protected] |
osg::Quat makVrv::DtOsgChannelGridLinesInstance::myPreviousCameraRotation [protected] |
double makVrv::DtOsgChannelGridLinesInstance::myPreviousScale [protected] |
double makVrv::DtOsgChannelGridLinesInstance::myPreviousWindowHeight [protected] |
double makVrv::DtOsgChannelGridLinesInstance::myPreviousWindowWidth [protected] |
double makVrv::DtOsgChannelGridLinesInstance::myPreviousViewportLeft [protected] |
double makVrv::DtOsgChannelGridLinesInstance::myPreviousViewportRight [protected] |
double makVrv::DtOsgChannelGridLinesInstance::myPreviousViewportTop [protected] |
double makVrv::DtOsgChannelGridLinesInstance::myPreviousViewportBottom [protected] |