casa::QtDisplayPanel Class Reference

#include <QtDisplayPanel.qo.h>

Inheritance diagram for casa::QtDisplayPanel:
casa::WCMotionEH casa::PCPositionEH casa::ImageDisplayer

List of all members.

Classes

class  panel_state

Public Types

enum  CursorBoundaryCondition {
  ENTER,
  LEAVE
}
 

included in cursor boundary signals.

More...

Public Slots

void extendRegion (String, String)
 respond to region manager to set ImageRegion extension
virtual void registerDD (QtDisplayData *, int postion=-1)
 Register / unregister [all] DDs created by user through QtViewer.
virtual void unregisterDD (QtDisplayData *)
virtual void unregisterAll ()
virtual void registerAll (List< QtDisplayData * > registerDatas)
virtual void setOptions (Record opts, Bool emitAll=False)
 Set display panel options such as margins or number of panels.
virtual void setMode (bool modez, bool channelCubes=false)
virtual void setMode (String mode)
void toChannelMovieStart ()
void toImageMovieStart ()
virtual void toChannelMovieEnd ()
virtual void toImageMovieEnd ()
virtual void revStepChannelMovie ()
virtual void revStepImageMovie ()
virtual void fwdStepChannelMovie ()
virtual void fwdStepImageMovie ()
virtual void revPlayChannelMovie ()
virtual void revPlayImageMovie ()
virtual void fwdPlayChannelMovie ()
virtual void fwdPlayImageMovie ()
virtual void stopChannelMovie ()
virtual void stopImageMovie ()
void setChannelMovieRate (int)
 virtual void setRate(int rate);
void setImageMovieRate (int)
void lowerBoundAnimatorImageChanged (int)
void upperBoundAnimatorImageChanged (int)
void stepSizeAnimatorImageChanged (int)
void lowerBoundAnimatorChannelChanged (int)
void upperBoundAnimatorChannelChanged (int)
void stepSizeAnimatorChannelChanged (int)
void goToChannel (int channel)
void goToImage (int image)
virtual void goTo (int frm, bool channelFrame=false)
virtual void goToZ (int frm)
virtual void goToB (int frm)
virtual void emitAnimState ()
virtual void resetRTRegion ()
 (Will remove mouse-tools' own visual feedback from screen; usually called after selection has been processed).
virtual void resetPTRegion ()
virtual void resetETRegion ()
virtual void resetZoomer ()
virtual void resetCrosshair ()
virtual void resetPolyline ()
virtual void resetPanner ()
virtual void resetRegionTools ()
virtual void resetSelectionTools ()
virtual void resetTool (String toolname)
virtual void resetTools ()
virtual void zoomIn (Double fctr=2.)
 Expose Zoomer functions: zoom in/out, zoom out to whole image.
virtual void zoomOut (Double fctr=2.)
virtual void zoom (const Vector< Double > &blc, const Vector< Double > &trc)
virtual void unzoom ()
Bool worldToLin (Vector< Double > &lin, const Vector< Double > &world)
QSize canvasSize ()
 Returns the pixel canvas's current size.
virtual void refresh ()
 Refresh everything: main panel and colorbar panels (if any).
virtual void setBlen_ (Int len)
viewer::RegionToolManagertoolMgr ()

Signals

void animatorChange ()
void oldDDRegistered (QtDisplayData *)
 signals from registration methods.
void oldDDUnregistered (QtDisplayData *)
void newRegisteredDD (QtDisplayData *)
void newUnregisteredDD (QtDisplayData *)
void RegisteredDDRemoved (QtDisplayData *)
void UnregisteredDDRemoved (QtDisplayData *)
void allDDsRegistered ()
void allDDsUnregistered ()
void registrationChange ()
void mouseRegionReady (Record mouseRegion, WorldCanvasHolder *)
 This raw mouse region signal is probably less useful to connect to than the ones processed through the DDs (below), which contain true 'image regions'.
void imageRegionReady (ImageRegion imgRegion, String ddName)
 Higher-level (ImageRegion) signal.
void trackingInfo (Record trackingRec)
 signal from cursor position tracking.
void optionsChanged (Record chgOpt)
 signal from option setting (probably unused at present).
void dpHidden (QtDisplayPanel *dp)
 Emitted when this QDP is hidden (closed).
void newRegion (String imagePath)
 Emitted when a new ImageRegion has been stored internally (in lastRgn_).
void resized (QSize panelSize, QSize canvasSize)
 Emitted when the panel has been resized.
void creatingRstrDoc (QDomDocument *restoredoc)
 Emitted when creating a restore xml doc.
void restoring (QDomDocument *restoredoc)
 Emitted when restoring panel state from an xml doc.
void activate (Record)
void cursorBoundary (QtDisplayPanel::CursorBoundaryCondition)
 signal cursor boundary transitions
void cursorPosition (viewer::Position)

Public Member Functions

 QtDisplayPanel (QtDisplayPanelGui *panel, const QtDisplayPanel *other, QWidget *parent=0, const std::list< std::string > &args=std::list< std::string >())
 QtDisplayPanel (QtDisplayPanelGui *panel, QWidget *parent=0, const std::list< std::string > &args=std::list< std::string >())
 ~QtDisplayPanel ()
Bool isEmptyRegistered () const
int getRegisteredCount () const
DisplayDataHolder::DisplayDataIterator beginRegistered () const
 Manipulation of the QtDisplayData's.
DisplayDataHolder::DisplayDataIterator endRegistered () const
QtDisplayDatagetRegistered (int index)
QtDisplayDatagetDD (const std::string &name) const
QtDisplayDatagetDD (const DisplayData *dd) const
DisplayDataHoldergetDataHolder () const
bool isCoordinateMaster (QtDisplayData *displayData) const
void setControllingDD (QtDisplayData *controllingDD)
virtual Bool isRegistered (QtDisplayData *)
 True if DD is on our list.
QtDisplayDatagetControllingDD () const
QtDisplayDatagetChannelDD (int index) const
 Returns the DD that will be animating the channels in normal mode.
void registrationOrderChanged ()
 Reorders panels in response to a change in the registration order.
virtual Record getOptions ()
 Return Options record (of margins and no.
virtual QPixmap * contents ()
 Return a QPixmap* with a copy of currently-displayed widget contents.
virtual QPixmap * getBackBuffer ()
virtual PanelDisplaypanelDisplay ()
 Return underlying library PanelDisplay (used by Annotations, e.g.
virtual void hold ()
 Hold and release of refresh.
virtual void release ()
virtual Vector< String > mouseToolNames ()
 Return names of resident mouse tools (order is a suggestion for order in gui).
virtual void operator() (const WCMotionEvent &ev)
 This callback method is automatically registered with the appropriate objects, and is not intended for general use (it has a similar role to a protected, self-connected slot).
void operator() (const PCPositionEvent &pev)
 This callback method is automatically registered with the appropriate PC object, and is not intended for general use (it has a similar role to a protected, self-connected slot).
Int nPanels ()
 Return total number of (main) subpanels (e.g.
virtual Bool modeZ ()
virtual String mode ()
virtual Int nFrames ()
virtual Int nZFrames ()
virtual Int nBFrames ()
virtual Int frame ()
virtual Int index ()
virtual Int zIndex ()
virtual Int bIndex ()
virtual Int startFrame ()
virtual Int zStart ()
virtual Int bStart ()
virtual Int lastFrame ()
virtual Int endFrame ()
virtual Int zEnd ()
virtual Int bEnd ()
virtual Int step ()
virtual Int zStep ()
virtual Int bStep ()
virtual Int animRate ()
virtual Int minRate ()
virtual Int maxRate ()
virtual Int animating ()
Bool saveLastRegion (String path)
 Save the last region created (via an image DD) with the mouse.
String saveRegionInImage (String regname, const ImageRegion &imreg)
 same as above except it is saved in the last registered image as a keyword
void removeRegionInImage (String regname)
 Delete the region regname from last registered image does not care if its RegionHandler::Masks or RegionHandler::Regions.
String listRegions ()
 give the regions already stored in last dd image a coma separated list
Vector< String > listRegionsInImage ()
 a vector list
ImageRegion getRegion (const String &name)
 get an ImageRegion from active Image
void setRegionExtent (Int ext)
 Set current extension policy to use to for (subsequent) image region creation (and for printed region statistics): 0: Region should apply to viewed plane only.
ImageRegion lastRegion ()
 Return the last region created (via an image DD) with the mouse.
Bool hasRegion ()
void setShapeManager (QtRegionShapeManager *manager)
 Sets the region shape manager from QtDisplayPanelGui.
void registerRegionShape (RegionShape *rs)
 Register the given RegionShape on this display panel.
void unregisterRegionShape (RegionShape *rs)
 Unregister the given RegionShape on this display panel.
Bool isRegistered (RegionShape *rs)
 Returns true if the given RegionShape is registered on this display panel, false otherwise.
String suggestedRestoreFilename ()
 Suggest name for restore file (based on first-registered DD).
String dpState (String restorefilename="")
 Returns an xml String of displayPanel state.
virtual Bool savePanelState (String filename="", Bool overwrite=True)
 Save panel state to a file (as xml).
virtual Bool restorePanelState (String filename="")
 Restore panel state from a file or from lastSavedState_ if filename=="".
virtual Bool setPanelState (String xmlState="")
 set panel state from xml String (lastSavedState_, by default).
virtual Bool setPanelState (QDomDocument &restoredoc, QString restorefiledir="")
 [re]set panel state from a QDomDocument.
panel_state getPanelState () const
void setPanelState (const panel_state &)
void loadRegions (const std::string &path, const std::string &type)
 *new* Region code -- load casa (or DS9?) region files.
void revokeRegion (viewer::Region *r)
 *new* Region code -- revoke region from region source.
void activate (bool)
 called to indicate application activation state.
void setAllowBackToFront (Bool allowed=True)
void setUpdateAllowed (Bool allowed=True)
void pushCurrentDrawingState ()
void popCurrentDrawingState ()
float getLabelLineWidth ()
void setLabelLineWidth (float value)
float getTickLength ()
void setTickLength (float value)
void setLineWidthPS (Float &w)
void setBackgroundPS (String &w, String &c)
void beginLabelAndAxisCaching ()
void endLabelAndAxisCaching (QPainter &qp)

Static Public Member Functions

static String regionPathname (String origPath)
 Transform origPath to a plausible pathname for a new image region file.

Public Attributes

Bool printStats
Bool useRegion

Protected Types

enum  CursorBoundaryState {
  INSIDE_PLOT,
  OUTSIDE_PLOT
}
 

keep track or where the (USER) cursor currently is.

More...

Protected Slots

virtual void ddCreated_ (QtDisplayData *, Bool autoRegister, int position=-1, Bool csMaster=False)
 reacts to similar-named signals from QtViewer
virtual void ddRemoved_ (QtDisplayData *)
virtual void setAnimatorOptions_ (Record opts)
virtual void setAnimator_ (Record sarec)
virtual void setLen_ (Int len)
virtual void setZlen_ (Int len)
virtual void stop_ ()
virtual void goTo_ (Int frm)
virtual void goToZ_ (Int frm)
virtual void goToB_ (Int frm)
virtual void playStep_ ()
virtual void prev_ ()
virtual void next_ ()
virtual void chgMouseBtn_ (std::string tool, Int button)
 Connected to QtMouseToolState::mouseBtnChg() signal: changes button assignment for a mouse tool.
virtual void mouseRegionReady_ (Record mouseRegion, WorldCanvasHolder *)
 Connected to corresp.
virtual void reorientColorBars_ ()
virtual void checkColorBars_ ()
virtual void pcResizing_ ()
virtual void refreshTracking_ (QtDisplayData *qdd=0)
 triggered by internal dd change (not mouse movement; see operator()(WCMotionEvent) for that.
void clicked (Record)

Protected Member Functions

virtual void setupMouseTools_ (bool new_region_tools)
 Called during construction.
virtual void registerDD_ (QtDisplayData *qdd, int position=-1)
 The workhorse part of [un]registering; these do not send the highest-level signals.
virtual void unregisterDD_ (QtDisplayData *qdd)
virtual void installEventHandlers_ ()
 Maintain monitors of events on underlying canvases.
virtual void removeEventHandlers_ ()
virtual Bool myWC_ (const WorldCanvas *wc)
 Utility function: is the given wc one belonging to the main pd_?
virtual void arrangeColorBars_ (Bool reorient=False, Bool resizing=False)
 This routine corresponds to the old viewerdisplaypanel.g routine called 'arrangewedgerequirements'.
virtual void updateColorBarDDLists_ ()
 Update Lists of registered DDs which have color bar display activated (allColorBarDDs_ and colorBarDDsToDisplay_).
virtual Int marginb_ (QtDisplayData *dd, Float shrink=1.)
 Used by arrangeColorBars_().
virtual Float cbPanelSpace_ (QtDisplayData *dd)
 Used by arrangeColorBars_().
virtual void refreshCBPanels_ ()
 Refresh (only) the colorbar panels (if any).
virtual Bool ddFileMatch_ (const std::string &path, const std::string &dataType, const std::string &displayType, QtDisplayData *&dd, QString origrestorefile, QString restoredir)
 Tries to find existing DD (or create one from a file) that matches the given path.
void hideEvent (QHideEvent *ev)
void resizeEvent (QResizeEvent *ev)
 (emits Qt signal with QDP and PC sizes.

Protected Attributes

QtDisplayPanelGuipanel_
 central (unique) viewer object: for viewer-global state / methods.
PanelDisplaypd_
 'Main' panel of pc_, where qdds_ draw themselves.
QtPixelCanvas * pc_
 The entire display canvas for this object (the area with black (default) background).
DisplayDataHolderdisplayDataHolder
 QDDs registered on this QDP, in registration order.
viewer::RegionToolManagertoolmgr
MWCRTZoomerzoom_
MWCPannerToolpanner_
QtOldCrossToolocrosshair_
QtOldRectToolortregion_
QtOldEllipseTooloelregion_
QtOldPolyTooloptregion_
viewer::QtRegionSourceFactoryregion_source_factory
MWCPolylineToolpolyline_
MWCRulerlineToolrulerline_
MWCPositionVelocityToolpvtool_
PCITFiddlersnsFidd_
PCITFiddlerbncFidd_
Vector< String > mouseToolNames_
QTimer tmr_
Bool tracking_
Bool modeZ_
Int zLen_
Int bLen_
Int zIndex_
Int bIndex_
Int animRate_
Int minRate_
Int maxRate_
Int animating_
List< QtDisplayData * > allColorBarDDs_
 Registered QDDs which have color bar display activated (in registration order).
List< QtDisplayData * > colorBarDDsToDisplay_
 Subset of the list above: those which should actually display now (which would exclude, e.g., a DD which is 'off blink').
List< PanelDisplay * > colorBarPanels_
 Corresponding List of PanelDisplays in which color bars are placed -- one for each QDD in colorBarDDsToDisplay_.
PanelDisplayblankCBPanel_
 A panel that takes unused PC space in the colorbar area, if any.
Vector< Float > colorBarPanelSizes_
 Proportion of the pc_ that each color bar panel will use along the direction of colorbar thickness (e.g., along the horizontal axis for a vertical bar).
Float mainPanelSize_
 The portion of the PixelCanvas allocated to the main (image display) PanelDisplay (pd_);.
Int pcthsz_
 The following are used (only) by arrangeColorBars_() and its auxiliary routines, and are set for current conditions every time arrangeColorBars_() is called.
Int pclnsz_
Float marginUnit_
Int mrgna_
Int mrgnb_
Int lnmrgna_
Int lnmrgnb_
ImageRegion lastRgn_
 The last region created with a mouse tool.
String rgnImgPath_
 path (if any) to image of DD that produced the region (needed?)
Bool hasRgn_
 Has any such region (ever) been saved?
Int rgnExtent_
 Extension policy to use to for saved region (and for statistics: 0: Region applies to viewed plane only.
List< RegionShape * > rshapes_
 RegionShapes registered on this display panel, in registration order.
QtRegionShapeManagerqsm_
 Pointer to shape manager.
String lastSavedState_
 last saved state for this panel (this session -- "" if none).
WCMotionEventlastMotionEvent_
 last valid mouse motion event; for use by refreshTracking_() in case something besides mouse motion dictates that tracking data should be refreshed.
DParameterChoicebkgdClrOpt_
 User interface parsing object for background/foreground color.
String extChan_
 image region extension flags
String extPol_
CursorBoundaryState cursorBoundaryState

Private Types

enum  ColorBarIndex {
  ORIGIN,
  SIZE,
  LENGTH_SIDE_ORIGIN,
  LENGTH_SIDE_SIZE,
  MARGIN_A,
  MARGIN_B,
  LENGTH_SIDE_MARGIN_A,
  LENGTH_SIDE_MARGIN_B
}

Private Member Functions

void construct_ (QtPixelCanvas *canvas, const std::list< std::string > &args)
 portion of construction shared by multiple constructor functions.
void processTracking (const Record &trackingRec, const WCMotionEvent &ev)
 Sends a signal containing information about the data pinpointed by the mouse & displays flyover information about the data.
void setColorBarMargins (bool vertical, float plotPercentage, PanelDisplay *cbp, bool resizing)
 Estimates appropriate margins for the color bars in the long direction.
void setPanelGeometry (PanelDisplay *pd, float orgn, float siz)
 Stores the x-offset and side length of the passed in panel.
void setPanelMargins (PanelDisplay *pd, int marginA=LEFT_MARGIN_SPACE_DEFAULT, int marginB=RIGHT_MARGIN_SPACE_DEFAULT, int lengthMarginA=BOTTOM_MARGIN_SPACE_DEFAULT, int lengthMarginB=TOP_MARGIN_SPACE_DEFAULT)
 Sets the margins of the passed in panel to the indicated amounts.
void setLabelFontSize ()
void setMarginSize ()
 Attempts to set appropriate plot margins based on the number of plots that are displayed.
void initializeSettingsMap (bool vertical)
 Initializes the settings map based on whether the color bar is vertical or horizontal.
void plotCountChangeAdjustment ()
 Fixes a bug where the color bar disappears if the number of plots that are displayed decreases.

Private Attributes

const int PGP_MARGIN_UNIT
 An estimate for the number of pixels that correspond to one PGP plot unit.
std::map< ColorBarIndex, String > settingsMap
float oldPlotPercentage
 Used for coming up with estimates for the new font and margin sizes.
int oldPixelCanvasHeight
int oldPixelCanvasWidth
int oldRowCount
int oldColumnCount
Int zStart_
Int zEnd_
Int zStep_
Int bStart_
Int bEnd_
Int bStep_
std::stack< Record * > drawing_state

Static Private Attributes

static const int LEFT_MARGIN_SPACE_DEFAULT
 Default sizes for the margins.
static const int BOTTOM_MARGIN_SPACE_DEFAULT
static const int TOP_MARGIN_SPACE_DEFAULT
static const int RIGHT_MARGIN_SPACE_DEFAULT

Detailed Description

Definition at line 81 of file QtDisplayPanel.qo.h.


Member Enumeration Documentation

Enumerator:
ORIGIN 
SIZE 
LENGTH_SIDE_ORIGIN 
LENGTH_SIDE_SIZE 
MARGIN_A 
MARGIN_B 
LENGTH_SIDE_MARGIN_A 
LENGTH_SIDE_MARGIN_B 

Definition at line 1161 of file QtDisplayPanel.qo.h.

included in cursor boundary signals.

.\.

Enumerator:
ENTER 
LEAVE 

Definition at line 91 of file QtDisplayPanel.qo.h.

keep track or where the (USER) cursor currently is.

.\.

Enumerator:
INSIDE_PLOT 
OUTSIDE_PLOT 

Definition at line 1063 of file QtDisplayPanel.qo.h.


Constructor & Destructor Documentation

casa::QtDisplayPanel::QtDisplayPanel ( QtDisplayPanelGui panel,
const QtDisplayPanel other,
QWidget *  parent = 0,
const std::list< std::string > &  args = std::list< std::string >() 
)
casa::QtDisplayPanel::QtDisplayPanel ( QtDisplayPanelGui panel,
QWidget *  parent = 0,
const std::list< std::string > &  args = std::list< std::string >() 
)
casa::QtDisplayPanel::~QtDisplayPanel (  ) 

Member Function Documentation

void casa::QtDisplayPanel::activate ( Record   )  [signal]
void casa::QtDisplayPanel::activate ( bool   ) 

called to indicate application activation state.

.. true -> activated, false -> deactivated

void casa::QtDisplayPanel::allDDsRegistered (  )  [signal]
void casa::QtDisplayPanel::allDDsUnregistered (  )  [signal]
virtual Int casa::QtDisplayPanel::animating (  )  [inline, virtual]
void casa::QtDisplayPanel::animatorChange (  )  [signal]

Referenced by emitAnimState().

virtual Int casa::QtDisplayPanel::animRate (  )  [inline, virtual]

Definition at line 314 of file QtDisplayPanel.qo.h.

References animRate_.

virtual void casa::QtDisplayPanel::arrangeColorBars_ ( Bool  reorient = False,
Bool  resizing = False 
) [protected, virtual]

This routine corresponds to the old viewerdisplaypanel.g routine called 'arrangewedgerequirements'.

It responds to events which may require change to the relative placement or number of colorbars and their panels. 'reorient' is True if color bars are changing from horizontal to vertical (or vise versa); it helps determine how much action (if any) this routine needs to take. Only the pcResizing_() slot should set resizing=True; in this case, arrangeColorBars_ lets the PC take care of refresh.

Referenced by checkColorBars_(), pcResizing_(), and reorientColorBars_().

void casa::QtDisplayPanel::beginLabelAndAxisCaching (  )  [inline]

Definition at line 1095 of file QtDisplayPanel.qo.h.

References pc_.

DisplayDataHolder::DisplayDataIterator casa::QtDisplayPanel::beginRegistered (  )  const

Manipulation of the QtDisplayData's.

virtual Int casa::QtDisplayPanel::bEnd (  )  [inline, virtual]

Definition at line 298 of file QtDisplayPanel.qo.h.

References bEnd_.

Referenced by endFrame().

virtual Int casa::QtDisplayPanel::bIndex (  )  [inline, virtual]

Definition at line 275 of file QtDisplayPanel.qo.h.

References bIndex_.

Referenced by index().

virtual Int casa::QtDisplayPanel::bStart (  )  [inline, virtual]

Definition at line 285 of file QtDisplayPanel.qo.h.

References bStart_.

Referenced by startFrame(), and toImageMovieStart().

virtual Int casa::QtDisplayPanel::bStep (  )  [inline, virtual]

Definition at line 310 of file QtDisplayPanel.qo.h.

References bStep_.

Referenced by step().

QSize casa::QtDisplayPanel::canvasSize (  )  [inline, slot]

Returns the pixel canvas's current size.

Definition at line 589 of file QtDisplayPanel.qo.h.

References pc_.

virtual Float casa::QtDisplayPanel::cbPanelSpace_ ( QtDisplayData dd  )  [protected, virtual]

Used by arrangeColorBars_().

Return the nominal proportion of the PixelCanvas to use for dd's colorbar panel. (This is allocated along the direction of the colorbar's thickness; in the direction its length the panel uses the entire PC size).

virtual void casa::QtDisplayPanel::checkColorBars_ (  )  [inline, protected, virtual, slot]

Definition at line 775 of file QtDisplayPanel.qo.h.

References arrangeColorBars_(), and casacore::False.

virtual void casa::QtDisplayPanel::chgMouseBtn_ ( std::string  tool,
Int  button 
) [protected, virtual, slot]

Connected to QtMouseToolState::mouseBtnChg() signal: changes button assignment for a mouse tool.

void casa::QtDisplayPanel::clicked ( Record   )  [protected, slot]
void casa::QtDisplayPanel::construct_ ( QtPixelCanvas *  canvas,
const std::list< std::string > &  args 
) [private]

portion of construction shared by multiple constructor functions.

..

virtual QPixmap* casa::QtDisplayPanel::contents (  )  [inline, virtual]

Return a QPixmap* with a copy of currently-displayed widget contents.

Caller is responsible for deleting.

Definition at line 184 of file QtDisplayPanel.qo.h.

References pc_.

void casa::QtDisplayPanel::creatingRstrDoc ( QDomDocument *  restoredoc  )  [signal]

Emitted when creating a restore xml doc.

QtDisplayPanelGui (in particular) can process by adding intormation to restoredoc.

void casa::QtDisplayPanel::cursorBoundary ( QtDisplayPanel::CursorBoundaryCondition   )  [signal]

signal cursor boundary transitions

void casa::QtDisplayPanel::cursorPosition ( viewer::Position   )  [signal]
virtual void casa::QtDisplayPanel::ddCreated_ ( QtDisplayData ,
Bool  autoRegister,
int  position = -1,
Bool  csMaster = False 
) [protected, virtual, slot]

reacts to similar-named signals from QtViewer

virtual Bool casa::QtDisplayPanel::ddFileMatch_ ( const std::string &  path,
const std::string &  dataType,
const std::string &  displayType,
QtDisplayData *&  dd,
QString  origrestorefile,
QString  restoredir 
) [protected, virtual]

Tries to find existing DD (or create one from a file) that matches the given path.

Used for restoring DDs from a restore file. Several directories are checked, not just the one in path, to provide flexibility. If dd is non-zero, it is tested for suitability to path, datatype and displaytype. If dd is zero, the filesystem is searched and an attempt is made to create dd from a matching file (if any); if creation succeeds, dd will contain the new DD. Note: the DD will _not_ be registered automatically. origrestorefile and (current) restoredir aid in locating data files relative to the current restore file location.

virtual void casa::QtDisplayPanel::ddRemoved_ ( QtDisplayData  )  [protected, virtual, slot]
void casa::QtDisplayPanel::dpHidden ( QtDisplayPanel dp  )  [signal]

Emitted when this QDP is hidden (closed).

Referenced by hideEvent().

String casa::QtDisplayPanel::dpState ( String  restorefilename = ""  ) 

Returns an xml String of displayPanel state.

This includes registered DDs and their options, panel options, animation and zoom state, etc. (QtDisplayPanelGui adds some gui/window state to this, and has file-saving interface). If a restorefilename where you intend to store the state is given, it will be set as attribute 'restorefile' of the root node. This allows data files to be moved and still restored later, relative to the restore file location.

virtual void casa::QtDisplayPanel::emitAnimState (  )  [inline, virtual, slot]

Definition at line 543 of file QtDisplayPanel.qo.h.

References animatorChange().

virtual Int casa::QtDisplayPanel::endFrame (  )  [inline, virtual]

Definition at line 292 of file QtDisplayPanel.qo.h.

References bEnd(), modeZ(), and zEnd().

Referenced by lastFrame().

void casa::QtDisplayPanel::endLabelAndAxisCaching ( QPainter &  qp  )  [inline]

Definition at line 1098 of file QtDisplayPanel.qo.h.

References pc_.

DisplayDataHolder::DisplayDataIterator casa::QtDisplayPanel::endRegistered (  )  const
void casa::QtDisplayPanel::extendRegion ( String  ,
String   
) [slot]

respond to region manager to set ImageRegion extension

virtual Int casa::QtDisplayPanel::frame (  )  [inline, virtual]

Definition at line 266 of file QtDisplayPanel.qo.h.

References index().

virtual void casa::QtDisplayPanel::fwdPlayChannelMovie (  )  [virtual, slot]
virtual void casa::QtDisplayPanel::fwdPlayImageMovie (  )  [virtual, slot]
virtual void casa::QtDisplayPanel::fwdStepChannelMovie (  )  [inline, virtual, slot]

Definition at line 499 of file QtDisplayPanel.qo.h.

References next_(), setMode(), and stop_().

virtual void casa::QtDisplayPanel::fwdStepImageMovie (  )  [inline, virtual, slot]

Definition at line 504 of file QtDisplayPanel.qo.h.

References next_(), setMode(), and stop_().

virtual QPixmap* casa::QtDisplayPanel::getBackBuffer (  )  [inline, virtual]

Definition at line 187 of file QtDisplayPanel.qo.h.

References pc_.

QtDisplayData* casa::QtDisplayPanel::getChannelDD ( int  index  )  const

Returns the DD that will be animating the channels in normal mode.

QtDisplayData* casa::QtDisplayPanel::getControllingDD (  )  const
DisplayDataHolder* casa::QtDisplayPanel::getDataHolder (  )  const
QtDisplayData* casa::QtDisplayPanel::getDD ( const DisplayData dd  )  const
QtDisplayData* casa::QtDisplayPanel::getDD ( const std::string &  name  )  const
float casa::QtDisplayPanel::getLabelLineWidth (  ) 
virtual Record casa::QtDisplayPanel::getOptions (  )  [virtual]

Return Options record (of margins and no.

-of-panels settings, e.g.) The form of the record is suitable for automatically creating controlling user interface. These options are set with the corresponding setOptions() slot (below).

Referenced by casa::QtCanvasManagerOptions::QtCanvasManagerOptions().

panel_state casa::QtDisplayPanel::getPanelState (  )  const
ImageRegion casa::QtDisplayPanel::getRegion ( const String &  name  ) 

get an ImageRegion from active Image

QtDisplayData* casa::QtDisplayPanel::getRegistered ( int  index  ) 
int casa::QtDisplayPanel::getRegisteredCount (  )  const
float casa::QtDisplayPanel::getTickLength (  ) 
virtual void casa::QtDisplayPanel::goTo ( int  frm,
bool  channelFrame = false 
) [inline, virtual, slot]
virtual void casa::QtDisplayPanel::goTo_ ( Int  frm  )  [inline, protected, virtual, slot]

Definition at line 740 of file QtDisplayPanel.qo.h.

References goToB_(), goToZ_(), and modeZ().

virtual void casa::QtDisplayPanel::goToB ( int  frm  )  [virtual, slot]

Referenced by goTo(), and goToImage().

virtual void casa::QtDisplayPanel::goToB_ ( Int  frm  )  [protected, virtual, slot]

Referenced by goTo_().

void casa::QtDisplayPanel::goToChannel ( int  channel  )  [inline, slot]

Definition at line 528 of file QtDisplayPanel.qo.h.

References goToZ().

void casa::QtDisplayPanel::goToImage ( int  image  )  [inline, slot]

Definition at line 529 of file QtDisplayPanel.qo.h.

References goToB().

virtual void casa::QtDisplayPanel::goToZ ( int  frm  )  [virtual, slot]

Referenced by goTo(), and goToChannel().

virtual void casa::QtDisplayPanel::goToZ_ ( Int  frm  )  [protected, virtual, slot]

Referenced by goTo_().

Bool casa::QtDisplayPanel::hasRegion (  )  [inline]

Definition at line 376 of file QtDisplayPanel.qo.h.

References hasRgn_.

void casa::QtDisplayPanel::hideEvent ( QHideEvent *  ev  )  [inline, protected]

Definition at line 877 of file QtDisplayPanel.qo.h.

References dpHidden().

virtual void casa::QtDisplayPanel::hold (  )  [virtual]

Hold and release of refresh.

In order to draw, every call to hold() must be accompanied by a subsequent call to release() (so don't neglect: beware of exceptions, e.g.). Calls can nest (they are counted). Panel may be deleted in a held state. Also, excess calls to release() will have no effect. The calls are propagated to the main PanelDisplay as well as to those used for color bars (and thence to their WorldCanvases).

void casa::QtDisplayPanel::imageRegionReady ( ImageRegion  imgRegion,
String  ddName 
) [signal]

Higher-level (ImageRegion) signal.

ddName is the name() of a registered [Lattice] QDD which conforms to the panel's current state (see DD:conformsTo()) and can compute true-region information from the latest 'mouse tool region event'. The ImageRegion parameter has the dimensions [and CS] of the DD's Image (currently, only Image PADDs are supported). It will correspond to the 2-D mouse region on its display axes. On 'animator' and 'hidden' axes (if any), the region will be 1 element wide, positioned at the current 'slice' for each of these axes.

virtual Int casa::QtDisplayPanel::index (  )  [inline, virtual]

Definition at line 269 of file QtDisplayPanel.qo.h.

References bIndex(), modeZ(), and zIndex().

Referenced by frame().

void casa::QtDisplayPanel::initializeSettingsMap ( bool  vertical  )  [private]

Initializes the settings map based on whether the color bar is vertical or horizontal.

virtual void casa::QtDisplayPanel::installEventHandlers_ (  )  [protected, virtual]

Maintain monitors of events on underlying canvases.

Called during construction/destruction, or when the set of canvases might change.

bool casa::QtDisplayPanel::isCoordinateMaster ( QtDisplayData displayData  )  const [virtual]

Implements casa::ImageDisplayer.

Bool casa::QtDisplayPanel::isEmptyRegistered (  )  const
Bool casa::QtDisplayPanel::isRegistered ( RegionShape rs  ) 

Returns true if the given RegionShape is registered on this display panel, false otherwise.

virtual Bool casa::QtDisplayPanel::isRegistered ( QtDisplayData  )  [virtual]

True if DD is on our list.

(It may _not_ be on viewer's list any longer, in particular when reacting to ddRemoved signal). Either qdd pointer or its name can be given.

virtual Int casa::QtDisplayPanel::lastFrame (  )  [inline, virtual]

Definition at line 289 of file QtDisplayPanel.qo.h.

References endFrame().

Referenced by toChannelMovieEnd(), and toImageMovieEnd().

ImageRegion casa::QtDisplayPanel::lastRegion (  )  [inline]

Return the last region created (via an image DD) with the mouse.

Definition at line 372 of file QtDisplayPanel.qo.h.

References lastRgn_.

String casa::QtDisplayPanel::listRegions (  ) 

give the regions already stored in last dd image a coma separated list

Vector<String> casa::QtDisplayPanel::listRegionsInImage (  ) 

a vector list

void casa::QtDisplayPanel::loadRegions ( const std::string &  path,
const std::string &  type 
)

*new* Region code -- load casa (or DS9?) region files.

.\.

void casa::QtDisplayPanel::lowerBoundAnimatorChannelChanged ( int   )  [slot]
void casa::QtDisplayPanel::lowerBoundAnimatorImageChanged ( int   )  [slot]
virtual Int casa::QtDisplayPanel::marginb_ ( QtDisplayData dd,
Float  shrink = 1. 
) [protected, virtual]

Used by arrangeColorBars_().

Return the margin to give to dd's colorbar panel on the side where colorbar labelling is done (right margin for vertical bars, e.g.). shrink will usually be 1.; in rare cases where many colorbars are crowding the main panel and each other, it may be less (and then the returned margin allowance may also be less than ideal...).

virtual Int casa::QtDisplayPanel::maxRate (  )  [inline, virtual]

Definition at line 320 of file QtDisplayPanel.qo.h.

References maxRate_.

virtual Int casa::QtDisplayPanel::minRate (  )  [inline, virtual]

Definition at line 317 of file QtDisplayPanel.qo.h.

References minRate_.

virtual String casa::QtDisplayPanel::mode (  )  [inline, virtual]

Definition at line 252 of file QtDisplayPanel.qo.h.

References modeZ().

virtual Bool casa::QtDisplayPanel::modeZ (  )  [inline, virtual]

Definition at line 249 of file QtDisplayPanel.qo.h.

References modeZ_.

Referenced by endFrame(), goTo(), goTo_(), index(), mode(), nFrames(), setLen_(), startFrame(), and step().

void casa::QtDisplayPanel::mouseRegionReady ( Record  mouseRegion,
WorldCanvasHolder  
) [signal]

This raw mouse region signal is probably less useful to connect to than the ones processed through the DDs (below), which contain true 'image regions'.

virtual void casa::QtDisplayPanel::mouseRegionReady_ ( Record  mouseRegion,
WorldCanvasHolder  
) [protected, virtual, slot]

Connected to corresp.

signals from 'region' mouse tools. Emits that signal verbatum, but also processes it through the registered DDs, and emits higher-level 'Image Regions' from those DDs which can create one from the 'mouse region' record.

virtual Vector<String> casa::QtDisplayPanel::mouseToolNames (  )  [inline, virtual]

Return names of resident mouse tools (order is a suggestion for order in gui).

Definition at line 212 of file QtDisplayPanel.qo.h.

References mouseToolNames_.

virtual Bool casa::QtDisplayPanel::myWC_ ( const WorldCanvas wc  )  [protected, virtual]

Utility function: is the given wc one belonging to the main pd_?

virtual Int casa::QtDisplayPanel::nBFrames (  )  [inline, virtual]

Definition at line 262 of file QtDisplayPanel.qo.h.

References bLen_.

Referenced by nFrames().

void casa::QtDisplayPanel::newRegion ( String  imagePath  )  [signal]

Emitted when a new ImageRegion has been stored internally (in lastRgn_).

It can be saved to disk with saveLastRegion().

void casa::QtDisplayPanel::newRegisteredDD ( QtDisplayData  )  [signal]
void casa::QtDisplayPanel::newUnregisteredDD ( QtDisplayData  )  [signal]
virtual void casa::QtDisplayPanel::next_ (  )  [protected, virtual, slot]
virtual Int casa::QtDisplayPanel::nFrames (  )  [inline, virtual]

Definition at line 256 of file QtDisplayPanel.qo.h.

References modeZ(), nBFrames(), and nZFrames().

Int casa::QtDisplayPanel::nPanels (  )  [inline]

Return total number of (main) subpanels (e.g.

12 for 3x4-panel display).

Definition at line 236 of file QtDisplayPanel.qo.h.

References casa::MultiWCHolder::nWCHs(), and pd_.

virtual Int casa::QtDisplayPanel::nZFrames (  )  [inline, virtual]

Definition at line 259 of file QtDisplayPanel.qo.h.

References zLen_.

Referenced by nFrames().

void casa::QtDisplayPanel::oldDDRegistered ( QtDisplayData  )  [signal]

signals from registration methods.

If you connect to any of these registrationChange signals and/or to ddCreated or ddRemoved signals (from QtViewerBase), the following are true when the slot is invoked: Any removed QDD still exists until after the signal's _directly_ connected slots have returned. Any new QDD has been created before the corresp. signal is emitted. The list of existing QDDs (QtViewerBase::dds()) and [un]registered QDDS (registeredDDs(), unregisteredDDs()) reflect the new state.

However, if you connect to a registrationChange signal _and_ to ddCreated or ddRemoved, it is not certain which slot will be invoked first.

void casa::QtDisplayPanel::oldDDUnregistered ( QtDisplayData  )  [signal]
void casa::QtDisplayPanel::operator() ( const PCPositionEvent pev  )  [inline, virtual]

This callback method is automatically registered with the appropriate PC object, and is not intended for general use (it has a similar role to a protected, self-connected slot).

Reimplemented from casa::PCPositionEH.

Definition at line 228 of file QtDisplayPanel.qo.h.

References casa::Display::K_space, casa::PCPositionEvent::key(), and tracking_.

virtual void casa::QtDisplayPanel::operator() ( const WCMotionEvent ev  )  [virtual]

This callback method is automatically registered with the appropriate objects, and is not intended for general use (it has a similar role to a protected, self-connected slot).

Overrides (null) base WCMotionEH operator to forward cursor position tracking events from any of the panel's WorldCanvases as Qt signals.

Implements casa::WCMotionEH.

void casa::QtDisplayPanel::optionsChanged ( Record  chgOpt  )  [signal]

signal from option setting (probably unused at present).

virtual PanelDisplay* casa::QtDisplayPanel::panelDisplay (  )  [inline, virtual]

Return underlying library PanelDisplay (used by Annotations, e.g.

) (You better know what you're doing if you reach underneath the Qt layer. You are responsible for consistency between the layers, etc...).

Definition at line 194 of file QtDisplayPanel.qo.h.

References pd_.

virtual void casa::QtDisplayPanel::pcResizing_ (  )  [inline, protected, virtual, slot]

Definition at line 778 of file QtDisplayPanel.qo.h.

References arrangeColorBars_(), casacore::False, and casacore::True.

virtual void casa::QtDisplayPanel::playStep_ (  )  [inline, protected, virtual, slot]

Definition at line 747 of file QtDisplayPanel.qo.h.

References animating_, next_(), and prev_().

void casa::QtDisplayPanel::plotCountChangeAdjustment (  )  [private]

Fixes a bug where the color bar disappears if the number of plots that are displayed decreases.

void casa::QtDisplayPanel::popCurrentDrawingState (  ) 
virtual void casa::QtDisplayPanel::prev_ (  )  [protected, virtual, slot]
void casa::QtDisplayPanel::processTracking ( const Record &  trackingRec,
const WCMotionEvent ev 
) [private]

Sends a signal containing information about the data pinpointed by the mouse & displays flyover information about the data.

void casa::QtDisplayPanel::pushCurrentDrawingState (  ) 
virtual void casa::QtDisplayPanel::refresh (  )  [inline, virtual, slot]

Refresh everything: main panel and colorbar panels (if any).

Definition at line 596 of file QtDisplayPanel.qo.h.

References pd_, casa::MultiWCHolder::refresh(), and refreshCBPanels_().

virtual void casa::QtDisplayPanel::refreshCBPanels_ (  )  [protected, virtual]

Refresh (only) the colorbar panels (if any).

(An attempt to reduce flashing during blink animation).

Referenced by refresh().

virtual void casa::QtDisplayPanel::refreshTracking_ ( QtDisplayData qdd = 0  )  [protected, virtual, slot]

triggered by internal dd change (not mouse movement; see operator()(WCMotionEvent) for that.

)

static String casa::QtDisplayPanel::regionPathname ( String  origPath  )  [static]

Transform origPath to a plausible pathname for a new image region file.

Assures the filename ends in '.rgn' and that no such file already exists.

virtual void casa::QtDisplayPanel::registerAll ( List< QtDisplayData * >  registerDatas  )  [virtual, slot]
virtual void casa::QtDisplayPanel::registerDD ( QtDisplayData ,
int  postion = -1 
) [virtual, slot]

Register / unregister [all] DDs created by user through QtViewer.

Implements casa::ImageDisplayer.

virtual void casa::QtDisplayPanel::registerDD_ ( QtDisplayData qdd,
int  position = -1 
) [protected, virtual]

The workhorse part of [un]registering; these do not send the highest-level signals.

Called internally when the DD is new or being removed, or from corresponding public methods.

void casa::QtDisplayPanel::RegisteredDDRemoved ( QtDisplayData  )  [signal]
void casa::QtDisplayPanel::registerRegionShape ( RegionShape rs  ) 

Register the given RegionShape on this display panel.

void casa::QtDisplayPanel::registrationChange (  )  [signal]
void casa::QtDisplayPanel::registrationOrderChanged (  )  [virtual]

Reorders panels in response to a change in the registration order.

Implements casa::ImageDisplayer.

virtual void casa::QtDisplayPanel::release (  )  [virtual]
virtual void casa::QtDisplayPanel::removeEventHandlers_ (  )  [protected, virtual]
void casa::QtDisplayPanel::removeRegionInImage ( String  regname  ) 

Delete the region regname from last registered image does not care if its RegionHandler::Masks or RegionHandler::Regions.

virtual void casa::QtDisplayPanel::reorientColorBars_ (  )  [inline, protected, virtual, slot]

Definition at line 772 of file QtDisplayPanel.qo.h.

References arrangeColorBars_(), and casacore::True.

virtual void casa::QtDisplayPanel::resetCrosshair (  )  [virtual, slot]
virtual void casa::QtDisplayPanel::resetETRegion (  )  [virtual, slot]
virtual void casa::QtDisplayPanel::resetPanner (  )  [virtual, slot]
virtual void casa::QtDisplayPanel::resetPolyline (  )  [virtual, slot]
virtual void casa::QtDisplayPanel::resetPTRegion (  )  [virtual, slot]
virtual void casa::QtDisplayPanel::resetRegionTools (  )  [virtual, slot]
virtual void casa::QtDisplayPanel::resetRTRegion (  )  [virtual, slot]

(Will remove mouse-tools' own visual feedback from screen; usually called after selection has been processed).

virtual void casa::QtDisplayPanel::resetSelectionTools (  )  [virtual, slot]
virtual void casa::QtDisplayPanel::resetTool ( String  toolname  )  [virtual, slot]
virtual void casa::QtDisplayPanel::resetTools (  )  [virtual, slot]
virtual void casa::QtDisplayPanel::resetZoomer (  )  [virtual, slot]
void casa::QtDisplayPanel::resized ( QSize  panelSize,
QSize  canvasSize 
) [signal]

Emitted when the panel has been resized.

void casa::QtDisplayPanel::resizeEvent ( QResizeEvent *  ev  )  [protected]

(emits Qt signal with QDP and PC sizes.

(You probably really want to take action on QPC resizeEvents (based on QPC size) instead...))

virtual Bool casa::QtDisplayPanel::restorePanelState ( String  filename = ""  )  [virtual]

Restore panel state from a file or from lastSavedState_ if filename=="".

void casa::QtDisplayPanel::restoring ( QDomDocument *  restoredoc  )  [signal]

Emitted when restoring panel state from an xml doc.

QtDisplayPanelGui (in particular) can respond by setting its own state from certain elements of restoredoc.

void casa::QtDisplayPanel::revokeRegion ( viewer::Region r  ) 

*new* Region code -- revoke region from region source.

.\.

Referenced by casa::QtDisplayPanelGui::revokeRegion().

virtual void casa::QtDisplayPanel::revPlayChannelMovie (  )  [virtual, slot]
virtual void casa::QtDisplayPanel::revPlayImageMovie (  )  [virtual, slot]
virtual void casa::QtDisplayPanel::revStepChannelMovie (  )  [inline, virtual, slot]

Definition at line 489 of file QtDisplayPanel.qo.h.

References prev_(), setMode(), and stop_().

virtual void casa::QtDisplayPanel::revStepImageMovie (  )  [inline, virtual, slot]

Definition at line 494 of file QtDisplayPanel.qo.h.

References prev_(), setMode(), and stop_().

Bool casa::QtDisplayPanel::saveLastRegion ( String  path  ) 

Save the last region created (via an image DD) with the mouse.

Return value indicates success. (The ImageRegion is transformed to a TableRecord then saved via AipsIO).

virtual Bool casa::QtDisplayPanel::savePanelState ( String  filename = "",
Bool  overwrite = True 
) [virtual]

Save panel state to a file (as xml).

State is also stored to an internal lastSavedState_ String (only there, if filename==""). By default, the file will be overwritten if necessary.

String casa::QtDisplayPanel::saveRegionInImage ( String  regname,
const ImageRegion &  imreg 
)

same as above except it is saved in the last registered image as a keyword

void casa::QtDisplayPanel::setAllowBackToFront ( Bool  allowed = True  )  [inline]

Definition at line 1076 of file QtDisplayPanel.qo.h.

References pc_.

virtual void casa::QtDisplayPanel::setAnimator_ ( Record  sarec  )  [protected, virtual, slot]
virtual void casa::QtDisplayPanel::setAnimatorOptions_ ( Record  opts  )  [protected, virtual, slot]
void casa::QtDisplayPanel::setBackgroundPS ( String &  w,
String &  c 
)
virtual void casa::QtDisplayPanel::setBlen_ ( Int  len  )  [virtual, slot]

Referenced by setLen_().

void casa::QtDisplayPanel::setChannelMovieRate ( int   )  [slot]

virtual void setRate(int rate);

void casa::QtDisplayPanel::setColorBarMargins ( bool  vertical,
float  plotPercentage,
PanelDisplay cbp,
bool  resizing 
) [private]

Estimates appropriate margins for the color bars in the long direction.

Parameters:
vertical True if the long side of the color bar is in the vertical direction.
plotPercentage a float giving the approximate percentage of the screen real estate that will be reserved for plots (as opposed to the color bars).
cbp the PanelDisplay containing the color bar
resizing a boolean that will be true if the calculation was triggered by the screen size changing.
void casa::QtDisplayPanel::setControllingDD ( QtDisplayData controllingDD  )  [virtual]

Implements casa::ImageDisplayer.

void casa::QtDisplayPanel::setImageMovieRate ( int   )  [slot]
void casa::QtDisplayPanel::setLabelFontSize (  )  [private]
void casa::QtDisplayPanel::setLabelLineWidth ( float  value  ) 
virtual void casa::QtDisplayPanel::setLen_ ( Int  len  )  [inline, protected, virtual, slot]

Definition at line 732 of file QtDisplayPanel.qo.h.

References modeZ(), setBlen_(), and setZlen_().

void casa::QtDisplayPanel::setLineWidthPS ( Float &  w  ) 
void casa::QtDisplayPanel::setMarginSize (  )  [private]

Attempts to set appropriate plot margins based on the number of plots that are displayed.

virtual void casa::QtDisplayPanel::setMode ( String  mode  )  [inline, virtual, slot]

Definition at line 474 of file QtDisplayPanel.qo.h.

References casacore::downcase(), and setMode().

virtual void casa::QtDisplayPanel::setMode ( bool  modez,
bool  channelCubes = false 
) [virtual, slot]
virtual void casa::QtDisplayPanel::setOptions ( Record  opts,
Bool  emitAll = False 
) [virtual, slot]

Set display panel options such as margins or number of panels.

The form of the record (along with current settings) is returned by getOptions(). (These Records are an older form of 'parameter sets' which are used in various places within the display library). Set emitAll = True if the call was not initiated by the options gui itself (e.g. via scripting or save-restore); that will assure that the options gui does receive all option updates (via the optionsChanged signal) and updates its user interface accordingly.

void casa::QtDisplayPanel::setPanelGeometry ( PanelDisplay pd,
float  orgn,
float  siz 
) [private]

Stores the x-offset and side length of the passed in panel.

Parameters:
pd the PanelDisplay whose geometry will be set.
orgn the offset of the panel
siz the side length of the panel.
void casa::QtDisplayPanel::setPanelMargins ( PanelDisplay pd,
int  marginA = LEFT_MARGIN_SPACE_DEFAULT,
int  marginB = RIGHT_MARGIN_SPACE_DEFAULT,
int  lengthMarginA = BOTTOM_MARGIN_SPACE_DEFAULT,
int  lengthMarginB = TOP_MARGIN_SPACE_DEFAULT 
) [private]

Sets the margins of the passed in panel to the indicated amounts.

Parameters:
marginA in PGP plot units.
marginB in PGP plot units.
lengthMarginA in PGP plot units.
lengthMarginB in PGP plot units.
void casa::QtDisplayPanel::setPanelState ( const panel_state  ) 
virtual Bool casa::QtDisplayPanel::setPanelState ( QDomDocument &  restoredoc,
QString  restorefiledir = "" 
) [virtual]

[re]set panel state from a QDomDocument.

virtual Bool casa::QtDisplayPanel::setPanelState ( String  xmlState = ""  )  [virtual]

set panel state from xml String (lastSavedState_, by default).

void casa::QtDisplayPanel::setRegionExtent ( Int  ext  )  [inline]

Set current extension policy to use to for (subsequent) image region creation (and for printed region statistics): 0: Region should apply to viewed plane only.

1: Extend to all channels (iff spectral axis not on display). 2: Extend along all non-displayed axes. (The mouse polygon/rectangle always determines the region on the displayed axes).

The default policy is 0.

Definition at line 367 of file QtDisplayPanel.qo.h.

References casacore::max(), casacore::min(), and rgnExtent_.

void casa::QtDisplayPanel::setShapeManager ( QtRegionShapeManager manager  ) 

Sets the region shape manager from QtDisplayPanelGui.

void casa::QtDisplayPanel::setTickLength ( float  value  ) 
void casa::QtDisplayPanel::setUpdateAllowed ( Bool  allowed = True  )  [inline]

Definition at line 1080 of file QtDisplayPanel.qo.h.

References pc_.

virtual void casa::QtDisplayPanel::setupMouseTools_ ( bool  new_region_tools  )  [protected, virtual]

Called during construction.

virtual void casa::QtDisplayPanel::setZlen_ ( Int  len  )  [protected, virtual, slot]

Referenced by setLen_().

virtual Int casa::QtDisplayPanel::startFrame (  )  [inline, virtual]

Definition at line 279 of file QtDisplayPanel.qo.h.

References bStart(), modeZ(), and zStart().

virtual Int casa::QtDisplayPanel::step (  )  [inline, virtual]

Definition at line 304 of file QtDisplayPanel.qo.h.

References bStep(), modeZ(), and zStep().

void casa::QtDisplayPanel::stepSizeAnimatorChannelChanged ( int   )  [slot]
void casa::QtDisplayPanel::stepSizeAnimatorImageChanged ( int   )  [slot]
virtual void casa::QtDisplayPanel::stop_ (  )  [protected, virtual, slot]
virtual void casa::QtDisplayPanel::stopChannelMovie (  )  [virtual, slot]
virtual void casa::QtDisplayPanel::stopImageMovie (  )  [virtual, slot]
String casa::QtDisplayPanel::suggestedRestoreFilename (  ) 

Suggest name for restore file (based on first-registered DD).

virtual void casa::QtDisplayPanel::toChannelMovieEnd (  )  [inline, virtual, slot]

Definition at line 481 of file QtDisplayPanel.qo.h.

References goTo(), lastFrame(), and setMode().

void casa::QtDisplayPanel::toChannelMovieStart (  )  [inline, slot]

Definition at line 478 of file QtDisplayPanel.qo.h.

References goTo(), and zStart().

virtual void casa::QtDisplayPanel::toImageMovieEnd (  )  [inline, virtual, slot]

Definition at line 485 of file QtDisplayPanel.qo.h.

References goTo(), lastFrame(), and setMode().

void casa::QtDisplayPanel::toImageMovieStart (  )  [inline, slot]

Definition at line 479 of file QtDisplayPanel.qo.h.

References bStart(), and goTo().

viewer::RegionToolManager* casa::QtDisplayPanel::toolMgr (  )  [inline, slot]

Definition at line 602 of file QtDisplayPanel.qo.h.

References toolmgr.

void casa::QtDisplayPanel::trackingInfo ( Record  trackingRec  )  [signal]

signal from cursor position tracking.

The field names are the names of registered QDDs with tracking info; corresponding values are Strings with the formatted tracking information.

virtual void casa::QtDisplayPanel::unregisterAll (  )  [virtual, slot]
virtual void casa::QtDisplayPanel::unregisterDD ( QtDisplayData  )  [virtual, slot]

Implements casa::ImageDisplayer.

virtual void casa::QtDisplayPanel::unregisterDD_ ( QtDisplayData qdd  )  [protected, virtual]
void casa::QtDisplayPanel::UnregisteredDDRemoved ( QtDisplayData  )  [signal]
void casa::QtDisplayPanel::unregisterRegionShape ( RegionShape rs  ) 

Unregister the given RegionShape on this display panel.

virtual void casa::QtDisplayPanel::unzoom (  )  [inline, virtual, slot]

Definition at line 580 of file QtDisplayPanel.qo.h.

References casa::MWCRTZoomer::unzoom(), and zoom_.

virtual void casa::QtDisplayPanel::updateColorBarDDLists_ (  )  [protected, virtual]

Update Lists of registered DDs which have color bar display activated (allColorBarDDs_ and colorBarDDsToDisplay_).

Used by arrangeColorBars_().

void casa::QtDisplayPanel::upperBoundAnimatorChannelChanged ( int   )  [slot]
void casa::QtDisplayPanel::upperBoundAnimatorImageChanged ( int   )  [slot]
Bool casa::QtDisplayPanel::worldToLin ( Vector< Double > &  lin,
const Vector< Double > &  world 
) [slot]
virtual Int casa::QtDisplayPanel::zEnd (  )  [inline, virtual]

Definition at line 295 of file QtDisplayPanel.qo.h.

References zEnd_.

Referenced by endFrame().

virtual Int casa::QtDisplayPanel::zIndex (  )  [inline, virtual]

Definition at line 272 of file QtDisplayPanel.qo.h.

References zIndex_.

Referenced by index().

virtual void casa::QtDisplayPanel::zoom ( const Vector< Double > &  blc,
const Vector< Double > &  trc 
) [inline, virtual, slot]

Definition at line 577 of file QtDisplayPanel.qo.h.

References casa::MWCRTZoomer::zoom(), and zoom_.

virtual void casa::QtDisplayPanel::zoomIn ( Double  fctr = 2.  )  [inline, virtual, slot]

Expose Zoomer functions: zoom in/out, zoom out to whole image.

Definition at line 571 of file QtDisplayPanel.qo.h.

References zoom_, and casa::MWCRTZoomer::zoomIn().

virtual void casa::QtDisplayPanel::zoomOut ( Double  fctr = 2.  )  [inline, virtual, slot]

Definition at line 574 of file QtDisplayPanel.qo.h.

References zoom_, and casa::MWCRTZoomer::zoomOut().

virtual Int casa::QtDisplayPanel::zStart (  )  [inline, virtual]

Definition at line 282 of file QtDisplayPanel.qo.h.

References zStart_.

Referenced by startFrame(), and toChannelMovieStart().

virtual Int casa::QtDisplayPanel::zStep (  )  [inline, virtual]

Definition at line 307 of file QtDisplayPanel.qo.h.

References zStep_.

Referenced by step().


Member Data Documentation

Registered QDDs which have color bar display activated (in registration order).

See arrangeColorBars_() and updateColorBarDDLists_().

Definition at line 954 of file QtDisplayPanel.qo.h.

Definition at line 946 of file QtDisplayPanel.qo.h.

Referenced by animating(), and playStep_().

Definition at line 943 of file QtDisplayPanel.qo.h.

Referenced by animRate().

Definition at line 1197 of file QtDisplayPanel.qo.h.

Referenced by bEnd().

Definition at line 941 of file QtDisplayPanel.qo.h.

Referenced by bIndex().

User interface parsing object for background/foreground color.

(Used in get/setOptions(), shows up in QDPG's 'Panel Display Options' window).

Definition at line 1054 of file QtDisplayPanel.qo.h.

A panel that takes unused PC space in the colorbar area, if any.

just to see that it's cleared when appropriate.

Definition at line 970 of file QtDisplayPanel.qo.h.

Int casa::QtDisplayPanel::bLen_ [protected]

Definition at line 940 of file QtDisplayPanel.qo.h.

Referenced by nBFrames().

Definition at line 925 of file QtDisplayPanel.qo.h.

Definition at line 1189 of file QtDisplayPanel.qo.h.

Definition at line 1197 of file QtDisplayPanel.qo.h.

Referenced by bStart().

Definition at line 1197 of file QtDisplayPanel.qo.h.

Referenced by bStep().

Subset of the list above: those which should actually display now (which would exclude, e.g., a DD which is 'off blink').

These DDs are ordered so that in multipanel blink displays the order of images in panels is the same as the display order of their corresponding colorbars.

Definition at line 961 of file QtDisplayPanel.qo.h.

Corresponding List of PanelDisplays in which color bars are placed -- one for each QDD in colorBarDDsToDisplay_.

Assignment of QDDs to panels is maintained in the order of list above.

Definition at line 966 of file QtDisplayPanel.qo.h.

Vector<Float> casa::QtDisplayPanel::colorBarPanelSizes_ [protected]

Proportion of the pc_ that each color bar panel will use along the direction of colorbar thickness (e.g., along the horizontal axis for a vertical bar).

arrangeColorBars_() gets nominal sizes for colorbar panels from cbPanelSpace_(), and that is usually what they get.

Definition at line 976 of file QtDisplayPanel.qo.h.

Definition at line 1064 of file QtDisplayPanel.qo.h.

QDDs registered on this QDP, in registration order.

(List of _all_ (user-loaded) QDDs is v_->dds()). List<QtDisplayData*> qdds_;

Definition at line 903 of file QtDisplayPanel.qo.h.

std::stack<Record*> casa::QtDisplayPanel::drawing_state [private]

Definition at line 1199 of file QtDisplayPanel.qo.h.

String casa::QtDisplayPanel::extChan_ [protected]

image region extension flags

Definition at line 1059 of file QtDisplayPanel.qo.h.

String casa::QtDisplayPanel::extPol_ [protected]

Definition at line 1060 of file QtDisplayPanel.qo.h.

Has any such region (ever) been saved?

Definition at line 1007 of file QtDisplayPanel.qo.h.

Referenced by hasRegion().

last valid mouse motion event; for use by refreshTracking_() in case something besides mouse motion dictates that tracking data should be refreshed.

Definition at line 1045 of file QtDisplayPanel.qo.h.

ImageRegion casa::QtDisplayPanel::lastRgn_ [protected]

The last region created with a mouse tool.

Definition at line 1001 of file QtDisplayPanel.qo.h.

Referenced by lastRegion().

last saved state for this panel (this session -- "" if none).

Used for fast 'clipboard' save-restore. (Note: No user interface for this yet...).

Definition at line 1036 of file QtDisplayPanel.qo.h.

Default sizes for the margins.

Definition at line 1188 of file QtDisplayPanel.qo.h.

Definition at line 994 of file QtDisplayPanel.qo.h.

Definition at line 994 of file QtDisplayPanel.qo.h.

The portion of the PixelCanvas allocated to the main (image display) PanelDisplay (pd_);.

Definition at line 980 of file QtDisplayPanel.qo.h.

Definition at line 993 of file QtDisplayPanel.qo.h.

Definition at line 944 of file QtDisplayPanel.qo.h.

Referenced by maxRate().

Definition at line 944 of file QtDisplayPanel.qo.h.

Referenced by minRate().

Bool casa::QtDisplayPanel::modeZ_ [protected]

Definition at line 939 of file QtDisplayPanel.qo.h.

Referenced by modeZ().

Vector<String> casa::QtDisplayPanel::mouseToolNames_ [protected]

Definition at line 928 of file QtDisplayPanel.qo.h.

Referenced by mouseToolNames().

Definition at line 994 of file QtDisplayPanel.qo.h.

Definition at line 994 of file QtDisplayPanel.qo.h.

Definition at line 912 of file QtDisplayPanel.qo.h.

Definition at line 914 of file QtDisplayPanel.qo.h.

Definition at line 1185 of file QtDisplayPanel.qo.h.

Definition at line 1182 of file QtDisplayPanel.qo.h.

Definition at line 1183 of file QtDisplayPanel.qo.h.

Used for coming up with estimates for the new font and margin sizes.

Definition at line 1181 of file QtDisplayPanel.qo.h.

Definition at line 1184 of file QtDisplayPanel.qo.h.

Definition at line 915 of file QtDisplayPanel.qo.h.

Definition at line 913 of file QtDisplayPanel.qo.h.

central (unique) viewer object: for viewer-global state / methods.

Definition at line 888 of file QtDisplayPanel.qo.h.

Definition at line 910 of file QtDisplayPanel.qo.h.

QtPixelCanvas* casa::QtDisplayPanel::pc_ [protected]

The entire display canvas for this object (the area with black (default) background).

Definition at line 895 of file QtDisplayPanel.qo.h.

Referenced by beginLabelAndAxisCaching(), canvasSize(), contents(), endLabelAndAxisCaching(), getBackBuffer(), setAllowBackToFront(), and setUpdateAllowed().

Definition at line 992 of file QtDisplayPanel.qo.h.

The following are used (only) by arrangeColorBars_() and its auxiliary routines, and are set for current conditions every time arrangeColorBars_() is called.

The margins (in 'pgp chars') are set onto the colorbar panels. PixelCanvas current sizes are in screen pixels. marginUnit_ is 1/65 of the PC's minimum dimansion. 'ln' and 'th' refer to the directions along the colorbar's length and thickness, respectively; 'ln' corresponds to vertical / horizontal according to the current orientation of color bars. mrgna_, mrgnb_ are margins in the colorbar thickness direction; mrgnb_ is where labelling occurs.

Definition at line 992 of file QtDisplayPanel.qo.h.

'Main' panel of pc_, where qdds_ draw themselves.

Definition at line 891 of file QtDisplayPanel.qo.h.

Referenced by nPanels(), panelDisplay(), and refresh().

An estimate for the number of pixels that correspond to one PGP plot unit.

Definition at line 1160 of file QtDisplayPanel.qo.h.

Definition at line 919 of file QtDisplayPanel.qo.h.

Definition at line 1070 of file QtDisplayPanel.qo.h.

Referenced by casa::QtDisplayPanelGui::setStatsPrint().

Definition at line 922 of file QtDisplayPanel.qo.h.

Pointer to shape manager.

(within this class, please do not assume qsm_ has been set.)

Definition at line 1027 of file QtDisplayPanel.qo.h.

Definition at line 917 of file QtDisplayPanel.qo.h.

Extension policy to use to for saved region (and for statistics: 0: Region applies to viewed plane only.

1: Extend to all channels (iff spectral axis not on display). 2: Extend along all non-displayed axes. (The mouse polygon/rectangle always determines the region on the displayed axes).

Definition at line 1015 of file QtDisplayPanel.qo.h.

Referenced by setRegionExtent().

path (if any) to image of DD that produced the region (needed?)

Definition at line 1004 of file QtDisplayPanel.qo.h.

Definition at line 1191 of file QtDisplayPanel.qo.h.

RegionShapes registered on this display panel, in registration order.

Definition at line 1023 of file QtDisplayPanel.qo.h.

Definition at line 921 of file QtDisplayPanel.qo.h.

Definition at line 1165 of file QtDisplayPanel.qo.h.

Definition at line 924 of file QtDisplayPanel.qo.h.

QTimer casa::QtDisplayPanel::tmr_ [protected]

Definition at line 932 of file QtDisplayPanel.qo.h.

Definition at line 906 of file QtDisplayPanel.qo.h.

Referenced by toolMgr().

Definition at line 1190 of file QtDisplayPanel.qo.h.

Definition at line 934 of file QtDisplayPanel.qo.h.

Referenced by operator()().

Definition at line 1072 of file QtDisplayPanel.qo.h.

Referenced by casa::QtDisplayPanelGui::setUseRegion().

Definition at line 1196 of file QtDisplayPanel.qo.h.

Referenced by zEnd().

Definition at line 941 of file QtDisplayPanel.qo.h.

Referenced by zIndex().

Int casa::QtDisplayPanel::zLen_ [protected]

Definition at line 940 of file QtDisplayPanel.qo.h.

Referenced by nZFrames().

Definition at line 909 of file QtDisplayPanel.qo.h.

Referenced by unzoom(), zoom(), zoomIn(), and zoomOut().

Definition at line 1196 of file QtDisplayPanel.qo.h.

Referenced by zStart().

Definition at line 1196 of file QtDisplayPanel.qo.h.

Referenced by zStep().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1