Isis 3 Programmer Reference
Isis::CnetDisplayProperties Class Reference

Handles how control networks should be displayed to the user. More...

#include <CnetDisplayProperties.h>

Inheritance diagram for Isis::CnetDisplayProperties:
Inheritance graph
Collaboration diagram for Isis::CnetDisplayProperties:
Collaboration graph

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. More...
 
QString getFileName (QString fileName, bool forceFullPaths=false) const
 
QString getImageName (QString cubeSerialNumber, bool forceFullPaths=false) const
 
QString getSerialNumber (QString imageId)
 
bool getShowsFullPaths () const
 
void setCubeList (QString fileName)
 
void setFileNameUsage (bool preferFileNames)
 
void setShowsFullPaths (bool newState)
 

Static Public Member Functions

static CnetDisplayPropertiesgetInstance ()
 

Private Slots

void composeStatusUpdated ()
 
void serialNumbersComposed ()
 

Private Member Functions

 CnetDisplayProperties (CnetDisplayProperties const &)
 
CnetDisplayPropertiesoperator= (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
 

Static Private Attributes

static CnetDisplayPropertiesm_instance = NULL
 

Detailed Description

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.

Author
????-??-?? Eric Hyer
History:
2012-09-28 Kimberly Oyama - Changed member variables to be prefixed with "m_".

Definition at line 34 of file CnetDisplayProperties.h.

Member Function Documentation

◆ getCubeList()

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 106 of file CnetDisplayProperties.cpp.

References Isis::ControlNet::GetCubeSerials(), and getImageName().

◆ getImageName()

QString Isis::CnetDisplayProperties::getImageName ( QString  cubeSerialNumber,
bool  forceFullPaths = false 
) const
Parameters
cubeSerialNumberCube serial number as a QString
Returns
The file name associated with the given cube serial number, or the given cube serial number if a file name can not be found in the current cube list.
See also
setCubeList()

This method is thread safe!

Definition at line 146 of file CnetDisplayProperties.cpp.

Referenced by getCubeList().


The documentation for this class was generated from the following files: