casa
$Rev:20696$
|
Manages and controls access to a lit of QtDisplayDatas. More...
#include <DisplayDataHolder.h>
Public Types | |
typedef std::list < QtDisplayData * > | DisplayDataList |
Iteration support. | |
typedef DisplayDataList::const_iterator | DisplayDataIterator |
Public Member Functions | |
DisplayDataHolder () | |
void | addDD (QtDisplayData *dd, int position=-1) |
Adds the DisplayData. | |
bool | removeDD (QtDisplayData *qdd, bool signal=true) |
Removes the QDD from the list and deletes it (if it existed -- Return value: whether qdd was in the list in the first place). | |
void | removeDDAll () |
void | insertDD (QtDisplayData *dd, int position) |
Insert and discard to basically the same thing as add/remove except that they perform the operation through a GUI level if one is available. | |
void | discardDD (QtDisplayData *dd, bool signal) |
int | getCount () const |
bool | isEmpty () const |
DisplayDataIterator | beginDD () const |
DisplayDataIterator | endDD () const |
QtDisplayData * | getDDControlling () const |
Controlling DD. | |
void | setDDControlling (QtDisplayData *controllingDD) |
QtDisplayData * | getDD (const std::string &name) const |
retrieve a DD with given name (0 if none). | |
bool | exists (QtDisplayData *qdd) const |
Check that a given DD is on the list. | |
void | setImageTracker (ImageTracker *tracker) |
void | setImageDisplayer (ImageDisplayer *displayer) |
virtual | ~DisplayDataHolder () |
Private Member Functions | |
DisplayDataHolder (const DisplayDataHolder &displayDataHolder) | |
DisplayDataHolder | operator= (const DisplayDataHolder &displayDataHolder) |
Private Attributes | |
ImageTracker * | imageTracker |
ImageDisplayer * | imageDisplayer |
QtDisplayData * | controlling_dd |
std::list< QtDisplayData * > | dataList |
Manages and controls access to a lit of QtDisplayDatas.
Definition at line 40 of file DisplayDataHolder.h.
typedef DisplayDataList::const_iterator casa::DisplayDataHolder::DisplayDataIterator |
Definition at line 60 of file DisplayDataHolder.h.
typedef std::list<QtDisplayData *> casa::DisplayDataHolder::DisplayDataList |
Iteration support.
Definition at line 59 of file DisplayDataHolder.h.
virtual casa::DisplayDataHolder::~DisplayDataHolder | ( | ) | [virtual] |
casa::DisplayDataHolder::DisplayDataHolder | ( | const DisplayDataHolder & | displayDataHolder | ) | [private] |
void casa::DisplayDataHolder::addDD | ( | QtDisplayData * | dd, |
int | position = -1 |
||
) |
Adds the DisplayData.
void casa::DisplayDataHolder::discardDD | ( | QtDisplayData * | dd, |
bool | signal | ||
) |
bool casa::DisplayDataHolder::exists | ( | QtDisplayData * | qdd | ) | const |
Check that a given DD is on the list.
int casa::DisplayDataHolder::getCount | ( | ) | const |
QtDisplayData* casa::DisplayDataHolder::getDD | ( | const std::string & | name | ) | const |
retrieve a DD with given name (0 if none).
Controlling DD.
void casa::DisplayDataHolder::insertDD | ( | QtDisplayData * | dd, |
int | position | ||
) |
Insert and discard to basically the same thing as add/remove except that they perform the operation through a GUI level if one is available.
bool casa::DisplayDataHolder::isEmpty | ( | ) | const |
DisplayDataHolder casa::DisplayDataHolder::operator= | ( | const DisplayDataHolder & | displayDataHolder | ) | [private] |
bool casa::DisplayDataHolder::removeDD | ( | QtDisplayData * | qdd, |
bool | signal = true |
||
) |
Removes the QDD from the list and deletes it (if it existed -- Return value: whether qdd was in the list in the first place).
void casa::DisplayDataHolder::removeDDAll | ( | ) |
void casa::DisplayDataHolder::setDDControlling | ( | QtDisplayData * | controllingDD | ) |
void casa::DisplayDataHolder::setImageDisplayer | ( | ImageDisplayer * | displayer | ) |
void casa::DisplayDataHolder::setImageTracker | ( | ImageTracker * | tracker | ) |
Definition at line 84 of file DisplayDataHolder.h.
std::list<QtDisplayData*> casa::DisplayDataHolder::dataList [private] |
Definition at line 85 of file DisplayDataHolder.h.
Definition at line 83 of file DisplayDataHolder.h.
Definition at line 82 of file DisplayDataHolder.h.