VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes | Friends
makVrv::DtChannelKeywordGridLines Class Reference

The base class for all channel keyword objects. More...

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

List of all members.

Public Member Functions

virtual ~DtChannelKeywordGridLines ()
 DTOR.
virtual void channelNameChanged (const std::string &displayName, const std::string &windowName, const std::string &channelName)
 Implementing objects use this method to respond to changes in the fully qualified name of their channel [display name / window name / channel name ].
virtual void channelConfigurationChanged (const DtChannelConfiguration &config)
 Implementing objects use this method to respond to changes in channel configuration other than name, which is handled above.
virtual void windowConfigurationChanged (const DtWindowConfiguration &config)
 Implementing objects use this method to respond to changes in window configuration other than name, which is handled above.

Protected Member Functions

virtual void slot_observerCreated (DtInputDriver *, DtObserver *observer)
 Called when an observer is created, so that we can connect to an observer that didn't exist when the grid line object itself was created.
virtual void slot_observerToBeDestroyed (DtInputDriver *, DtObserver *observer)
 Called when an observer is about to be destroyed, so we can disconnect from the observer mode changed signal and set myObserver to Null.
virtual void slot_observerModeChanged (DtObserver *observer, int newMode)
 Called when an observer's observer mode changes, so we can determine if we need to create or destroy a grid line object.
virtual void slot_observerModeSettingChanged (int mode, int setting)
 Called when an observer mode's setting changes; if its the mode our observer is using and the setting is DisplayGridLines, we may need to create or destroy a gridLineObject.
virtual void slot_coordinateSystemChanged (const std::string &, const std::string &)
 Called when the current coordinate system changes.
virtual void slot_autoSpacingSet (bool)
 Called when the GridLinesSettingsManager signals a change to autoSpacing.
virtual void slot_fixedSpacingAmountSet (makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits, double)
 Receives notification of changes to the spacing (in meters).
virtual void slot_fixedAngularSpacingAmountSet (makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits, double)
 Receives notification of changes to the spacing (in meters).
virtual void slot_gridTypeSet (makArchives::DtDisplayUnitsSettingsRecord::CoordSys)
 Called when the GridLinesSettingsManager signals a change to the grid type.
virtual void slot_unitTypeSet (makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits)
 Called when the GridLinesSettingsManager signals a change to the unit type.
virtual void slot_angularUnitTypeSet (makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits)
 Called when the GridLinesSettingsManager signals a change to the unit type.
virtual void slot_minSpacingSet (int)
 Called when the GridLinesSettingsManager signals a change to the min pixel spacing.
virtual void slot_xOffsetSet (makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits, double)
 Receives notification of changes to the x offset (in meters).
virtual void slot_yOffsetSet (makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits, double)
 Receives notification of changes to the y offset (in meters).
virtual void slot_longitudeOffsetSet (makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits, double)
 Receives notification of changes to the x offset (in meters).
virtual void slot_latitudeOffsetSet (makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits, double)
 Receives notification of changes to the y offset (in meters).
virtual void slot_decimalPlacesSet (makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits, unsigned)
 Receives notification of changes to decimal places for a linear unit.
virtual void slot_angularDecimalPlacesSet (makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits, unsigned)
 Receives notification of changes to decimal places for an angular unit.
virtual void connectToObserver (DtObserver *observer)
virtual void connectToObserver (const std::string &observerName)
virtual void disconnectFromObserver ()
virtual void updateGridLinesState ()
virtual bool validateGridType ()
 Certain grid types can only be used with certain database coordinate system types Validate current grid type or change to a valid one.
virtual bool validateUnitType ()
 Certain unit types can only be used with certain grid types Validate current unit type or change to a valid one.
 DtChannelKeywordGridLines (DtDe &de, const std::string &keyword, const std::string &displayName, const std::string &windowName, const DtChannelConfiguration &channelConfig)
 CTOR.
makArchives::DtDisplayUnitsSettingsRecord::CoordSys defaultForCoordSys (const std::string &type)
bool currentUnits (makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits unit) const
bool currentUnits (makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits unit) const

Protected Attributes

DtChannelGridLinesAgent * myGridLinesAgent
std::string myObserverName
DtObservermyObserver
std::string myKeyword
std::string myDisplayName
std::string myWindowName
std::string myChannelName
DtSignalConnectionManager myConnections
makArchives::DtDisplayUnitsSettingsRecord::CoordSys myGridType

Friends

class DtChannelKeywordGridLinesCreator
 Only the creator can construct this object.

Detailed Description

The base class for all channel keyword objects.


Constructor & Destructor Documentation

DTOR.

makVrv::DtChannelKeywordGridLines::DtChannelKeywordGridLines ( DtDe de,
const std::string &  keyword,
const std::string &  displayName,
const std::string &  windowName,
const DtChannelConfiguration channelConfig 
) [protected]

CTOR.


Member Function Documentation

virtual void makVrv::DtChannelKeywordGridLines::channelNameChanged ( const std::string &  displayName,
const std::string &  windowName,
const std::string &  channelName 
) [virtual]

Implementing objects use this method to respond to changes in the fully qualified name of their channel [display name / window name / channel name ].

Implements makVrv::DtChannelKeywordObject.

Implementing objects use this method to respond to changes in channel configuration other than name, which is handled above.

Implements makVrv::DtChannelKeywordObject.

Implementing objects use this method to respond to changes in window configuration other than name, which is handled above.

Implements makVrv::DtChannelKeywordObject.

virtual void makVrv::DtChannelKeywordGridLines::slot_observerCreated ( DtInputDriver ,
DtObserver observer 
) [protected, virtual]

Called when an observer is created, so that we can connect to an observer that didn't exist when the grid line object itself was created.

virtual void makVrv::DtChannelKeywordGridLines::slot_observerToBeDestroyed ( DtInputDriver ,
DtObserver observer 
) [protected, virtual]

Called when an observer is about to be destroyed, so we can disconnect from the observer mode changed signal and set myObserver to Null.

virtual void makVrv::DtChannelKeywordGridLines::slot_observerModeChanged ( DtObserver observer,
int  newMode 
) [protected, virtual]

Called when an observer's observer mode changes, so we can determine if we need to create or destroy a grid line object.

virtual void makVrv::DtChannelKeywordGridLines::slot_observerModeSettingChanged ( int  mode,
int  setting 
) [protected, virtual]

Called when an observer mode's setting changes; if its the mode our observer is using and the setting is DisplayGridLines, we may need to create or destroy a gridLineObject.

virtual void makVrv::DtChannelKeywordGridLines::slot_coordinateSystemChanged ( const std::string &  ,
const std::string &   
) [protected, virtual]

Called when the current coordinate system changes.

virtual void makVrv::DtChannelKeywordGridLines::slot_autoSpacingSet ( bool  ) [protected, virtual]

Called when the GridLinesSettingsManager signals a change to autoSpacing.

Receives notification of changes to the spacing (in meters).

Receives notification of changes to the spacing (in meters).

Called when the GridLinesSettingsManager signals a change to the grid type.

Called when the GridLinesSettingsManager signals a change to the unit type.

Called when the GridLinesSettingsManager signals a change to the unit type.

virtual void makVrv::DtChannelKeywordGridLines::slot_minSpacingSet ( int  ) [protected, virtual]

Called when the GridLinesSettingsManager signals a change to the min pixel spacing.

Receives notification of changes to the x offset (in meters).

Receives notification of changes to the y offset (in meters).

Receives notification of changes to the x offset (in meters).

Receives notification of changes to the y offset (in meters).

Receives notification of changes to decimal places for a linear unit.

Receives notification of changes to decimal places for an angular unit.

virtual void makVrv::DtChannelKeywordGridLines::connectToObserver ( DtObserver observer) [protected, virtual]
virtual void makVrv::DtChannelKeywordGridLines::connectToObserver ( const std::string &  observerName) [protected, virtual]
virtual void makVrv::DtChannelKeywordGridLines::disconnectFromObserver ( ) [protected, virtual]
virtual void makVrv::DtChannelKeywordGridLines::updateGridLinesState ( ) [protected, virtual]

Certain grid types can only be used with certain database coordinate system types Validate current grid type or change to a valid one.

Returns false if neither is possible

Certain unit types can only be used with certain grid types Validate current unit type or change to a valid one.

Returns false if neither is possible


Friends And Related Function Documentation

friend class DtChannelKeywordGridLinesCreator [friend]

Only the creator can construct this object.


Member Data Documentation

DtChannelGridLinesAgent* makVrv::DtChannelKeywordGridLines::myGridLinesAgent [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)