Public Member Functions |
| | DtUnitDisplayManager (const DtUnitConverterFactory *) |
| | Default constructor.
|
| virtual | ~DtUnitDisplayManager () |
| | Destructor.
|
| | DtUnitDisplayManager (const DtUnitDisplayManager &orig) |
| | Copy Constructor.
|
| virtual DtUnitDisplayManager & | operator= (const DtUnitDisplayManager &rhs) |
| | Assignment operator.
|
| virtual bool | init () |
| const DtUnitConverterFactory * | unitConverterFactory () const |
| virtual bool | addUnitToDisplay (const QString &unitDisplay, const QString &unit, int precision=3, bool addTimeUnits=false) |
| | Use this call to add new unit displays to an existing category.
|
| virtual bool | addUnitToAllDisplay (const QString &unit, int precision=3, bool addTimeUnits=false) |
| | Adds the display unit to all categories currently known about.
|
| virtual void | addUnitDisplay (const QString &newUnit, const QString &basedOn, const QString &externalName) |
| | Adds a new display unit category based on the supplied category.
|
| virtual void | addGridLineChoices (double start, int steps, const QString &source, const QString &title, const QString &convertSource, const QString &convertDestination) |
| | Adds grid line choices starting at the bottom range and multiplying that range by 10 for the number of give steps.
|
| virtual void | addUnitDisplay (const QString &internalName, const QString &externalName, const QStringList &supportedUnits, const QVector< int > &defaultPrecision=QVector< int >()) |
| | Adds a new display item to the factory.
|
| virtual void | removeDisplayUnit (const QString &internalName) |
| virtual QString | displayingUnitsFor (const QString &displayUnit) const |
| virtual void | setDisplayingUnitsFor (const QString &displayUnit, const QString &unit, bool signal=true) |
| | If signal is false, do not emit change signal.
|
| virtual int | precisionFor (const QString &displayUnit, const QString &unit) const |
| virtual int | precisionForDisplay (const QString &displayUnit) const |
| | Calls precisionFor to get precision for currently displayed unit.
|
| virtual void | setPrecisionFor (const QString &displayUnit, const QString &unit, int precision, bool signal=true) |
| | If signal is false, do not emit signal if current displayed unit is changed.
|
| virtual QString | formatToPrecision (double val, const QString &displayUnit, const QString &unit) const |
| | Formats the string given the particular display unit and unit.
|
| virtual DtUnitDisplayManager * | clone () const |
| | Creates a copy of this object.
|
| int | count () const |
| virtual DtUnitDisplay | unitDisplay (int) const |
| virtual QString | internalName (int) const |
| virtual int | displayIndexOf (const QString &internalName) const |
| | Controls ordering of items for display.
|
| virtual void | setDisplayIndex (const QString &internalName, int i) |
| virtual DtGridLineChoiceMap | gridLineChoices (const QString &) const |
| | Given a particular unit type, return grid line choices (if any)
|
| virtual void | addGridLineChoice (const QString &unit, const QString &title, double frequency) |
| virtual void | removeGridLineChoice (const QString &unit, const QString &title) |
| virtual void | restoreDefaults () |
| | Will call assignment operator on this if myDefaults is set.
|
| virtual bool | operator== (const DtUnitDisplayManager &) const |
| bool | operator!= (const DtUnitDisplayManager &) const |
| virtual QString | formatSourceToDestination (double val, const QString &unitDisplay, const QString &source, const QString &destination) const |
| | Formats from the source to the destination units and returns formatted value.
|
| virtual QString | formatSourceToDisplay (double val, const QString &unitDisplay, const QString &source) const |
| | Uses destination as selected by user.
|
| virtual QString | formatDestinationToSource (double val, const QString &unitDisplay, const QString &source, const QString &destination) const |
| | Formats from the destination to the source.
|
| virtual QString | formatDisplayToSource (double val, const QString &unitDisplay, const QString &source) const |
| | Uses destination as selected by user.
|
| virtual double | convertSourceToDisplay (double val, const QString &unitDisplay, const QString &source) const |
| | Converts from the source to the destination units and returns formatted value.
|
| virtual double | convertDisplayToSource (double val, const QString &unitDisplay, const QString &source) const |
| | Converts from the destination to the source.
|
| virtual double | convertSourceToDestination (double val, const QString &source, const QString &destination) const |
| | Converts from the source to the destination units and returns formatted value.
|
| virtual double | convertDestinationToSource (double val, const QString &source, const QString &destination) const |
| | Converts from the destination to the source.
|
| virtual QString | unitLabel (const QString &unitDisplay) const |
| | Returns a label based on display category and units.
|
| | 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.
|