casa
$Rev:20696$
|
#include <QtDisplayPanel.qo.h>
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 |
QtDisplayData * | getDD (const std::string &name) const |
DisplayDataHolder * | getDataHolder () 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 PanelDisplay * | panelDisplay () |
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< 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 | 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 | |
QtDisplayPanelGui * | panel_ |
central (unique) viewer object: for viewer-global state / methods. | |
PanelDisplay * | pd_ |
'Main' panel of pc_, where qdds_ draw themselves. | |
QtPixelCanvas * | pc_ |
The entire display canvas for this object (the area with black (default) background). | |
DisplayDataHolder * | displayDataHolder |
QDDs registered on this QDP, in registration order. | |
viewer::RegionToolManager * | toolmgr |
MWCRTZoomer * | zoom_ |
MWCPannerTool * | panner_ |
QtOldCrossTool * | ocrosshair_ |
QtOldRectTool * | ortregion_ |
QtOldEllipseTool * | oelregion_ |
QtOldPolyTool * | optregion_ |
viewer::QtRegionSourceFactory * | region_source_factory |
MWCPolylineTool * | polyline_ |
MWCRulerlineTool * | rulerline_ |
MWCPositionVelocityTool * | pvtool_ |
PCITFiddler * | snsFidd_ |
PCITFiddler * | bncFidd_ |
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_. | |
PanelDisplay * | blankCBPanel_ |
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. | |
QtRegionShapeManager * | qsm_ |
Pointer to shape manager. | |
String | lastSavedState_ |
last saved state for this panel (this session -- "" if none). | |
WCMotionEvent * | lastMotionEvent_ |
last valid mouse motion event; for use by refreshTracking_() in case something besides mouse motion dictates that tracking data should be refreshed. | |
DParameterChoice * | bkgdClrOpt_ |
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, 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_ |
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 |
Definition at line 79 of file QtDisplayPanel.qo.h.
enum casa::QtDisplayPanel::ColorBarIndex [private] |
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...
Definition at line 89 of file QtDisplayPanel.qo.h.
enum casa::QtDisplayPanel::CursorBoundaryState [protected] |
keep track or where the (USER) cursor currently is...
Definition at line 907 of file QtDisplayPanel.qo.h.
casa::QtDisplayPanel::QtDisplayPanel | ( | QtDisplayPanelGui * | panel, |
QWidget * | parent = 0 , |
||
const std::list< std::string > & | args = std::list< std::string >() |
||
) |
void casa::QtDisplayPanel::activate | ( | bool | ) |
called to indicate application activation state...
true -> activated, false -> deactivated
void casa::QtDisplayPanel::activate | ( | Record | ) | [signal] |
void casa::QtDisplayPanel::allDDsRegistered | ( | ) | [signal] |
void casa::QtDisplayPanel::allDDsUnregistered | ( | ) | [signal] |
virtual Int casa::QtDisplayPanel::animating | ( | ) | [inline, virtual] |
Definition at line 243 of file QtDisplayPanel.qo.h.
References animating_.
Referenced by casa::QtDisplayPanelGui::fwdPlay_(), and casa::QtDisplayPanelGui::revPlay_().
void casa::QtDisplayPanel::animatorChange | ( | ) | [signal] |
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_().
void casa::QtDisplayPanel::beginLabelAndAxisCaching | ( | ) | [inline] |
Definition at line 929 of file QtDisplayPanel.qo.h.
References pc_.
Manipulation of the QtDisplayData's.
virtual Int casa::QtDisplayPanel::bEnd | ( | ) | [inline, virtual] |
virtual Int casa::QtDisplayPanel::bIndex | ( | ) | [inline, virtual] |
virtual Int casa::QtDisplayPanel::bStart | ( | ) | [inline, virtual] |
virtual Int casa::QtDisplayPanel::bStep | ( | ) | [inline, virtual] |
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.
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 | ||
) | [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 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_.
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 220 of file QtDisplayPanel.qo.h.
References index().
virtual void casa::QtDisplayPanel::fwdPlay | ( | ) | [virtual, slot] |
Referenced by casa::QtDisplayPanelGui::fwdPlay_().
virtual void casa::QtDisplayPanel::fwdStep | ( | ) | [inline, virtual, slot] |
Definition at line 391 of file QtDisplayPanel.qo.h.
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 |
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::QtCanvasManager::QtCanvasManager().
ImageRegion casa::QtDisplayPanel::getRegion | ( | const String & | name | ) |
get an ImageRegion from active Image
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 596 of file QtDisplayPanel.qo.h.
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_().
Bool casa::QtDisplayPanel::hasRegion | ( | ) | [inline] |
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] |
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::isEmptyRegistered | ( | ) | const |
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.
Returns true if the given RegionShape is registered on this display panel, false otherwise.
virtual Int casa::QtDisplayPanel::lastFrame | ( | ) | [inline, virtual] |
ImageRegion casa::QtDisplayPanel::lastRegion | ( | ) | [inline] |
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...
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 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] |
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] |
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().
Int casa::QtDisplayPanel::nPanels | ( | ) | [inline] |
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] |
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] |
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_().
void casa::QtDisplayPanel::plotCountChangeAdjustment | ( | ) | [private] |
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.
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] |
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 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.
void casa::QtDisplayPanel::revokeRegion | ( | viewer::Region * | r | ) |
new Region code -- revoke region from region source...
Referenced by casa::QtDisplayPanelGui::revokeRegion().
virtual void casa::QtDisplayPanel::revPlay | ( | ) | [virtual, slot] |
Referenced by casa::QtDisplayPanelGui::revPlay_().
virtual void casa::QtDisplayPanel::revStep | ( | ) | [inline, virtual, slot] |
Definition at line 390 of file QtDisplayPanel.qo.h.
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 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] |
void casa::QtDisplayPanel::setBackgroundPS | ( | String & | w, |
String & | c | ||
) |
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.
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] |
Reimplemented from casa::ImageDisplayer.
void casa::QtDisplayPanel::setLabelFontSize | ( | ) | [private] |
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_().
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 | ( | 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.
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.
marginA | in PGP plot units. |
marginB | in PGP plot units. |
lengthMarginA | in PGP plot units. |
lengthMarginB | in 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.
void casa::QtDisplayPanel::setPanelState | ( | const panel_state & | ) |
virtual void casa::QtDisplayPanel::setRate | ( | int | rate | ) | [virtual, slot] |
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 285 of file QtDisplayPanel.qo.h.
References casa::max(), casa::min(), and rgnExtent_.
void casa::QtDisplayPanel::setShapeManager | ( | QtRegionShapeManager * | manager | ) |
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] |
virtual Int casa::QtDisplayPanel::step | ( | ) | [inline, virtual] |
Definition at line 236 of file QtDisplayPanel.qo.h.
void casa::QtDisplayPanel::stepSizeAnimatorChannelChanged | ( | int | ) | [slot] |
void casa::QtDisplayPanel::stepSizeAnimatorImageChanged | ( | int | ) | [slot] |
virtual void casa::QtDisplayPanel::stop | ( | ) | [virtual, slot] |
Referenced by casa::QtDisplayPanelGui::fwdPlay_(), and casa::QtDisplayPanelGui::revPlay_().
virtual void casa::QtDisplayPanel::stop_ | ( | ) | [protected, virtual, slot] |
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] |
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 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_().
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] |
virtual Int casa::QtDisplayPanel::zIndex | ( | ) | [inline, virtual] |
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] |
virtual Int casa::QtDisplayPanel::zStep | ( | ) | [inline, virtual] |
List<QtDisplayData*> casa::QtDisplayPanel::allColorBarDDs_ [protected] |
Registered QDDs which have color bar display activated (in registration order).
See arrangeColorBars_() and updateColorBarDDLists_().
Definition at line 798 of file QtDisplayPanel.qo.h.
Int casa::QtDisplayPanel::animating_ [protected] |
Definition at line 790 of file QtDisplayPanel.qo.h.
Referenced by animating(), and playStep_().
Int casa::QtDisplayPanel::animRate_ [protected] |
Definition at line 787 of file QtDisplayPanel.qo.h.
Referenced by animRate().
Int casa::QtDisplayPanel::bEnd_ [private] |
Definition at line 1023 of file QtDisplayPanel.qo.h.
Referenced by bEnd().
Int casa::QtDisplayPanel::bIndex_ [protected] |
Definition at line 785 of file QtDisplayPanel.qo.h.
Referenced by bIndex().
DParameterChoice* casa::QtDisplayPanel::bkgdClrOpt_ [protected] |
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.
PanelDisplay* casa::QtDisplayPanel::blankCBPanel_ [protected] |
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.
Int casa::QtDisplayPanel::bLen_ [protected] |
Definition at line 784 of file QtDisplayPanel.qo.h.
Referenced by nBFrames().
PCITFiddler* casa::QtDisplayPanel::bncFidd_ [protected] |
Definition at line 769 of file QtDisplayPanel.qo.h.
const int casa::QtDisplayPanel::BOTTOM_MARGIN_SPACE_DEFAULT [static, private] |
Definition at line 1015 of file QtDisplayPanel.qo.h.
Int casa::QtDisplayPanel::bStart_ [private] |
Definition at line 1023 of file QtDisplayPanel.qo.h.
Referenced by bStart().
Int casa::QtDisplayPanel::bStep_ [private] |
Definition at line 1023 of file QtDisplayPanel.qo.h.
Referenced by bStep().
List<QtDisplayData*> casa::QtDisplayPanel::colorBarDDsToDisplay_ [protected] |
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.
List<PanelDisplay*> casa::QtDisplayPanel::colorBarPanels_ [protected] |
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.
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 820 of file QtDisplayPanel.qo.h.
Definition at line 908 of file QtDisplayPanel.qo.h.
DisplayDataHolder* casa::QtDisplayPanel::displayDataHolder [protected] |
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.
String casa::QtDisplayPanel::extChan_ [protected] |
image region extension flags
Definition at line 903 of file QtDisplayPanel.qo.h.
String casa::QtDisplayPanel::extPol_ [protected] |
Definition at line 904 of file QtDisplayPanel.qo.h.
Bool casa::QtDisplayPanel::hasRgn_ [protected] |
Has any such region (ever) been saved?
Definition at line 851 of file QtDisplayPanel.qo.h.
Referenced by hasRegion().
WCMotionEvent* casa::QtDisplayPanel::lastMotionEvent_ [protected] |
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.
ImageRegion casa::QtDisplayPanel::lastRgn_ [protected] |
The last region created with a mouse tool.
Definition at line 845 of file QtDisplayPanel.qo.h.
Referenced by lastRegion().
String casa::QtDisplayPanel::lastSavedState_ [protected] |
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.
const int casa::QtDisplayPanel::LEFT_MARGIN_SPACE_DEFAULT [static, private] |
Default sizes for the margins.
Definition at line 1014 of file QtDisplayPanel.qo.h.
Int casa::QtDisplayPanel::lnmrgna_ [protected] |
Definition at line 838 of file QtDisplayPanel.qo.h.
Int casa::QtDisplayPanel::lnmrgnb_ [protected] |
Definition at line 838 of file QtDisplayPanel.qo.h.
Float casa::QtDisplayPanel::mainPanelSize_ [protected] |
The portion of the PixelCanvas allocated to the main (image display) PanelDisplay (pd_);.
Definition at line 824 of file QtDisplayPanel.qo.h.
Float casa::QtDisplayPanel::marginUnit_ [protected] |
Definition at line 837 of file QtDisplayPanel.qo.h.
Int casa::QtDisplayPanel::maxRate_ [protected] |
Definition at line 788 of file QtDisplayPanel.qo.h.
Referenced by maxRate().
Int casa::QtDisplayPanel::minRate_ [protected] |
Definition at line 788 of file QtDisplayPanel.qo.h.
Referenced by minRate().
Bool casa::QtDisplayPanel::modeZ_ [protected] |
Definition at line 783 of file QtDisplayPanel.qo.h.
Referenced by modeZ().
Vector<String> casa::QtDisplayPanel::mouseToolNames_ [protected] |
Int casa::QtDisplayPanel::mrgna_ [protected] |
Definition at line 838 of file QtDisplayPanel.qo.h.
Int casa::QtDisplayPanel::mrgnb_ [protected] |
Definition at line 838 of file QtDisplayPanel.qo.h.
QtOldCrossTool* casa::QtDisplayPanel::ocrosshair_ [protected] |
Definition at line 756 of file QtDisplayPanel.qo.h.
QtOldEllipseTool* casa::QtDisplayPanel::oelregion_ [protected] |
Definition at line 758 of file QtDisplayPanel.qo.h.
int casa::QtDisplayPanel::oldColumnCount [private] |
Definition at line 1011 of file QtDisplayPanel.qo.h.
int casa::QtDisplayPanel::oldPixelCanvasHeight [private] |
Definition at line 1008 of file QtDisplayPanel.qo.h.
int casa::QtDisplayPanel::oldPixelCanvasWidth [private] |
Definition at line 1009 of file QtDisplayPanel.qo.h.
float casa::QtDisplayPanel::oldPlotPercentage [private] |
Used for coming up with estimates for the new font and margin sizes.
Definition at line 1007 of file QtDisplayPanel.qo.h.
int casa::QtDisplayPanel::oldRowCount [private] |
Definition at line 1010 of file QtDisplayPanel.qo.h.
QtOldPolyTool* casa::QtDisplayPanel::optregion_ [protected] |
Definition at line 759 of file QtDisplayPanel.qo.h.
QtOldRectTool* casa::QtDisplayPanel::ortregion_ [protected] |
Definition at line 757 of file QtDisplayPanel.qo.h.
QtDisplayPanelGui* casa::QtDisplayPanel::panel_ [protected] |
central (unique) viewer object: for viewer-global state / methods.
Definition at line 732 of file QtDisplayPanel.qo.h.
MWCPannerTool* casa::QtDisplayPanel::panner_ [protected] |
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().
Int casa::QtDisplayPanel::pclnsz_ [protected] |
Definition at line 836 of file QtDisplayPanel.qo.h.
Int casa::QtDisplayPanel::pcthsz_ [protected] |
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.
PanelDisplay* casa::QtDisplayPanel::pd_ [protected] |
'Main' panel of pc_, where qdds_ draw themselves.
Definition at line 735 of file QtDisplayPanel.qo.h.
Referenced by nPanels(), panelDisplay(), and refresh().
const int casa::QtDisplayPanel::PGP_MARGIN_UNIT [private] |
An estimate for the number of pixels that correspond to one PGP plot unit.
Definition at line 987 of file QtDisplayPanel.qo.h.
MWCPolylineTool* casa::QtDisplayPanel::polyline_ [protected] |
Definition at line 763 of file QtDisplayPanel.qo.h.
Definition at line 914 of file QtDisplayPanel.qo.h.
Referenced by casa::QtDisplayPanelGui::setStatsPrint().
MWCPositionVelocityTool* casa::QtDisplayPanel::pvtool_ [protected] |
Definition at line 766 of file QtDisplayPanel.qo.h.
QtRegionShapeManager* casa::QtDisplayPanel::qsm_ [protected] |
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.
Int casa::QtDisplayPanel::rgnExtent_ [protected] |
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().
String casa::QtDisplayPanel::rgnImgPath_ [protected] |
path (if any) to image of DD that produced the region (needed?)
Definition at line 848 of file QtDisplayPanel.qo.h.
const int casa::QtDisplayPanel::RIGHT_MARGIN_SPACE_DEFAULT [static, private] |
Definition at line 1017 of file QtDisplayPanel.qo.h.
List<RegionShape*> casa::QtDisplayPanel::rshapes_ [protected] |
RegionShapes registered on this display panel, in registration order.
Definition at line 867 of file QtDisplayPanel.qo.h.
MWCRulerlineTool* casa::QtDisplayPanel::rulerline_ [protected] |
Definition at line 765 of file QtDisplayPanel.qo.h.
std::map<ColorBarIndex,String> casa::QtDisplayPanel::settingsMap [private] |
Definition at line 991 of file QtDisplayPanel.qo.h.
PCITFiddler* casa::QtDisplayPanel::snsFidd_ [protected] |
Definition at line 768 of file QtDisplayPanel.qo.h.
QTimer casa::QtDisplayPanel::tmr_ [protected] |
Definition at line 776 of file QtDisplayPanel.qo.h.
viewer::RegionToolManager* casa::QtDisplayPanel::toolmgr [protected] |
Definition at line 750 of file QtDisplayPanel.qo.h.
const int casa::QtDisplayPanel::TOP_MARGIN_SPACE_DEFAULT [static, private] |
Definition at line 1016 of file QtDisplayPanel.qo.h.
Bool casa::QtDisplayPanel::tracking_ [protected] |
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().
Int casa::QtDisplayPanel::zEnd_ [private] |
Definition at line 1022 of file QtDisplayPanel.qo.h.
Referenced by zEnd().
Int casa::QtDisplayPanel::zIndex_ [protected] |
Definition at line 785 of file QtDisplayPanel.qo.h.
Referenced by zIndex().
Int casa::QtDisplayPanel::zLen_ [protected] |
Definition at line 784 of file QtDisplayPanel.qo.h.
Referenced by nZFrames().
MWCRTZoomer* casa::QtDisplayPanel::zoom_ [protected] |
Int casa::QtDisplayPanel::zStart_ [private] |
Definition at line 1022 of file QtDisplayPanel.qo.h.
Referenced by zStart().
Int casa::QtDisplayPanel::zStep_ [private] |
Definition at line 1022 of file QtDisplayPanel.qo.h.
Referenced by zStep().