28 #ifndef TRIALDISPLAY_PANELDISPLAY_H
29 #define TRIALDISPLAY_PANELDISPLAY_H
42 class WorldCanvasHolder;
44 class AttributeBuffer;
133 virtual void clear();
231 std::map<casacore::String, std::shared_ptr<MultiWCTool> >
itsMWCTools;
PanelDisplay(PixelCanvas *pixelcanvas, const casacore::Int nx=3, const casacore::Int ny=2, const casacore::Float xOrigin=0.0, const casacore::Float yOrigin=0.0, const casacore::Float xSize=1.0, const casacore::Float ySize=1.0, const casacore::Float dx=0.0, const casacore::Float dy=0.0, const PanelDisplay::FillOrder order=LEFT_TOP)
Constructor taking: a pointer to the PixelCanvas on which to lay the panels, the number of panels in ...
virtual casacore::Bool hasTools()
static const casacore::String X_SIZE
Class to provide option parsing routines for display classes.
casacore::Float itsXOrigin
The origin and size of the used area of the PixelCanvas.
casacore::Int itslpgm
The pgmargins.
virtual casacore::Bool isCSmaster(const DisplayData *dd) const
Is the specified DisplayData the one in charge of coordinate state of the Panel's WCs...
casacore::Float itsDX
The offset between each panel.
virtual void getGeometry(casacore::Int &nx, casacore::Int &ny, casacore::Float &xOrigin, casacore::Float &yOrigin, casacore::Float &xSize, casacore::Float &ySize, casacore::Float &dx, casacore::Float &dy, PanelDisplay::FillOrder &order) const
Describe or set the geometry of the panels, either explicitly or in casacore::RecordInterface form...
virtual void clear()
Clear our part of the PC.
static const casacore::String X_ORIGIN
void apply(const Jones &j1, VisVector &v, const Jones &j2)
Apply a pair of Jones to a VisVector:
Buffer for storing Attributes.
left to right, then top to bottom
virtual void setAttributes(AttributeBuffer &at)
Set attributes on all WolrdCanvases.
virtual casacore::Record getOptions() const
virtual void setDefaultOptions()
Install the default options for this PanelDisplay.
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
int getColumnCount() const
Returns the number of columns of plots that are currently being displayed.
void unSetupGeometry()
unSetup the Geometry.
virtual const std::shared_ptr< MultiWCTool > getTool(const casacore::String &key)
casacore::Float itsYOrigin
Base class defining interface to pixel-based output devices.
void setCSmaster(DisplayData *dd)
virtual void enableTool(const casacore::String &toolname)
float getDrawUnit() const
Returns the current mapping of PGP units to pixel units.
virtual casacore::Bool setOptions(const casacore::Record &rec, casacore::Record &updatedOptions)
Apply options stored in rec to the PanelDisplay; these get forwarded to all underlying WorldCanvases...
virtual WorldCanvasHolder * wcHolder(WorldCanvas *wc) const
virtual void enableTools()
static const casacore::String Y_ORIGIN
virtual void setGeometry(const casacore::Int nx, const casacore::Int ny, const casacore::Float xOrigin, const casacore::Float yOrigin, const casacore::Float xSize, const casacore::Float ySize, const casacore::Float dx, const casacore::Float dy, const PanelDisplay::FillOrder order)
virtual PixelCanvas * pixelCanvas()
virtual void removeTool(const casacore::String &key)
virtual void addTool(const casacore::String &key, const std::shared_ptr< MultiWCTool > &)
bool wcsApply(std::function< void(WorldCanvas *)> apply)
get controlled access to world canvases shared among a number of objects return value indicates if th...
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
std::list< WorldCanvas * > itsWCList
The WorldCanvases which we made, and a convenient iterator.
A holder of WorldCanvasHolders to use for panelling applications.
virtual void setToolKey(const casacore::String &toolname, const Display::KeySym &keysym)
FillOrder itsOrder
What order do we fill the canvases in?
PixelCanvas * itsPixelCanvas
The PixelCanvas on which the panels are laid.
void add(casacore::Int spectralWindow, casacore::Int firstChannel, casacore::Int nChannels, casacore::Int increment=1)
virtual ~PanelDisplay()
Destructor.
casacore::Bool itsGeometrySet
Whether the geometry is currently setup?
A holder to interface between DisplayDatas and a WorldCanvas.
Implementation of drawing in world coordinates on top of a PixelCanvas.
casacore::Int itsNX
The number of panels in x and y.
virtual void updateTools(casacore::Bool remove=true, casacore::Bool add=true)
A class which creates and manages "panelled" displays.
String: the storage and methods of handling collections of characters.
std::list< WorldCanvasHolder * > itsWCHList
The WorldCanvasHolders which we made, and a convenient iterator.
Base class for display objects.
int getRowCount() const
Returns the number of rows of plots that are currently being displayed.
Abstract base class for Record classes.
virtual void disableTools()
KeySym
Keysyms for PixelCanvas keyboard events.
virtual void getAttributeValue(const casacore::String &name, casacore::Int &newValue) const
virtual void disableTool(const casacore::String &toolname)
static const casacore::String Y_SIZE
std::map< casacore::String, std::shared_ptr< MultiWCTool > > itsMWCTools