![]() |
VR-Forces 4.1 Class Documentation
|
This class will be the entry point for conversion from unit display types, values, and the screen display. More...

Public Slots | |
| virtual void | removeComboBox (QObject *) |
Signals | |
| void | precisionChanged (const DtCoordSys &, int oldPrec, int newPrec) |
| void | coordinateSystemAdded (const DtCoordSys &unit, DtCoordinateSystem *obj) |
Public Member Functions | |
| DtCoordinateSystemCollection (const DtUnitDisplayManager *units) | |
| virtual | ~DtCoordinateSystemCollection () |
| virtual bool | init () |
| Adds all default converters by initially adding all items found in coordUtil.h Unit converter must be set to allow for correct label creation for X, Y and Z labels (handed down to the coordinate systems) | |
| virtual const DtCoordinateSystemDict & | coordinateSystemCollection () const |
| Returns the internal unit converter collection. | |
| virtual DtCoordinateSystemDict & | coordinateSystemCollection () |
| virtual void | fillComboBox (QComboBox *box, QList< DtCoordSys > *showOnly=NULL) const |
| Fills the combo box with all items found in the collection. | |
| virtual void | fillGridLineSelection (const DtCoordSys &system, const QString &unit, QComboBox *combo) |
| Fills the combo box with grid line spacing choices. | |
| virtual QString | gridLineTextForFrequency (const DtCoordSys &system, const QString &unit, double frequency) |
| Returns the grid line text for the specified frequency. | |
| virtual double | gridLineFrequencyForText (const DtCoordSys &system, const QString &unit, const QString &text) |
| Returns the grid line frequency for the specified text. | |
| virtual QString | xLabelFor (const DtCoordSys &system) const |
| Calls down to coordinate system referenced by system for the labels. | |
| virtual QString | yLabelFor (const DtCoordSys &system) const |
| virtual QString | zLabelFor (const DtCoordSys &system) const |
| const DtUnitDisplayManager * | unitDisplayManager () const |
| virtual void | setPrecision (const DtCoordSys &s, int, bool signal=true) |
| Get/set precision for the specified coordinate system. | |
| virtual int | precision (const DtCoordSys &) const |
| virtual void | setPrecisionLowerBound (const DtCoordSys &s, int) |
| Get/set precision bounds for the specified coordinate system. | |
| virtual int | precisionLowerBound (const DtCoordSys &) const |
| virtual void | setPrecisionUpperBound (const DtCoordSys &s, int) |
| virtual int | precisionUpperBound (const DtCoordSys &) const |
| virtual void | restoreDefaults () |
| Restores all precision settings for all current coordinate systems to 2. | |
| virtual void | addCoordinateSystem (const DtCoordSys &unit, DtCoordinateSystem *obj) |
| These routines call down to the myCoordinateSystem version of the methods. | |
| virtual DtCoordinateSystem * | coordinateSystemFor (const DtCoordSys &system) const |
| Returns the converter for the specified unit type. | |
| virtual DtCoordinateSystem * | coordinateSystemFor (const QString &system) const |
| virtual QString | coordinateSystemName (const DtCoordSys &system) const |
| Returns the coordinate system name for the specified system. | |
| virtual DtCoordSys | coordinateSystem (const QString &system) const |
| virtual void | automaticallyUpdateComboBox (QComboBox *) |
| When a new coordinate system is added, add it to the supplied combo box. | |
Public Member Functions inherited from DtArchivableObject | |
| DtArchivableObject (QString name, DtArchivableObjectCreator fcn) | |
| This constructor will add this object to the archivable object factory. | |
| DtArchivableObject (QString name) | |
| DtArchivableObject () | |
| virtual | ~DtArchivableObject () |
| virtual QString | name () const |
| DtArchiver * | archiver () |
| Returns the archiver of this object. | |
| virtual void | setLevel (int i) |
| virtual int | level () const |
| virtual DtArchivableObject * | clone () |
| Allows for cloning of this object. | |
Static Public Member Functions | |
| static DtCoordinateSystemCollection * | create (const DtUnitDisplayManager *units) |
| Creates a new instance of this object. | |
Protected Member Functions | |
| virtual void | addCoordinateSystems () |
| Adds coordinate systems to the collection. | |
| virtual int | gridLineInsertPosition (QComboBox *box, double val) const |
| Returns index to place new grid line item. Sorted by grid line spacing. | |
| virtual void | read (QTextStream &ts) |
| Used to archive/restore precision settings. | |
| virtual void | write (QTextStream &ts) |
Protected Attributes | |
| DtCoordinateSystemDict | myCoordinateSystems |
| const DtUnitDisplayManager * | myUnits |
| QList< QComboBox * > | myTracking |
Protected Attributes inherited from DtArchivableObject | |
| DtArchiver * | myArchiver |
This class will be the entry point for conversion from unit display types, values, and the screen display.
| DtCoordinateSystemCollection::DtCoordinateSystemCollection | ( | const DtUnitDisplayManager * | units | ) |
|
virtual |
|
virtual |
Adds all default converters by initially adding all items found in coordUtil.h Unit converter must be set to allow for correct label creation for X, Y and Z labels (handed down to the coordinate systems)
|
static |
Creates a new instance of this object.
Reimplemented in DtTerrainCoordinateSystemCollection.
|
virtual |
Returns the internal unit converter collection.
|
virtual |
|
virtual |
Fills the combo box with all items found in the collection.
If showOnly is defined, will only show the items that are in that value list
|
virtual |
Fills the combo box with grid line spacing choices.
Passes responsibility down to unit converter that is represented by the particular coordinate system
|
virtual |
Returns the grid line text for the specified frequency.
Passes down to specified coordinate system
|
virtual |
Returns the grid line frequency for the specified text.
Passes down to specified coordinate system
|
virtual |
Calls down to coordinate system referenced by system for the labels.
|
virtual |
|
virtual |
|
inline |
References myUnits.
|
virtual |
Get/set precision for the specified coordinate system.
Note that if the precision is set directly in the coordinate system object, it will not be emitted as being changed. Returns true if precision was changed. If signal is false, will not emit signal on change
|
virtual |
|
virtual |
Get/set precision bounds for the specified coordinate system.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Restores all precision settings for all current coordinate systems to 2.
|
virtual |
These routines call down to the myCoordinateSystem version of the methods.
Adds a new coordinate system to the list of systems. If the system exists, replaces with the new information
|
virtual |
Returns the converter for the specified unit type.
|
virtual |
|
virtual |
Returns the coordinate system name for the specified system.
|
virtual |
|
virtual |
When a new coordinate system is added, add it to the supplied combo box.
Will also connect to the combo boxes destroyed method.
|
signal |
|
signal |
|
virtualslot |
|
protectedvirtual |
Adds coordinate systems to the collection.
Reimplemented in DtTerrainCoordinateSystemCollection.
|
protectedvirtual |
Returns index to place new grid line item. Sorted by grid line spacing.
|
protectedvirtual |
Used to archive/restore precision settings.
Reimplemented from DtArchivableObject.
|
protectedvirtual |
Reimplemented from DtArchivableObject.
|
protected |
|
protected |
Referenced by unitDisplayManager().