VR-Forces 4.2 Class Documentation
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrf::DtLocationEntryWidgetLogic Class Reference

Private to this class. More...

Public Member Functions

 DtLocationEntryWidgetLogic (bool preferAltitudeSelection, makVrv::DtDe &de, DtLocationEntryWidgetInterface *)
virtual ~DtLocationEntryWidgetLogic ()
virtual void enableEventProcessor (bool flag)
virtual void slot_onPositionChanged ()
virtual void slot_onPositionEdited ()
virtual void slot_onAltitudeAboveGroundLevelEdited (double)
virtual void slot_onAltitudeAboveSeaLevelEdited (double)
virtual void slot_onAltitudeSelectionTypeChanged (const DtAltitudeClampType &type)
virtual void slot_onClampSelectionChanged (int)
virtual void slot_onCoordinateSystemChanged (makVrv::DtSharedDisplayUnitsSettings::CoordSys)
virtual void slot_onCoordinateSystemDecimalsChanged (makVrv::DtSharedDisplayUnitsSettings::CoordSys, int newValue, int oldValue)
 Hooked up to signal_displayCoordinateSystemDecimalsChanged on the DtDisplayUnitsSettingsSignaler.
virtual void slot_onUnitChanged (int attribute, int from)
virtual DtVector location () const
 Returns location in local coordinates, meters.
virtual DtVector geocentricLocation () const
 Returns location in geocentric coordinates.
virtual void setCoordinateSystem (const makVrv::DtSharedDisplayUnitsSettings::CoordSys &system)
 Sets the coordinate system.
virtual void setPreferAltitudeSelection (bool)
const
makVrv::DtSharedDisplayUnitsSettings::CoordSys & 
coordinateSystem () const
virtual void setLocation (const DtVector &local, bool resetAltitude=true)
 Sets location, and, whether or not to reset altitude selection.
virtual void setGeocentricLocation (const DtVector &local, bool resetAltitude=true)
virtual void setDatabaseLocation (double x, double y, double z)
virtual void setupLabels ()
virtual void setAltitudeDisabled (bool)
 If altitude is disabled never show Z (unless in geocentric) and always set altitude above sea level to 0.
virtual bool altitudeDisabled () const

Protected Member Functions

virtual void initialize ()

Protected Attributes

makVrv::DtDe & myDe
DtLocationEntryWidgetInterfacemyInterface
makVrv::DtSharedDisplayUnitsSettings::DistanceUnits myDistanceUnits
makVrv::DtSharedDisplayUnitsSettings::DistanceUnits myAltitudeUnits
makVrv::DtSharedDisplayUnitsSettings::CoordSys myCoordSys
DtLocationEntryEventProcessor * myLocationEntryEventProcessor
bool myPreferAltitudeSelection
bool myAltitudeDisabled

Detailed Description

Private to this class.

Constructor & Destructor Documentation

makVrf::DtLocationEntryWidgetLogic::DtLocationEntryWidgetLogic ( bool  preferAltitudeSelection,
makVrv::DtDe &  de,
DtLocationEntryWidgetInterface  
)
virtual makVrf::DtLocationEntryWidgetLogic::~DtLocationEntryWidgetLogic ( )
virtual

Member Function Documentation

virtual void makVrf::DtLocationEntryWidgetLogic::enableEventProcessor ( bool  flag)
virtual
virtual void makVrf::DtLocationEntryWidgetLogic::slot_onPositionChanged ( )
virtual
virtual void makVrf::DtLocationEntryWidgetLogic::slot_onPositionEdited ( )
virtual
virtual void makVrf::DtLocationEntryWidgetLogic::slot_onAltitudeAboveGroundLevelEdited ( double  )
virtual
virtual void makVrf::DtLocationEntryWidgetLogic::slot_onAltitudeAboveSeaLevelEdited ( double  )
virtual
virtual void makVrf::DtLocationEntryWidgetLogic::slot_onAltitudeSelectionTypeChanged ( const DtAltitudeClampType type)
virtual
virtual void makVrf::DtLocationEntryWidgetLogic::slot_onClampSelectionChanged ( int  )
virtual
virtual void makVrf::DtLocationEntryWidgetLogic::slot_onCoordinateSystemChanged ( makVrv::DtSharedDisplayUnitsSettings::CoordSys  )
virtual
virtual void makVrf::DtLocationEntryWidgetLogic::slot_onCoordinateSystemDecimalsChanged ( makVrv::DtSharedDisplayUnitsSettings::CoordSys  ,
int  newValue,
int  oldValue 
)
virtual

Hooked up to signal_displayCoordinateSystemDecimalsChanged on the DtDisplayUnitsSettingsSignaler.

virtual void makVrf::DtLocationEntryWidgetLogic::slot_onUnitChanged ( int  attribute,
int  from 
)
virtual
virtual DtVector makVrf::DtLocationEntryWidgetLogic::location ( ) const
virtual

Returns location in local coordinates, meters.

virtual DtVector makVrf::DtLocationEntryWidgetLogic::geocentricLocation ( ) const
virtual

Returns location in geocentric coordinates.

virtual void makVrf::DtLocationEntryWidgetLogic::setCoordinateSystem ( const makVrv::DtSharedDisplayUnitsSettings::CoordSys &  system)
virtual

Sets the coordinate system.

Updates the labels on the interface. If myPreferAltitudeSelection is set and the coordinate system is not geocentric, setAltitudeSelectionEnabled(true) is called on the interface to enable altitude selection. Otherwise, it's called with false to show the line edit.

virtual void makVrf::DtLocationEntryWidgetLogic::setPreferAltitudeSelection ( bool  )
virtual
const makVrv::DtSharedDisplayUnitsSettings::CoordSys& makVrf::DtLocationEntryWidgetLogic::coordinateSystem ( ) const
inline
virtual void makVrf::DtLocationEntryWidgetLogic::setLocation ( const DtVector local,
bool  resetAltitude = true 
)
virtual

Sets location, and, whether or not to reset altitude selection.

Expects location in local, meters

virtual void makVrf::DtLocationEntryWidgetLogic::setGeocentricLocation ( const DtVector local,
bool  resetAltitude = true 
)
virtual
virtual void makVrf::DtLocationEntryWidgetLogic::setDatabaseLocation ( double  x,
double  y,
double  z 
)
virtual
virtual void makVrf::DtLocationEntryWidgetLogic::setupLabels ( )
virtual
virtual void makVrf::DtLocationEntryWidgetLogic::setAltitudeDisabled ( bool  )
virtual

If altitude is disabled never show Z (unless in geocentric) and always set altitude above sea level to 0.

virtual bool makVrf::DtLocationEntryWidgetLogic::altitudeDisabled ( ) const
virtual
virtual void makVrf::DtLocationEntryWidgetLogic::initialize ( )
protectedvirtual

Member Data Documentation

makVrv::DtDe& makVrf::DtLocationEntryWidgetLogic::myDe
protected
DtLocationEntryWidgetInterface* makVrf::DtLocationEntryWidgetLogic::myInterface
protected
makVrv::DtSharedDisplayUnitsSettings::DistanceUnits makVrf::DtLocationEntryWidgetLogic::myDistanceUnits
protected
makVrv::DtSharedDisplayUnitsSettings::DistanceUnits makVrf::DtLocationEntryWidgetLogic::myAltitudeUnits
protected
makVrv::DtSharedDisplayUnitsSettings::CoordSys makVrf::DtLocationEntryWidgetLogic::myCoordSys
protected
DtLocationEntryEventProcessor* makVrf::DtLocationEntryWidgetLogic::myLocationEntryEventProcessor
protected
bool makVrf::DtLocationEntryWidgetLogic::myPreferAltitudeSelection
protected
bool makVrf::DtLocationEntryWidgetLogic::myAltitudeDisabled
protected

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

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)