casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Private Member Functions | Private Attributes
casa::DisplayDataHolder Class Reference

Manages and controls access to a lit of QtDisplayDatas. More...

#include <DisplayDataHolder.h>

List of all members.

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
QtDisplayDatagetDDControlling () const
 Controlling DD.
void setDDControlling (QtDisplayData *controllingDD)
QtDisplayDatagetDD (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

ImageTrackerimageTracker
ImageDisplayerimageDisplayer
QtDisplayDatacontrolling_dd
std::list< QtDisplayData * > dataList

Detailed Description

Manages and controls access to a lit of QtDisplayDatas.

Definition at line 40 of file DisplayDataHolder.h.


Member Typedef Documentation

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

Definition at line 60 of file DisplayDataHolder.h.

Iteration support.

Definition at line 59 of file DisplayDataHolder.h.


Constructor & Destructor Documentation

casa::DisplayDataHolder::DisplayDataHolder ( const DisplayDataHolder displayDataHolder) [private]

Member Function Documentation

void casa::DisplayDataHolder::addDD ( QtDisplayData dd,
int  position = -1 
)

Adds the DisplayData.

void casa::DisplayDataHolder::discardDD ( QtDisplayData dd,
bool  signal 
)

Check that a given DD is on the list.

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.

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).


Member Data Documentation

Definition at line 84 of file DisplayDataHolder.h.

Definition at line 85 of file DisplayDataHolder.h.

Definition at line 83 of file DisplayDataHolder.h.

Definition at line 82 of file DisplayDataHolder.h.


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