![]() |
VR-Forces 4.1 Class Documentation
|
class DtTerrainLocationEntryWidget: More...

Public Slots | |
| virtual void | updateCoordinateSystem (const DtCoordSys &system) |
| virtual void | pointChanged () |
| Override base class to also account for coordinate system. | |
Public Slots inherited from DtLocationEntryWidget | |
| 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. | |
Signals | |
| void | coordinateSystemUpdated () |
Signals inherited from DtLocationEntryWidget | |
| 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 | |
| DtTerrainLocationEntryWidget (QWidget *parent=NULL, const Qt::WindowFlags &flags=0) | |
| default constructor | |
| virtual | ~DtTerrainLocationEntryWidget () |
| destructor | |
| 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 | setFromGeocentric (const DtVector &vector) |
| Sets the x, y, and z value (calling setValue) from the geocentric position given into the currently set coordinate system. | |
| virtual DtVector | geocentric () |
| Returns the values in the entry widget in geocentric coordinates. | |
| virtual DtPoint | localCoordinate (bool *res=NULL) |
| Returns the values in the entry widget in local coordinates. | |
| virtual void | initConnections () |
| Initializes connections to capture changes to display options. | |
| void | setTerrainDatabase (const DtTerrainDatabase *) |
| virtual const DtTerrainDatabase * | terrainDatabase () const |
| virtual bool | init (const DtCoordinateSystemCollection *c, const DtUnitDisplayManager *units, const DtCoordSys &system) |
| Initializes widget with specific coordinate system and unit. | |
| virtual void | setUseAltitudeSelection (bool, bool update=true) |
| For those that do it, allow the user to select polygons or height. | |
| virtual void | setShowHeightAboveTerrain (bool, double t=-1) |
| virtual QString | zText () const |
| virtual QString | localZText () const |
| virtual void | setZText (QString z) |
| virtual void | setReadOnly (bool b) |
| virtual void | setValues (const DtStringLocation &loc) |
| virtual bool | zIsVisible () const |
| Returns true if the Z label/text is shown. | |
| virtual void | hideZ () |
| Hides the Z label and text entry. | |
| virtual void | showZ () |
| Shows the Z label and text entry. | |
| virtual double | heightAboveTerrain () const |
| virtual bool | useHeightAboveTerrain () const |
| virtual bool | useAltitude () const |
| virtual double | altitude () const |
| Returns altitude in meters. | |
| virtual void | updateLabels () |
| virtual void | clearPointEdit () |
| Clears out the x, y and z coordinates. | |
Public Member Functions inherited from DtLocationEntryWidget | |
| DtLocationEntryWidget (QWidget *parent=NULL, const Qt::WindowFlags &f=0) | |
| default constructor | |
| virtual | ~DtLocationEntryWidget () |
| destructor | |
| 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 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 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 | 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. | |
| bool | useAltitudeSelection () const |
| bool | showHeightAboveTerrain () 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 &flags=0) |
Protected Member Functions | |
| virtual void | setupAltitudeWidget () |
Protected Member Functions inherited from DtLocationEntryWidget | |
| 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) |
Protected Attributes | |
| DtAltitudeSelectionWidget * | myAltitudeSelectionWidget |
| const DtTerrainDatabase * | myTerrainDatabase |
| Coordinate_System * | myDefaultCoordinateSystem |
| bool | myIsInitialized |
Protected Attributes inherited from DtLocationEntryWidget | |
| QDoubleValidator | myDoubleValidator |
| DtCoordSys | myCoordinateSystem |
| bool | mySingleLineMode |
| const DtCoordinateSystemCollection * | myCoordinateSystemCollection |
| const DtUnitDisplayManager * | myUnitDisplayManager |
| bool | myUseAltitudeSelection |
| bool | myShowHeightAboveTerrain |
| bool | myCalculateOffset |
| double | myHeightAboveTerrain |
| bool | myZIsHidden |
Additional Inherited Members | |
Public Attributes inherited from DtLocationEntryWidget | |
| Ui::LocationEntryWidgetUi | myUiImpl |
class DtTerrainLocationEntryWidget:
Instances of DtTerrainLocationEntryWidget are
| DtTerrainLocationEntryWidget::DtTerrainLocationEntryWidget | ( | QWidget * | parent = NULL, |
| const Qt::WindowFlags & | flags = 0 |
||
| ) |
default constructor
|
virtual |
destructor
|
static |
Reimplemented from DtLocationEntryWidget.
|
virtual |
Converts from source coordinate system (as found in the terrain database, if it exists) to supplied coordinate system.
Assumes the point coming is in in local (database) coordinates
Reimplemented from DtLocationEntryWidget.
|
virtual |
Converts from current coordinate system to coordinate system of database (if there is a terrain database).
Default simply copies to result
Reimplemented from DtLocationEntryWidget.
|
virtual |
Sets the x, y, and z value (calling setValue) from the geocentric position given into the currently set coordinate system.
|
virtual |
Returns the values in the entry widget in geocentric coordinates.
Returns the values in the entry widget in local coordinates.
|
virtual |
Initializes connections to capture changes to display options.
Do not make this call if you want to handle such changes yourself
Reimplemented from DtLocationEntryWidget.
|
inline |
|
virtual |
|
virtual |
Initializes widget with specific coordinate system and unit.
Reimplemented from DtLocationEntryWidget.
|
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 from DtLocationEntryWidget.
|
virtual |
Reimplemented from DtLocationEntryWidget.
|
virtual |
Reimplemented from DtLocationEntryWidget.
|
virtual |
Reimplemented from DtLocationEntryWidget.
|
virtual |
Reimplemented from DtLocationEntryWidget.
|
virtual |
Reimplemented from DtLocationEntryWidget.
|
virtual |
Reimplemented from DtLocationEntryWidget.
|
virtual |
Returns true if the Z label/text is shown.
Reimplemented from DtLocationEntryWidget.
|
virtual |
Hides the Z label and text entry.
Reimplemented from DtLocationEntryWidget.
|
virtual |
Shows the Z label and text entry.
Reimplemented from DtLocationEntryWidget.
|
virtual |
Reimplemented from DtLocationEntryWidget.
|
virtual |
Reimplemented from DtLocationEntryWidget.
|
virtual |
Reimplemented from DtLocationEntryWidget.
|
virtual |
Returns altitude in meters.
Reimplemented from DtLocationEntryWidget.
|
virtual |
Reimplemented from DtLocationEntryWidget.
|
virtual |
Clears out the x, y and z coordinates.
Reimplemented from DtLocationEntryWidget.
|
virtualslot |
Referenced by setTerrainDatabase().
|
virtualslot |
Override base class to also account for coordinate system.
When the locationModified signal is emitted it will be sent in geocentric coordinates
|
signal |
|
protectedvirtual |
|
protected |
|
protected |
Referenced by setTerrainDatabase().
|
protected |
|
protected |