casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes
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)
virtual void toStart ()
virtual void toEnd ()
virtual void revStep ()
virtual void fwdStep ()
virtual void revPlay ()
virtual void stop ()
virtual void fwdPlay ()
virtual void setRate (int rate)
void lowerBoundAnimatorImageChanged (int)
void upperBoundAnimatorImageChanged (int)
void stepSizeAnimatorImageChanged (int)
void lowerBoundAnimatorChannelChanged (int)
void upperBoundAnimatorChannelChanged (int)
void stepSizeAnimatorChannelChanged (int)
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)

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, QWidget *parent=0, const std::list< std::string > &args=std::list< std::string >())
 ~QtDisplayPanel ()
Bool isEmptyRegistered () const
DisplayDataHolder::DisplayDataIterator beginRegistered () const
 Manipulation of the QtDisplayData's.
DisplayDataHolder::DisplayDataIterator endRegistered () const
QtDisplayDatagetDD (const std::string &name) const
DisplayDataHoldergetDataHolder () const
void setControllingDD (QtDisplayData *controllingDD)
virtual Bool isRegistered (QtDisplayData *)
 True if DD is on our list.
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.) (You better know what you're doing if you reach underneath the Qt layer.
virtual void hold ()
 Hold and release of refresh.
virtual void release ()
virtual Vector< StringmouseToolNames ()
 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< StringlistRegionsInImage ()
 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 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)
 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< StringmouseToolNames_
 
   

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< FloatcolorBarPanelSizes_
 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 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, StringsettingsMap
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_

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 79 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 988 of file QtDisplayPanel.qo.h.

included in cursor boundary signals...

Enumerator:
ENTER 
LEAVE 

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

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

Enumerator:
INSIDE_PLOT 
OUTSIDE_PLOT 

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


Constructor & Destructor Documentation

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

Member Function Documentation

called to indicate application activation state...

true -> activated, false -> deactivated

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

Referenced by emitAnimState().

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

Definition at line 240 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_().

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

References pc_.

Manipulation of the QtDisplayData's.

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

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

References bEnd_.

Referenced by endFrame().

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

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

References bIndex_.

Referenced by index().

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

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

References bStart_.

Referenced by startFrame().

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

Definition at line 238 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 450 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 624 of file QtDisplayPanel.qo.h.

References arrangeColorBars_(), and casa::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]
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 159 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.

signal cursor boundary transitions

virtual void casa::QtDisplayPanel::ddCreated_ ( QtDisplayData ,
Bool  autoRegister 
) [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]

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 413 of file QtDisplayPanel.qo.h.

References animatorChange().

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

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

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

Referenced by lastFrame().

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

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

References pc_.

respond to region manager to set ImageRegion extension

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

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

References index().

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

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

References next_(), and stop_().

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

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

References pc_.

QtDisplayData* casa::QtDisplayPanel::getDD ( const std::string &  name) const

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::QtCanvasManager::QtCanvasManager().

get an ImageRegion from active Image

virtual void casa::QtDisplayPanel::goTo ( int  frm,
bool  channelFrame = false 
) [inline, virtual, slot]

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

References goToB(), goToZ(), and modeZ().

Referenced by toEnd(), and toStart().

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

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

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

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

Referenced by goTo().

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

Referenced by goTo_().

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

Referenced by goTo().

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

Referenced by goTo_().

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

References hasRgn_.

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

Definition at line 722 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 221 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.

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.

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

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

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

References endFrame().

Referenced by toEnd().

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

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

References lastRgn_.

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

a vector list

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

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

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 242 of file QtDisplayPanel.qo.h.

References maxRate_.

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

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

References minRate_.

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

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

References modeZ().

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

Definition at line 213 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 181 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 218 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().

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

Referenced by fwdStep(), and playStep_().

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

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

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

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

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

12 for 3x4-panel display).

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

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

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

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

References zLen_.

Referenced by nFrames().

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.

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::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 195 of file QtDisplayPanel.qo.h.

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

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 165 of file QtDisplayPanel.qo.h.

References pd_.

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

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

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

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

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

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

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

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

Referenced by playStep_(), and revStep().

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.

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

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

Definition at line 455 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.

Register the given RegionShape on this display panel.

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

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 623 of file QtDisplayPanel.qo.h.

References arrangeColorBars_(), and casa::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.

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

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

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

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

References prev_(), and stop_().

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.

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 920 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]

    

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

Referenced by setLen_().

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:
verticalTrue if the long side of the color bar is in the vertical direction.
plotPercentagea float giving the approximate percentage of the screen real estate that will be reserved for plots (as opposed to the color bars).
cbpthe PanelDisplay containing the color bar
resizinga boolean that will be true if the calculation was triggered by the screen size changing.
void casa::QtDisplayPanel::setControllingDD ( QtDisplayData controllingDD) [virtual]

Reimplemented from casa::ImageDisplayer.

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

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

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

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

virtual void casa::QtDisplayPanel::setMode ( bool  modez,
bool  channelCubes = false 
) [virtual, slot]
virtual void casa::QtDisplayPanel::setMode ( String  mode) [inline, virtual, slot]

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

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

Referenced by setMode().

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:
pdthe PanelDisplay whose geometry will be set.
orgnthe offset of the panel
sizthe 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:
marginAin PGP plot units.
marginBin PGP plot units.
lengthMarginAin PGP plot units.
lengthMarginBin PGP plot units.
virtual Bool casa::QtDisplayPanel::setPanelState ( String  xmlState = "") [virtual]

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

virtual Bool casa::QtDisplayPanel::setPanelState ( QDomDocument &  restoredoc,
QString  restorefiledir = "" 
) [virtual]

[re]set panel state from a QDomDocument.

virtual void casa::QtDisplayPanel::setRate ( int  rate) [virtual, slot]

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 285 of file QtDisplayPanel.qo.h.

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

Sets the region shape manager from QtDisplayPanelGui.

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

Definition at line 923 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 225 of file QtDisplayPanel.qo.h.

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

Referenced by toStart().

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

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

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

virtual void casa::QtDisplayPanel::stop ( ) [virtual, slot]
virtual void casa::QtDisplayPanel::stop_ ( ) [protected, virtual, slot]

Referenced by fwdStep(), and revStep().

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

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

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

References goTo(), and lastFrame().

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

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

References goTo(), and startFrame().

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]

Unregister the given RegionShape on this display panel.

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

Definition at line 443 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_().

Bool casa::QtDisplayPanel::worldToLin ( Vector< Double > &  lin,
const Vector< Double > &  world 
) [slot]

   

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

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

References zEnd_.

Referenced by endFrame().

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

Definition at line 222 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 441 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 439 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 440 of file QtDisplayPanel.qo.h.

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

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

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

References zStart_.

Referenced by startFrame().

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

Definition at line 237 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 798 of file QtDisplayPanel.qo.h.

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

Referenced by animating(), and playStep_().

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

Referenced by animRate().

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

Referenced by bEnd().

Definition at line 785 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 898 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 814 of file QtDisplayPanel.qo.h.

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

Referenced by nBFrames().

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

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

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

Referenced by bStart().

Definition at line 1023 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 805 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 810 of file QtDisplayPanel.qo.h.

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 820 of file QtDisplayPanel.qo.h.

Definition at line 908 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 747 of file QtDisplayPanel.qo.h.

image region extension flags

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

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

Has any such region (ever) been saved?

Definition at line 851 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 889 of file QtDisplayPanel.qo.h.

The last region created with a mouse tool.

Definition at line 845 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 880 of file QtDisplayPanel.qo.h.

Default sizes for the margins.

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

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

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

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

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

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

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

Referenced by maxRate().

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

Referenced by minRate().

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

Referenced by modeZ().

   

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

Referenced by mouseToolNames().

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Definition at line 754 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 739 of file QtDisplayPanel.qo.h.

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

Definition at line 836 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 836 of file QtDisplayPanel.qo.h.

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

Definition at line 735 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 987 of file QtDisplayPanel.qo.h.

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

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

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

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

Pointer to shape manager.

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

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

Definition at line 761 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 859 of file QtDisplayPanel.qo.h.

Referenced by setRegionExtent().

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

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

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

RegionShapes registered on this display panel, in registration order.

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

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

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

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

QTimer casa::QtDisplayPanel::tmr_ [protected]

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

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

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

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

Referenced by operator()().

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

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

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

Referenced by zEnd().

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

Referenced by zIndex().

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

Referenced by nZFrames().

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

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

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

Referenced by zStart().

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

Referenced by zStep().


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