28 #ifndef TRIALDISPLAY_WORLDCANVASHOLDER_H
29 #define TRIALDISPLAY_WORLDCANVASHOLDER_H
122 std::cout<<
"World canvas holder restriction="
124 <<
" value=" << restriction.
getType() << std::endl;
AttValue::ValueType getType() const
Return the DataType of the value of the Attribute.
virtual void cleanup()
Force a cleanup of all the DisplayDatas which are registered with this WorldCanvasHolder.
const DisplayData * csMaster() const
The DD in charge of setting WC coordinate state (0 if none).
std::string errorMessage() const
virtual casacore::Bool worldToLin(casacore::Vector< casacore::Double > &lin, const casacore::Vector< casacore::Double > &world)
transform the world point (N-dimensional) into a lin coordinate (2-dimensional), returning false if t...
Class which stores WorldCanvas refresh event information.
casacore::Vector< casacore::Bool > getConformance() const
virtual casacore::uInt nWorldAxes() const
Return the number of world axes, which is hard-wired to 2.
virtual WorldCanvas * worldCanvas() const
Return the WorldCanvas which is held by this WorldCanvasHolder.
casacore::Float getDrawUnit() const
Returns the current pgp draw unit, which depends on the x-range of the data currently being displayed...
Base class defining the interface to controlling the WorldCanvas size.
const DisplayData * csMaster() const
The DD in charge of setting WC coordinate state (0 if none).
WorldCanvasHolder(WorldCanvas *canvas)
Constructor.
virtual casacore::Bool worldToLin(casacore::Vector< casacore::Double > &lin, const casacore::Vector< casacore::Double > &world)=0
transform the world point (N-dimensional) into a lin coordinate (2-dimensional), returning false if t...
const AttributeBuffer * restrictionBuffer() const
Return the buffer of restrictions installed on this WorldCanvasHolder.
void removeRestriction(const casacore::String &restrictionName)
Remove the named restriction, or all restrictions, from the WorldCanvasHolder.
Base class defining a set of transformations for WorldCanvas coordinates.
Buffer for storing Attributes.
Base class for handling WorldCanvas motion events.
virtual void refresh(const Display::RefreshReason &reason=Display::UserCommand, const casacore::Bool &explicitrequest=true)
Invoke a refresh on the WorldCanvas, ie.
virtual void operator()(const WCPositionEvent &ev)
Distribute a WCPositionEvent originating from the held WorldCanvas over the DisplayDatas.
DisplayData * controllingDD
casacore::String getTitleDDName(const casacore::Vector< casacore::Bool > &conforms) const
void labelAxes(const casacore::Vector< casacore::Bool > &conforms, const WCRefreshEvent &ev)
virtual void addDisplayData(DisplayData *dData, int position)
Add a DisplayData object to the list of DisplayDatas registered on the held WorldCanvas by this World...
void setRestriction(const Attribute &restriction)
Install a single restriction, or a buffer of restrictions, on the WorldCanvas which DisplayData must ...
casacore::Bool wasCSmaster(DisplayData *dd=0) const
Was the passed DD the last CS master (or, if no DD passed, was there any CS master)? For convenience of the DDs during the next sizeControl execution, in determining whether a CS master change is occurring, and whether anyone was master before.
casacore::Bool isCSmaster(const DisplayData *dd) const
Is the specified DisplayData the one in charge of WC state? (During DD::sizeControl() execution...
void setRestrictions(const AttributeBuffer &resBuff)
bool blinkMode
true if the viewer is in blink mode.
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
void clearCSMasterSettings(WorldCanvas *wCanvas, bool clearZoom=true)
virtual void removeDisplayData(DisplayData &dData, casacore::Bool ignoreRefresh=false)
Remove a DisplayData from the list of DisplayDatas which are registered by this WorldCanvasHolder for...
Arbitrary name-value pairs used in the display classes.
casacore::Bool isCSmaster(const DisplayData *dd) const
Is the specified DisplayData the one in charge of WC state? (During DD::sizeControl() execution...
virtual casacore::Bool syncCSmaster(const WorldCanvasHolder *wch)
used by PanelDisplay on new WCHs to keep a consistent CS master on all its main display WC[H]s...
Base class for handling WorldCanvas refresh events.
casacore::Bool existRestriction(const casacore::String &name) const
Check if a named restriction exists.
void setRestrictions(const AttributeBuffer &resBuff)
virtual casacore::Bool linToWorld(casacore::Vector< casacore::Double > &world, const casacore::Vector< casacore::Double > &lin)=0
transform the lin point (2-dimensional) into a world coordinate (N-dimensional), returning false if t...
casacore::Bool matchesRestrictions(const AttributeBuffer &buffer) const
virtual ~WorldCanvasHolder()
Destructor.
casacore::Bool matchesRestriction(const Attribute &restriction) const
Determine whether the restrictions installed on the WorldCanvas match the given restriction or buffer...
WorldCanvas * itsWorldCanvas
The WorldCanvas that is held by this WorldCanvasHolder.
void removeRestrictions()
Class which stores WorldCanvas motion event information.
casacore::Bool existRestriction(const casacore::String &name) const
Check if a named restriction exists.
const std::list< DisplayData * > & displaylist() const
casacore::Bool matchesRestriction(const Attribute &restriction) const
Determine whether the restrictions installed on the WorldCanvasHolder match the given restriction or ...
const Char * c_str() const
Get char array.
Class describing the most basic event information in the display classes.
bool setCSMaster(DisplayData *dd)
virtual casacore::Bool linToWorld(casacore::Matrix< casacore::Double > &world, casacore::Vector< casacore::Bool > &failures, const casacore::Matrix< casacore::Double > &lin)
Batch transformation where each row of lin is a coordinate that is transformed into each row of world...
void setBlinkMode(bool mode)
Set whether or not the viewer is in blink mode.
void setControllingTitle(const casacore::Vector< casacore::Bool > &conforms)
bool Bool
Define the standard types used by Casacore.
virtual casacore::Bool executeSizeControl(WorldCanvas *wCanvas)
Handle size control requests originating from the WorldCanvas.
casacore::String getName() const
Return the name of the Attribute.
casacore::Bool matchesRestrictions(const AttributeBuffer &buffer) const
void * itsLastCSmaster
The CS master in effect after executeSizeControl was last run (0 if none).
DisplayData * getTitleDDBlink(const casacore::Vector< casacore::Bool > &conforms) const
RefreshReason
Callback reasons for PCRefreshEvent and WCRefreshEvent.
Class which stores WorldCanvas position event information.
A holder to interface between DisplayDatas and a WorldCanvas.
void labelAxesBlink(const casacore::Vector< casacore::Bool > &conforms, const WCRefreshEvent &ev)
Implementation of drawing in world coordinates on top of a PixelCanvas.
void removeRestriction(const casacore::String &restrictionName)
Remove the named restriction, or all restrictions, from the WorldCanvas.
casacore::String getTitle(DisplayData *dd) const
void labelAxesNormal(const casacore::Vector< casacore::Bool > &conforms, const WCRefreshEvent &ev)
std::list< DisplayData * > itsDisplayList
A list containing the DisplayDatas that are registered on this WorldCanvasHolder. ...
String: the storage and methods of handling collections of characters.
void removeRestrictions()
void setRestriction(const Attribute &restriction)
Install a single restriction, or a buffer of restrictions, on the WorldCanvasHolder which DisplayData...
virtual casacore::uInt nDisplayDatas() const
How many DisplayDatas are registered?
virtual casacore::uInt nelements()
Maximum number of animation frames of all registered DDs which are valid for the WC's current CS stat...
void clearSubstituteTitles()
virtual void handleEvent(DisplayEvent &ev)
Handle other, generic types of events.
Base class for handling WorldCanvas position events.
Base class for display objects.
virtual casacore::Bool linToWorld(casacore::Vector< casacore::Double > &world, const casacore::Vector< casacore::Double > &lin)
casacore::Coordinate conversion routines, handled for the WorldCanvas.
static const casacore::String BLINK_MODE
DisplayData * getTitleDDNormal(const casacore::Vector< casacore::Bool > &conforms) const
const AttributeBuffer * restrictionBuffer() const
Return the buffer of restrictions installed on this WorldCanvas.
User told PixelCanvas to refresh via PixelCanvas refresh()
virtual casacore::Bool worldToLin(casacore::Matrix< casacore::Double > &lin, casacore::Vector< casacore::Bool > &failures, const casacore::Matrix< casacore::Double > &world)
Batch transformation where each row of world is a coordinate that is transformed into each row of lin...
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.