Isis 3 Programmer Reference
|
Handles how control networks should be displayed to the user. More...
#include <CnetDisplayProperties.h>
Public Types | |
enum | coordinateDisplayType { LatLonRadius = 0 , XYZ = 1 } |
Returns coordinate display type (0 = LatLonRadius, 1 = XYZ). More... | |
Signals | |
void | composeProgressChanged (int) |
void | composeProgressRangeChanged (int, int) |
void | compositionFinished () |
Public Member Functions | |
bool | currentlyComposing () const |
QList< QString > | getCubeList (ControlNet *cnet) const |
TODO comment me. | |
QString | getFileName (QString fileName, bool forceFullPaths=false) const |
QString | getImageName (QString cubeSerialNumber, bool forceFullPaths=false) const |
QString | getSerialNumber (QString imageId) |
bool | getShowsFullPaths () const |
CnetDisplayProperties::coordinateDisplayType | coordinateDisplayType () |
void | setCubeList (QString fileName) |
void | setFileNameUsage (bool preferFileNames) |
void | setShowsFullPaths (bool newState) |
void | setCoordinateDisplayType (enum coordinateDisplayType coordDisplay) |
Sets the coordinate display type (0 = LatLonRadius, 1 = XYZ). | |
Static Public Member Functions | |
static CnetDisplayProperties * | getInstance () |
Private Slots | |
void | composeStatusUpdated () |
void | serialNumbersComposed () |
Private Member Functions | |
CnetDisplayProperties (CnetDisplayProperties const &) | |
CnetDisplayProperties & | operator= (CnetDisplayProperties const &) |
QMap< QString, QString > | composeSerialNumbers (QStringList fileNames) |
void | nullify () |
Private Attributes | |
bool | useFileNames |
QMap< QString, QString > * | m_serialNumberToFileNameMap |
QFutureWatcher< QMap< QString, QString > > * | m_composeWatcher |
QTimer * | m_composeStatusPoller |
QAtomicInt * | m_composedCount |
QAtomicInt * | m_interruptFlag |
bool | m_curComposing |
bool | m_showFullPath |
QReadWriteLock * | m_readWriteLock |
enum Isis::CnetDisplayProperties::coordinateDisplayType | m_coordinateDisplayType |
Static Private Attributes | |
static CnetDisplayProperties * | m_instance = NULL |
Handles how control networks should be displayed to the user.
This class handles how control networks should be displayed to the user. For example, this class keeps track of whether cube serial numbers or file names should be displayed to the user, and provides an interface to translate between the two.
This class is a singleton.
2012-09-28 Kimberly Oyama - Changed member variables to be prefixed with "m_".
2019-07-26 Ken Edmundson - OSIRIS-REx modifications... 1) Added enum coordinateDisplayType and associated member variable m_coordinateDisplayType to store current display of point coordinates in either Lat/Lon/Radius or XYZ. 2) Added coordinateDisplayType() and setCoordinateDisplayType() methods. 3) Modified getInstance method, primarily for readibility.
Definition at line 49 of file CnetDisplayProperties.h.
enum enum CnetDisplayProperties::coordinateDisplayType Isis::CnetDisplayProperties::coordinateDisplayType |
Returns coordinate display type (0 = LatLonRadius, 1 = XYZ).
Definition at line 60 of file CnetDisplayProperties.h.
|
virtual |
Definition at line 85 of file CnetDisplayProperties.cpp.
|
private |
Definition at line 42 of file CnetDisplayProperties.cpp.
|
private |
Definition at line 285 of file CnetDisplayProperties.cpp.
|
privateslot |
Definition at line 318 of file CnetDisplayProperties.cpp.
bool Isis::CnetDisplayProperties::currentlyComposing | ( | ) | const |
Definition at line 100 of file CnetDisplayProperties.cpp.
QList< QString > Isis::CnetDisplayProperties::getCubeList | ( | ControlNet * | cnet | ) | const |
TODO comment me.
If a cube list is currently being loaded, this method will return an empty list. If there is no cube list, it will also return an empty list.
This method is thread safe.
Definition at line 113 of file CnetDisplayProperties.cpp.
References getImageName().
QString Isis::CnetDisplayProperties::getFileName | ( | QString | fileName, |
bool | forceFullPaths = false ) const |
Definition at line 129 of file CnetDisplayProperties.cpp.
QString Isis::CnetDisplayProperties::getImageName | ( | QString | cubeSerialNumber, |
bool | forceFullPaths = false ) const |
cubeSerialNumber | Cube serial number as a QString |
This method is thread safe!
Definition at line 153 of file CnetDisplayProperties.cpp.
Referenced by getCubeList().
|
static |
Definition at line 37 of file CnetDisplayProperties.cpp.
QString Isis::CnetDisplayProperties::getSerialNumber | ( | QString | imageId | ) |
Definition at line 176 of file CnetDisplayProperties.cpp.
bool Isis::CnetDisplayProperties::getShowsFullPaths | ( | ) | const |
Definition at line 199 of file CnetDisplayProperties.cpp.
|
private |
Definition at line 307 of file CnetDisplayProperties.cpp.
|
privateslot |
Definition at line 323 of file CnetDisplayProperties.cpp.
void Isis::CnetDisplayProperties::setCoordinateDisplayType | ( | enum coordinateDisplayType | coordDisplay | ) |
Sets the coordinate display type (0 = LatLonRadius, 1 = XYZ).
coordDisplay | coordinate display type. |
Definition at line 280 of file CnetDisplayProperties.cpp.
Referenced by Isis::CnetEditorWidget::setLatLonRadiusCoordinateDisplay(), and Isis::CnetEditorWidget::setXYZCoordinateDisplay().
void Isis::CnetDisplayProperties::setCubeList | ( | QString | fileName | ) |
Definition at line 215 of file CnetDisplayProperties.cpp.
void Isis::CnetDisplayProperties::setFileNameUsage | ( | bool | preferFileNames | ) |
Definition at line 249 of file CnetDisplayProperties.cpp.
void Isis::CnetDisplayProperties::setShowsFullPaths | ( | bool | newState | ) |
Definition at line 267 of file CnetDisplayProperties.cpp.
|
private |
Definition at line 111 of file CnetDisplayProperties.h.
|
private |
Definition at line 109 of file CnetDisplayProperties.h.
|
private |
Definition at line 108 of file CnetDisplayProperties.h.
|
private |
Definition at line 116 of file CnetDisplayProperties.h.
|
private |
Definition at line 113 of file CnetDisplayProperties.h.
|
staticprivate |
Definition at line 118 of file CnetDisplayProperties.h.
|
private |
Definition at line 112 of file CnetDisplayProperties.h.
|
private |
Definition at line 115 of file CnetDisplayProperties.h.
|
private |
Definition at line 106 of file CnetDisplayProperties.h.
|
private |
Definition at line 114 of file CnetDisplayProperties.h.
|
private |
Definition at line 105 of file CnetDisplayProperties.h.