casa
5.7.0-16
|
Manages and controls access to a lit of QtDisplayDatas. More...
#include <DisplayDataHolder.h>
Public Types | |
typedef std::list < QtDisplayData * > | DisplayDataList |
Iteration support. More... | |
typedef DisplayDataList::const_iterator | DisplayDataIterator |
Public Member Functions | |
DisplayDataHolder () | |
void | addDD (QtDisplayData *dd, int position, bool autoRegister, bool masterCoordinate=false, bool masterSaturation=false, bool masterHue=false) |
Adds the DisplayData. More... | |
bool | removeDD (QtDisplayData *qdd) |
Removes the QDD from the list and deletes it (if it existed – Return value: whether qdd was in the list in the first place). More... | |
void | removeDDAll () |
void | insertDD (QtDisplayData *dd, int position, bool registered) |
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. More... | |
void | discardDD (QtDisplayData *dd) |
int | getCount () const |
bool | isEmpty () const |
bool | isCoordinateMaster (QtDisplayData *displayData) const |
DisplayDataIterator | beginDD () const |
DisplayDataIterator | endDD () const |
QtDisplayData * | getDDControlling () |
Controlling DD. More... | |
void | setDDControlling (QtDisplayData *controllingDD) |
QtDisplayData * | getChannelDD (int index) const |
Returns the DD that will be animating the channels in normal mode. More... | |
QtDisplayData * | getDD (const std::string &name) const |
retrieve a DD with given name (0 if none). More... | |
QtDisplayData * | getDD (const DisplayData *dd) const |
QtDisplayData * | getDD (int index) |
bool | exists (QtDisplayData *qdd) const |
Check that a given DD is on the list. More... | |
void | setImageTracker (std::shared_ptr< ImageTracker > tracker) |
void | setImageDisplayer (ImageDisplayer *displayer) |
void | registrationOrderChanged () |
virtual | ~DisplayDataHolder () |
Private Member Functions | |
DisplayDataHolder (const DisplayDataHolder &displayDataHolder) | |
DisplayDataHolder | operator= (const DisplayDataHolder &displayDataHolder) |
Private Attributes | |
std::shared_ptr< ImageTracker > | imageTracker |
ImageDisplayer * | imageDisplayer |
QtDisplayData * | controlling_dd |
std::list< QtDisplayData * > | dataList |
Manages and controls access to a lit of QtDisplayDatas.
Definition at line 44 of file DisplayDataHolder.h.
typedef DisplayDataList::const_iterator casa::DisplayDataHolder::DisplayDataIterator |
Definition at line 66 of file DisplayDataHolder.h.
typedef std::list<QtDisplayData *> casa::DisplayDataHolder::DisplayDataList |
Iteration support.
Definition at line 65 of file DisplayDataHolder.h.
casa::DisplayDataHolder::DisplayDataHolder | ( | ) |
|
virtual |
|
private |
void casa::DisplayDataHolder::addDD | ( | QtDisplayData * | dd, |
int | position, | ||
bool | autoRegister, | ||
bool | masterCoordinate = false , |
||
bool | masterSaturation = false , |
||
bool | masterHue = false |
||
) |
Adds the DisplayData.
DisplayDataIterator casa::DisplayDataHolder::beginDD | ( | ) | const |
void casa::DisplayDataHolder::discardDD | ( | QtDisplayData * | dd | ) |
DisplayDataIterator casa::DisplayDataHolder::endDD | ( | ) | const |
bool casa::DisplayDataHolder::exists | ( | QtDisplayData * | qdd | ) | const |
Check that a given DD is on the list.
QtDisplayData* casa::DisplayDataHolder::getChannelDD | ( | int | index | ) | const |
Returns the DD that will be animating the channels in normal mode.
int casa::DisplayDataHolder::getCount | ( | ) | const |
QtDisplayData* casa::DisplayDataHolder::getDD | ( | const std::string & | name | ) | const |
retrieve a DD with given name (0 if none).
QtDisplayData* casa::DisplayDataHolder::getDD | ( | const DisplayData * | dd | ) | const |
QtDisplayData* casa::DisplayDataHolder::getDD | ( | int | index | ) |
QtDisplayData* casa::DisplayDataHolder::getDDControlling | ( | ) |
Controlling DD.
void casa::DisplayDataHolder::insertDD | ( | QtDisplayData * | dd, |
int | position, | ||
bool | registered | ||
) |
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::isCoordinateMaster | ( | QtDisplayData * | displayData | ) | const |
bool casa::DisplayDataHolder::isEmpty | ( | ) | const |
|
private |
void casa::DisplayDataHolder::registrationOrderChanged | ( | ) |
bool casa::DisplayDataHolder::removeDD | ( | QtDisplayData * | qdd | ) |
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 | ( | std::shared_ptr< ImageTracker > | tracker | ) |
|
private |
Definition at line 99 of file DisplayDataHolder.h.
|
private |
Definition at line 100 of file DisplayDataHolder.h.
|
private |
Definition at line 98 of file DisplayDataHolder.h.
|
private |
Definition at line 97 of file DisplayDataHolder.h.