casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
casa::DisplayDataHolder Class Reference

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
 
QtDisplayDatagetDDControlling ()
 Controlling DD. More...
 
void setDDControlling (QtDisplayData *controllingDD)
 
QtDisplayDatagetChannelDD (int index) const
 Returns the DD that will be animating the channels in normal mode. More...
 
QtDisplayDatagetDD (const std::string &name) const
 retrieve a DD with given name (0 if none). More...
 
QtDisplayDatagetDD (const DisplayData *dd) const
 
QtDisplayDatagetDD (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< ImageTrackerimageTracker
 
ImageDisplayerimageDisplayer
 
QtDisplayDatacontrolling_dd
 
std::list< QtDisplayData * > dataList
 

Detailed Description

Manages and controls access to a lit of QtDisplayDatas.

Definition at line 44 of file DisplayDataHolder.h.

Member Typedef Documentation

typedef DisplayDataList::const_iterator casa::DisplayDataHolder::DisplayDataIterator

Definition at line 66 of file DisplayDataHolder.h.

Iteration support.

Definition at line 65 of file DisplayDataHolder.h.

Constructor & Destructor Documentation

casa::DisplayDataHolder::DisplayDataHolder ( )
virtual casa::DisplayDataHolder::~DisplayDataHolder ( )
virtual
casa::DisplayDataHolder::DisplayDataHolder ( const DisplayDataHolder displayDataHolder)
private

Member Function Documentation

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
DisplayDataHolder casa::DisplayDataHolder::operator= ( const DisplayDataHolder displayDataHolder)
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)

Member Data Documentation

QtDisplayData* casa::DisplayDataHolder::controlling_dd
private

Definition at line 99 of file DisplayDataHolder.h.

std::list<QtDisplayData*> casa::DisplayDataHolder::dataList
private

Definition at line 100 of file DisplayDataHolder.h.

ImageDisplayer* casa::DisplayDataHolder::imageDisplayer
private

Definition at line 98 of file DisplayDataHolder.h.

std::shared_ptr<ImageTracker> casa::DisplayDataHolder::imageTracker
private

Definition at line 97 of file DisplayDataHolder.h.


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