VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
makVrv::DtOsgChannelGridLinesInstance Class Reference

vrvGraphics-based implementation of grid lines More...

Inheritance diagram for makVrv::DtOsgChannelGridLinesInstance:
Inheritance graph
[legend]

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.
- Public Member Functions inherited from makVrv::DtChannelGridLinesInstance
 DtChannelGridLinesInstance ()
 Default CTOR.
virtual ~DtChannelGridLinesInstance ()
 Virtual DTOR.
virtual bool visible ()
 Return visibility status.
- Public Member Functions inherited from makVrv::DtSetVisibilityInterface
virtual ~DtSetVisibilityInterface ()
- Public Member Functions inherited from makVrv::DtGridLinesParameters
 DtGridLinesParameters ()
 CTOR.
virtual ~DtGridLinesParameters ()
 DTOR.
 DtGridLinesParameters (const DtGridLinesParameters &orig)
 Copy constructor.
DtGridLinesParametersoperator= (const DtGridLinesParameters &orig)
 \ brief Assignment operator

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

DtDemyDe
DtSignalConnectionManager myConnections
DtOsgChannelmyChannel
bool myFirstFrame
DtGridLinesDrawermyGridLinesDrawer
DtVector myPreviousCameraPosition
osg::Quat myPreviousCameraRotation
double myPreviousScale
double myPreviousWindowHeight
double myPreviousWindowWidth
double myPreviousViewportLeft
double myPreviousViewportRight
double myPreviousViewportTop
double myPreviousViewportBottom
bool myParamsChanged
- Protected Attributes inherited from makVrv::DtChannelGridLinesInstance
std::string myModelDefinitionName
std::string myDisplayEngineName
std::string myWindowName
std::string myChannelName
bool myVisibleFlag
- Protected Attributes inherited from makVrv::DtGridLinesParameters
makArchives::DtDisplayUnitsSettingsRecord::CoordSys myGridType
bool myUnitTypeIsAngular
makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits myUnitType
makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits myAngularUnitType
bool myAutoSpacing
int myMinSpacing
double mySpacing
double myXOffset
double myYOffset
unsigned myDecimalPlaces
int myMaxGridLines
float myEastWestGridLineColor [4]
float myEastWestLabelColor [4]
float myNorthSouthGridLineColor [4]
float myNorthSouthLabelColor [4]
std::string myLabelFont
int myLabelPointSize
int myLabelXOffset
int myLabelYOffset
int myLabelTextWidth
int myLabelTextHeight
float myGridLineWidth

Private Member Functions

 DtOsgChannelGridLinesInstance (const DtOsgChannelGridLinesInstance &orig)
 Unimplemented copy constructor.
DtOsgChannelGridLinesInstanceoperator= (const DtOsgChannelGridLinesInstance &rhs)
 Unimplemented assignment operator.

Detailed Description

vrvGraphics-based implementation of grid lines

Constructor & Destructor Documentation

makVrv::DtOsgChannelGridLinesInstance::DtOsgChannelGridLinesInstance ( DtDe de)

CTOR.

virtual makVrv::DtOsgChannelGridLinesInstance::~DtOsgChannelGridLinesInstance ( )
virtual

DTOR.

makVrv::DtOsgChannelGridLinesInstance::DtOsgChannelGridLinesInstance ( const DtOsgChannelGridLinesInstance orig)
private

Unimplemented copy constructor.

Member Function Documentation

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 ( )
protectedvirtual

Create and initialized the specialized grid lines drawer for projected databases.

virtual DtGeocentricGridLinesDrawer* makVrv::DtOsgChannelGridLinesInstance::createAndInitializeGeocentricDBGridLinesDrawer ( )
protectedvirtual

Create and initialized the specialized grid lines drawer for geocentric databases.

virtual void makVrv::DtOsgChannelGridLinesInstance::slot_channelCreated ( DtChannelManager ,
DtChannel  
)
protectedvirtual

Called when a channel is created - is this our channel?

virtual void makVrv::DtOsgChannelGridLinesInstance::slot_channelToBeDestroyed ( DtChannelManager ,
DtChannel  
)
protectedvirtual

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.

Member Data Documentation

DtDe& makVrv::DtOsgChannelGridLinesInstance::myDe
protected
DtSignalConnectionManager makVrv::DtOsgChannelGridLinesInstance::myConnections
protected
DtOsgChannel* makVrv::DtOsgChannelGridLinesInstance::myChannel
protected
bool makVrv::DtOsgChannelGridLinesInstance::myFirstFrame
protected
DtGridLinesDrawer* makVrv::DtOsgChannelGridLinesInstance::myGridLinesDrawer
protected
DtVector makVrv::DtOsgChannelGridLinesInstance::myPreviousCameraPosition
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
bool makVrv::DtOsgChannelGridLinesInstance::myParamsChanged
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)