28 #ifndef TRIALDISPLAY_MULTIWCHOLDER_H
29 #define TRIALDISPLAY_MULTIWCHOLDER_H
43 class WorldCanvasHolder;
45 class AttributeBuffer;
casacore::Bool itsRefreshHeld
The current state of whether a refresh was held up or not.
Display::RefreshReason itsHeldReason
The reason for the held-up refresh event.
std::list< DisplayData * > & displayDatas()
Added to collect region statistics from MultiRectTool::update_stats()...
virtual casacore::Bool conforms(DisplayData *dd, casacore::Bool testRstrs=true, casacore::Bool testCS=true, casacore::Bool testZ=true, casacore::Int wchIndex=0)
Test conformance of a DD to a WCH of this MWCH (by default, test against the first one (WCH 0)...
virtual void setLinearRestrictions(AttributeBuffer &restrictions, const AttributeBuffer &increments)
Incrementally distribute restrictions to all of the WorldCanvasHolders.
virtual void addDisplayData(DisplayData &displaydata, int position=-1)
Add or remove a DisplayData, or remove all DisplayDatas on this MultiWCHolder.
AttributeBuffer itsAttributes
The buffer of attributes which are presently installed on the registered WorldCanvasHolders.
Buffer for storing Attributes.
virtual void hold()
Hold and release response to refreshes requested with the refresh() member function.
virtual void removeDisplayData(DisplayData &displaydata)
virtual void addWCHolder(WorldCanvasHolder &holder)
Add or remove a WorldCanvasHolder, or remove all WorldCanvasHolders on this MultiWCHolder.
std::list< DisplayData * > itsDDList
The list of DisplayDatas that are managed by this MultiWCHolder.
virtual casacore::uInt zLength()
MultiWCHolder()
Constructor which makes an empty MultiWCHolder.
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
Arbitrary name-value pairs used in the display classes.
std::list< WorldCanvasHolder * > itsWCHList
The list of WorldCanvasHolders that are managed by this MultiWCHolder.
virtual void removeRestrictions()
virtual void clear()
Clear PC in MWCH's area (not implemented on this level).
virtual casacore::Int bLength()
These orrespond to 'zIndex, zLength' for animator's 'blink mode'.
void setBlinkMode(bool blinkMode)
Sets whether the viewer is in blink mode.
virtual void setRestriction(const Attribute &restriction)
Install or remove a single restriction, or a buffer of restrictions, on all of the WorldCanvasHolders...
virtual casacore::Int nWCHs()
Return number of WCHs (subpanels).
casacore::Block< void * > itsBlinkDDs
Subset of above DDs which will have blinking restrictions added (Countour plots, e.g., do not; they always display).
virtual void refresh(const Display::RefreshReason &reason=Display::UserCommand)
Distribute a refresh event to all the held WorldCanvasHolders.
virtual void setBIndexName()
Copy constructor - construct a new MultiWCHolder from other.
virtual casacore::Bool isBlinkDD(DisplayData *dd)
Determines which DDs will be restricted, which are always active.
virtual void removeWCHolder(WorldCanvasHolder &holder)
virtual casacore::Int bIndex()
void distributeRestrictions()
Distribute restrictions to all WorldCanvasHolders.
bool Bool
Define the standard types used by Casacore.
A holder of WorldCanvasHolders to use for panelling applications.
virtual void removeWCHolders()
void installRestrictions(WorldCanvasHolder &holder)
Set restrictions on a particular WorldCanvasHolder.
virtual void removeDisplayDatas()
RefreshReason
Callback reasons for PCRefreshEvent and WCRefreshEvent.
casacore::Bool isAlreadyRegistered(const WorldCanvasHolder &holder)
Do we already have this WorldCanvasHolder/DisplayData registered?
void addAllDisplayDatas(WorldCanvasHolder &holder)
Add/remove all the DisplayDatas to/from a WorldCanvasHolder.
A holder to interface between DisplayDatas and a WorldCanvas.
void removeFromAllWorldCanvasHolders(DisplayData &displaydata)
casacore::Int itsHoldCount
The current hold count of this MultiWCHolder.
String: the storage and methods of handling collections of characters.
casacore::String itsBIndexName
The (unchanging) name of the blink restriction: "bIndex" followed by an ID unique to this MWCH...
void removeAllDisplayDatas(WorldCanvasHolder &holder, const casacore::Bool &permanent=false)
virtual void adjustBIndexName(AttributeBuffer &rstrs)
Adjust name of "bIndex" Attribute (if any) to indlude ID of this MWCH.
casacore::Int itsBLength
Number of DDs above.
void addToAllWorldCanvasHolders(DisplayData &displaydata, int position)
Add/remove a DisplayData to/from all WorldCanvasHolders.
Base class for display objects.
virtual void setRestrictions(const AttributeBuffer &restrictions)
virtual ~MultiWCHolder()
Destructor.
virtual void removeRestriction(const casacore::String &name)
casacore::Int itsBIndex
Index of DD to show in first WCH when blink mode is active (it is kept up-to-date in any case)...
User told PixelCanvas to refresh via PixelCanvas refresh()
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.