![]() |
VR-Forces 4.0.4 Class Documentation
|
class DtLocationEntryWidget: More...

Public Slots | |
| virtual void | updateUnits (const DtUnitDisplayManager *u) |
| Updates the units and redisplays the labels. | |
| virtual void | updateCoordinateSystem (const DtCoordSys &system) |
| Updates the display of the coordinates. | |
| virtual void | updateCoordinateSystem (const QString &system) |
| virtual void | updateUnitDisplay (const QString &, const QString &, const QString &) |
| virtual void | pointChanged () |
| Received when text in any text box changes. | |
| virtual void | updateLabels () |
Signals | |
| void | locationChanged (DtLocationEntryWidget *wgt, const DtPoint &pnt) |
| Point is in meters. | |
| void | unitsUpdated () |
| Signal when units are updated for this widget. | |
| void | altitudeSelectionChanged (int, double) |
Public Member Functions | |
| DtLocationEntryWidget (QWidget *parent=NULL, const Qt::WindowFlags &f=0) | |
| default constructor | |
| virtual | ~DtLocationEntryWidget () |
| destructor | |
| virtual void | clearPointEdit () |
| Clears out the x, y and z coordinates. | |
| virtual void | hideZ () |
| Hides the Z label and text entry. | |
| virtual void | showZ () |
| Shows the Z label and text entry. | |
| virtual void | getValues (double &x, double &y, double &z) |
| Returns the x, y, and Z values in the buffers given. | |
| virtual void | setValues (double x, double y, double z) |
| virtual void | setValues (const DtStringLocation &loc) |
| virtual bool | zIsVisible () const |
| Returns true if the Z label/text is shown. | |
| virtual QString | xText (bool keepSingleLine=true) const |
| Returns text contents of field If in single line mode, keep the text as is, else break it up into the x component. | |
| virtual QString | yText () const |
| virtual QString | zText () const |
| virtual void | setFromSource (const DtPoint &pnt) |
| Sets the x, y, and z values from source (local) point. | |
| virtual QString | xLabel () const |
| Returns text contents of labels. | |
| virtual QString | yLabel () const |
| virtual QString | zLabel () const |
| virtual QLabel * | xLabelWidget () const |
| virtual QLabel * | yLabelWidget () const |
| virtual QLabel * | zLabelWidget () const |
| virtual void | setXLabel (const QString &) |
| Sets labels. | |
| virtual void | setYLabel (const QString &) |
| virtual void | setZLabel (const QString &) |
| virtual void | setXText (QString x) |
| virtual void | setYText (QString y) |
| virtual void | setZText (QString z) |
| virtual void | setReadOnly (bool b) |
| virtual bool | init (const DtCoordinateSystemCollection *c, const DtUnitDisplayManager *units, const DtCoordSys &system) |
| Initializes widget with specific coordinate system and unit. | |
| virtual void | initConnections () |
| Initializes connections to capture changes to display options. | |
| virtual void | convertFromSource (const DtPoint &pnt, const DtCoordSys &newSys, DtStringLocation &out) |
| Converts from source coordinate system (as found in the terrain database, if it exists) to supplied coordinate system. | |
| virtual void | convertToSource (const DtStringLocation &in, double &x, double &y, double &z) |
| Converts from current coordinate system to coordinate system of database (if there is a terrain database). | |
| virtual void | setSingleLine (bool b) |
| Puts all information into a single line separated by brackets. | |
| virtual void | setSignalChanges (bool b) |
| Call to either emit changes in the location (in the form of a DtPoint) in in meters or turn off those emissions. | |
| virtual void | setUseAltitudeSelection (bool, bool update=true) |
| For those that do it, allow the user to select polygons or height. | |
| bool | useAltitudeSelection () const |
| virtual void | setShowHeightAboveTerrain (bool, double t=-1) |
| bool | showHeightAboveTerrain () const |
| virtual double | heightAboveTerrain () const |
| virtual bool | useHeightAboveTerrain () const |
| virtual bool | useAltitude () const |
| virtual double | altitude () const |
| void | setCalculateOffset (bool) |
| bool | calculateOffset () const |
| virtual double | convertAltitudeToDisplay (double z) const |
| Utility routines to map a Z value (altitude or height) to/from display units to meters. | |
| virtual double | convertAltitudeFromDisplay (double z) const |
Static Public Member Functions | |
| static DtLocationEntryWidget * | create (QWidget *parent=NULL, const Qt::WindowFlags &f=0) |
Public Attributes | |
| Ui::LocationEntryWidgetUi | myUiImpl |
Protected Member Functions | |
| virtual void | hideLayout (QLayout *layout) |
| virtual void | updateDistanceValues (const QString &oldUnits, const QString &newUnits) |
| virtual void | updateAltitudeValue (const QString &oldUnits, const QString &newUnits) |
| virtual void | updateValuesForNewCoordinateSystem (const DtCoordSys &oldSys, const DtCoordSys &newSys) |
| virtual QString | localZText () const |
Protected Attributes | |
| QDoubleValidator | myDoubleValidator |
| DtCoordSys | myCoordinateSystem |
| bool | mySingleLineMode |
| const DtCoordinateSystemCollection * | myCoordinateSystemCollection |
| const DtUnitDisplayManager * | myUnitDisplayManager |
| bool | myUseAltitudeSelection |
| bool | myShowHeightAboveTerrain |
| bool | myCalculateOffset |
| double | myHeightAboveTerrain |
| bool | myZIsHidden |
class DtLocationEntryWidget:
Instances of DtLocationEntryWidget are
| DtLocationEntryWidget::DtLocationEntryWidget | ( | QWidget * | parent = NULL, |
| const Qt::WindowFlags & | f = 0 |
||
| ) |
default constructor
| virtual DtLocationEntryWidget::~DtLocationEntryWidget | ( | ) | [virtual] |
destructor
| static DtLocationEntryWidget* DtLocationEntryWidget::create | ( | QWidget * | parent = NULL, |
| const Qt::WindowFlags & | f = 0 |
||
| ) | [static] |
Reimplemented in DtTerrainLocationEntryWidget.
| virtual void DtLocationEntryWidget::clearPointEdit | ( | ) | [virtual] |
Clears out the x, y and z coordinates.
Reimplemented in DtTerrainLocationEntryWidget.
| virtual void DtLocationEntryWidget::hideZ | ( | ) | [virtual] |
Hides the Z label and text entry.
Reimplemented in DtTerrainLocationEntryWidget.
| virtual void DtLocationEntryWidget::showZ | ( | ) | [virtual] |
Shows the Z label and text entry.
Reimplemented in DtTerrainLocationEntryWidget.
| virtual void DtLocationEntryWidget::getValues | ( | double & | x, |
| double & | y, | ||
| double & | z | ||
| ) | [virtual] |
Returns the x, y, and Z values in the buffers given.
| virtual void DtLocationEntryWidget::setValues | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) | [virtual] |
| virtual void DtLocationEntryWidget::setValues | ( | const DtStringLocation & | loc | ) | [virtual] |
Reimplemented in DtTerrainLocationEntryWidget.
| virtual bool DtLocationEntryWidget::zIsVisible | ( | ) | const [virtual] |
Returns true if the Z label/text is shown.
Reimplemented in DtTerrainLocationEntryWidget.
| virtual QString DtLocationEntryWidget::xText | ( | bool | keepSingleLine = true | ) | const [virtual] |
Returns text contents of field If in single line mode, keep the text as is, else break it up into the x component.
In single line mode all text is kept on the x line
| virtual QString DtLocationEntryWidget::yText | ( | ) | const [virtual] |
| virtual QString DtLocationEntryWidget::zText | ( | ) | const [virtual] |
Reimplemented in DtTerrainLocationEntryWidget.
| virtual void DtLocationEntryWidget::setFromSource | ( | const DtPoint & | pnt | ) | [virtual] |
Sets the x, y, and z values from source (local) point.
Uses internal settings of coordinate system and units
| virtual QString DtLocationEntryWidget::xLabel | ( | ) | const [virtual] |
Returns text contents of labels.
| virtual QString DtLocationEntryWidget::yLabel | ( | ) | const [virtual] |
| virtual QString DtLocationEntryWidget::zLabel | ( | ) | const [virtual] |
| virtual QLabel* DtLocationEntryWidget::xLabelWidget | ( | ) | const [virtual] |
| virtual QLabel* DtLocationEntryWidget::yLabelWidget | ( | ) | const [virtual] |
| virtual QLabel* DtLocationEntryWidget::zLabelWidget | ( | ) | const [virtual] |
| virtual void DtLocationEntryWidget::setXLabel | ( | const QString & | ) | [virtual] |
Sets labels.
| virtual void DtLocationEntryWidget::setYLabel | ( | const QString & | ) | [virtual] |
| virtual void DtLocationEntryWidget::setZLabel | ( | const QString & | ) | [virtual] |
| virtual void DtLocationEntryWidget::setXText | ( | QString | x | ) | [virtual] |
| virtual void DtLocationEntryWidget::setYText | ( | QString | y | ) | [virtual] |
| virtual void DtLocationEntryWidget::setZText | ( | QString | z | ) | [virtual] |
Reimplemented in DtTerrainLocationEntryWidget.
| virtual void DtLocationEntryWidget::setReadOnly | ( | bool | b | ) | [virtual] |
Reimplemented in DtTerrainLocationEntryWidget.
| virtual bool DtLocationEntryWidget::init | ( | const DtCoordinateSystemCollection * | c, |
| const DtUnitDisplayManager * | units, | ||
| const DtCoordSys & | system | ||
| ) | [virtual] |
Initializes widget with specific coordinate system and unit.
Reimplemented in DtTerrainLocationEntryWidget.
| virtual void DtLocationEntryWidget::initConnections | ( | ) | [virtual] |
Initializes connections to capture changes to display options.
Do not make this call if you want to handle such changes yourself
Reimplemented in DtTerrainLocationEntryWidget.
| virtual void DtLocationEntryWidget::convertFromSource | ( | const DtPoint & | pnt, |
| const DtCoordSys & | newSys, | ||
| DtStringLocation & | out | ||
| ) | [virtual] |
Converts from source coordinate system (as found in the terrain database, if it exists) to supplied coordinate system.
Default implementation copies in to out point
Reimplemented in DtTerrainLocationEntryWidget.
| virtual void DtLocationEntryWidget::convertToSource | ( | const DtStringLocation & | in, |
| double & | x, | ||
| double & | y, | ||
| double & | z | ||
| ) | [virtual] |
Converts from current coordinate system to coordinate system of database (if there is a terrain database).
Default simply copies to result
Reimplemented in DtTerrainLocationEntryWidget.
| virtual void DtLocationEntryWidget::setSingleLine | ( | bool | b | ) | [virtual] |
Puts all information into a single line separated by brackets.
| virtual void DtLocationEntryWidget::setSignalChanges | ( | bool | b | ) | [virtual] |
Call to either emit changes in the location (in the form of a DtPoint) in in meters or turn off those emissions.
| virtual void DtLocationEntryWidget::setUseAltitudeSelection | ( | bool | , |
| bool | update = true |
||
| ) | [virtual] |
For those that do it, allow the user to select polygons or height.
Only implemented by subclass. This class keeps track of the flag
Reimplemented in DtTerrainLocationEntryWidget.
| bool DtLocationEntryWidget::useAltitudeSelection | ( | ) | const [inline] |
References myUseAltitudeSelection.
| virtual void DtLocationEntryWidget::setShowHeightAboveTerrain | ( | bool | , |
| double | t = -1 |
||
| ) | [virtual] |
Reimplemented in DtTerrainLocationEntryWidget.
| bool DtLocationEntryWidget::showHeightAboveTerrain | ( | ) | const [inline] |
References myShowHeightAboveTerrain.
| double DtLocationEntryWidget::heightAboveTerrain | ( | ) | const [inline, virtual] |
Reimplemented in DtTerrainLocationEntryWidget.
References myHeightAboveTerrain.
| virtual bool DtLocationEntryWidget::useHeightAboveTerrain | ( | ) | const [virtual] |
Reimplemented in DtTerrainLocationEntryWidget.
| virtual bool DtLocationEntryWidget::useAltitude | ( | ) | const [virtual] |
Reimplemented in DtTerrainLocationEntryWidget.
| virtual double DtLocationEntryWidget::altitude | ( | ) | const [virtual] |
Reimplemented in DtTerrainLocationEntryWidget.
| void DtLocationEntryWidget::setCalculateOffset | ( | bool | b | ) | [inline] |
References myCalculateOffset.
| bool DtLocationEntryWidget::calculateOffset | ( | ) | const [inline] |
References myCalculateOffset.
| virtual double DtLocationEntryWidget::convertAltitudeToDisplay | ( | double | z | ) | const [virtual] |
Utility routines to map a Z value (altitude or height) to/from display units to meters.
| virtual double DtLocationEntryWidget::convertAltitudeFromDisplay | ( | double | z | ) | const [virtual] |
| virtual void DtLocationEntryWidget::updateUnits | ( | const DtUnitDisplayManager * | u | ) | [virtual, slot] |
Updates the units and redisplays the labels.
| virtual void DtLocationEntryWidget::updateCoordinateSystem | ( | const DtCoordSys & | system | ) | [virtual, slot] |
Updates the display of the coordinates.
Reimplemented in DtTerrainLocationEntryWidget.
| virtual void DtLocationEntryWidget::updateCoordinateSystem | ( | const QString & | system | ) | [virtual, slot] |
| virtual void DtLocationEntryWidget::updateUnitDisplay | ( | const QString & | , |
| const QString & | , | ||
| const QString & | |||
| ) | [virtual, slot] |
| virtual void DtLocationEntryWidget::pointChanged | ( | ) | [virtual, slot] |
Received when text in any text box changes.
Reimplemented in DtTerrainLocationEntryWidget.
| virtual void DtLocationEntryWidget::updateLabels | ( | ) | [virtual, slot] |
Reimplemented in DtTerrainLocationEntryWidget.
| void DtLocationEntryWidget::locationChanged | ( | DtLocationEntryWidget * | wgt, |
| const DtPoint & | pnt | ||
| ) | [signal] |
Point is in meters.
| void DtLocationEntryWidget::unitsUpdated | ( | ) | [signal] |
Signal when units are updated for this widget.
| void DtLocationEntryWidget::altitudeSelectionChanged | ( | int | , |
| double | |||
| ) | [signal] |
| virtual void DtLocationEntryWidget::hideLayout | ( | QLayout * | layout | ) | [protected, virtual] |
| virtual void DtLocationEntryWidget::updateDistanceValues | ( | const QString & | oldUnits, |
| const QString & | newUnits | ||
| ) | [protected, virtual] |
| virtual void DtLocationEntryWidget::updateAltitudeValue | ( | const QString & | oldUnits, |
| const QString & | newUnits | ||
| ) | [protected, virtual] |
| virtual void DtLocationEntryWidget::updateValuesForNewCoordinateSystem | ( | const DtCoordSys & | oldSys, |
| const DtCoordSys & | newSys | ||
| ) | [protected, virtual] |
| virtual QString DtLocationEntryWidget::localZText | ( | ) | const [protected, virtual] |
Reimplemented in DtTerrainLocationEntryWidget.
| Ui::LocationEntryWidgetUi DtLocationEntryWidget::myUiImpl |
QDoubleValidator DtLocationEntryWidget::myDoubleValidator [protected] |
DtCoordSys DtLocationEntryWidget::myCoordinateSystem [protected] |
Referenced by DtTerrainLocationEntryWidget::setTerrainDatabase().
bool DtLocationEntryWidget::mySingleLineMode [protected] |
const DtCoordinateSystemCollection* DtLocationEntryWidget::myCoordinateSystemCollection [protected] |
const DtUnitDisplayManager* DtLocationEntryWidget::myUnitDisplayManager [protected] |
bool DtLocationEntryWidget::myUseAltitudeSelection [protected] |
Referenced by useAltitudeSelection().
bool DtLocationEntryWidget::myShowHeightAboveTerrain [protected] |
Referenced by showHeightAboveTerrain().
bool DtLocationEntryWidget::myCalculateOffset [protected] |
Referenced by calculateOffset(), and setCalculateOffset().
double DtLocationEntryWidget::myHeightAboveTerrain [protected] |
Referenced by heightAboveTerrain().
bool DtLocationEntryWidget::myZIsHidden [protected] |