casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Slots | Signals | Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Slots | Private Member Functions | Private Attributes | Friends
casa::QtDisplayPanelGui Class Reference

The main display window for the Qt version of the viewer. More...

#include <QtDisplayPanelGui.qo.h>

Inheritance diagram for casa::QtDisplayPanelGui:
casa::QtPanelBase casa::viewer::StatusSink casa::QtCleanPanelGui

List of all members.

Public Types

enum  SCRIPTING_OPTION {
  INTERACT,
  SETOPTIONS
}
typedef std::list
< viewer::Region * > 
region_list_t

Public Slots

virtual void setColorBarOrientation (Bool vertical)
 At least for now, colorbars can only be placed horizontally or vertically, identically for all display panels.
virtual QtDisplayPanelGuicreateNewPanel ()
virtual void showDataManager ()
virtual void hideDataManager ()
virtual void showExportManager ()
virtual void hideExportManager ()
virtual void showDataOptionsPanel ()
virtual void hideDataOptionsPanel ()
virtual void showPreferences ()
virtual void removeAllDDs ()
virtual void showPrintManager ()
 Show/hide display panel's auxiliary windows.
virtual void hidePrintManager ()
virtual void showCanvasManager ()
virtual void hideCanvasManager ()
virtual void showRegionManager ()
virtual void hideRegionManager ()
virtual void showShapeManager ()
virtual void hideShapeManager ()
virtual void showAnnotatorPanel ()
virtual void hideAnnotatorPanel ()
virtual void showFileBoxPanel ()
virtual void hideFileBoxPanel ()
virtual void showMakeRegionPanel ()
virtual void hideMakeRegionPanel ()
virtual void showImageProfile ()
virtual void hideImageProfile ()
virtual void refreshImageProfile ()
virtual void hideAllSubwindows ()
virtual void hideImageMenus ()
void movieChannels (int startChannel, int endChannel)
 Increments the channel in the images from the start channel to the end channel.
void movieChannels (int channel, bool forward, int stepSize, int channelStart, int channelEnd)
void movieStop ()
void registerAllDDs ()
void unregisterAllDDs ()
virtual void showStats (const String &)
virtual void hideStats ()
virtual void addDD (String path, String dataType, String displayType, Bool autoRegister=True, Bool tmpDtata=False, ImageInterface< Float > *img=NULL)
 add a new DD
virtual void doSelectChannel (int channelIndex)
 go to a specifc channel
virtual Bool restorePanelState (String filename)
 (Attempts to) restore panel state from named file.
virtual void trackingMoved (Qt::DockWidgetArea)
virtual void animatorMoved (Qt::DockWidgetArea)
virtual void regionMoved (Qt::DockWidgetArea)
virtual void mousetoolbarMoved (bool)
std::string getrc (const std::string &key)
 note that 'key' is prefixed with something like "viewer.dpg."...
void putrc (const std::string &key, const std::string &val)
void showMomentsCollapseImageProfile ()
void showSpecFitImageProfile ()
void disconnectHistogram ()
void ddClose (QtDisplayData *removeDD)
void ddOpen (const String &path, const String &dataType, const String &displayType)

Signals

void regionChange (viewer::Region *, std::string)
void axisToolUpdate (QtDisplayData *controlling_dd)
void colorBarOrientationChange ()
void frameChanged (int)
 Notification that the frame has changed.
void overlay (QHash< QString, ImageInterface< float > * >)
void createDDFailed (String errMsg, String path, String dataType, String displayType)
void ddCreated (QtDisplayData *, Bool autoRegister)
 The DD now exists, and is on QtViewerBase's list.
void ddRemoved (QtDisplayData *)
 The DD is no longer on QtViewerBase's list, but is not destroyed until after the signal.
void closed (const QtDisplayPanelGui *)
void cursorBoundary (QtDisplayPanel::CursorBoundaryCondition)
void cursorPosition (viewer::Position)

Public Member Functions

 ~QtDisplayPanelGui ()
QtViewerviewer ()
 access to our viewer
int buttonToolState (const std::string &tool) const
LogIOlogIO ()
 access our logger...
void status (const std::string &s, const std::string &type="info")
 enter status information...
QtDisplayPaneldisplayPanel ()
 access to graphics panel 'base'....
region_list_t regions ()
void revokeRegion (viewer::Region *r)
 region coupling between QtRegionDock and QtRegionSource(s)...
virtual void setStatsPrint (Bool printStats=True)
virtual void setUseRegion (Bool useRegion=True)
virtual bool supports (SCRIPTING_OPTION option) const
virtual QVariant start_interact (const QVariant &input, int id)
virtual QVariant setoptions (const QMap< QString, QVariant > &input, int id)
Bool colorBarsVertical ()
 At least for now, colorbars can only be placed horizontally or vertically, identically for all display panels.
QtDisplayDatacreateDD (String path, String dataType, String displayType, Bool autoRegister=True, const viewer::DisplayDataOptions &ddo=viewer::DisplayDataOptions(), const viewer::ImageProperties &props=viewer::ImageProperties())
 Create a new QtDD from given parameters, and add to internal DD list.
virtual Bool removeDD (QtDisplayData *qdd)
 Removes the QDD from the list and deletes it (if it existed -- Return value: whether qdd was in the list in the first place).
DisplayDataHolder::DisplayDataIterator beginDD () const
 retrieve a copy of the current DD list.
DisplayDataHolder::DisplayDataIterator endDD () const
Bool isEmptyDD () const
List< QtDisplayData * > unregisteredDDs ()
 return the number of user DDs.
QtDisplayDatadd (const std::string &name)
 retrieve a DD with given name (0 if none).
QtDisplayDatadd ()
 retrieve the controlling DD...
Bool ddExists (QtDisplayData *qdd)
 Check that a given DD is on the list.
virtual String errMsg ()
 Bool ddExists(const String& name) { return dd(name)!=0; }.
virtual void addedData (QString type, QtDisplayData *)
 the QtDBusViewerAdaptor can handle loading & registering data itself, but to connect up extra functionality, the upper-level QtDisplayPanelGui (or in the current case, the derived QtCleanPanelGui) would have to be notified that data has been added.
QtDataManagerdataMgr ()
virtual std::string rcid () const
 return the id for viewer state for this type of panel
viewer::QtRegionDockregionDock ()
int numFrames () const
void loadRegions (const std::string &path, const std::string &datatype)
 load casa (or DS9?) region files...
std::string outputRegions (std::list< viewer::QtRegionState * > regions, std::string file, std::string format, std::string ds9_csys="pixel")
 zero length string indicates OK!
bool useNewRegions () const
void activate (bool)
 called to indicate application activation state...

Public Attributes

QToolBar * customToolBar
 public toolbars, for inserting custom buttons.
QToolBar * customToolBar2
Bool autoDDOptionsShow
 True by default.
String selectedDMDir
 Intended for use only by QtDataManager (or other data dialogs such as for save-restore), to inform QtDisplayPanel of the directory currently selected for data retrieval, if any ("" if none).

Protected Slots

virtual void close ()
virtual void quit ()
void hideEvent (QHideEvent *ev)
virtual void ddRegChange_ ()
 Respond to QDP::registrationChange() signal.
virtual void ddRegClicked_ ()
 Respond to registration/close menu clicks.
virtual void ddUnregClicked_ ()
virtual void ddCloseClicked_ ()
virtual void updateAnimUi_ ()
 Reflect animator state [changes] in gui.
virtual void fwdPlay_ ()
 These react to fwd/reverse Play buttons.
virtual void revPlay_ ()
virtual void displayTrackingData_ (Record trackingRec)
 Display tracking data gathered by underlying panel.
virtual void arrangeTrackBoxes_ ()
 Reacts to QDP registration change signal.
virtual void deleteTrackBox_ (QtDisplayData *qdd)
 Deletes the TrackBox for the given QDD, if it exists.
virtual void savePanelState_ ()
 Brings up dialog for saving display panel state: reg'd DDs, their options, etc.
virtual void restorePanelState_ ()
 Brings up dialog for restore file, attempts restore.
virtual void addGuiState_ (QDomDocument *)
 Responds to qdp_->creatingRstrDoc(QDomDocument*) signal.
virtual void restoreGuiState_ (QDomDocument *)
 Responds to qdp_->restoring(QDomDocument*) signal.

Protected Member Functions

 QtDisplayPanelGui (QtViewer *v, QWidget *parent=0, std::string rcstr="dpg", const std::list< std::string > &args=std::list< std::string >())
virtual Bool syncDataDir_ (String filename)
 Keeps current data directory in sync between DataManager window and save-restore dialogs.
virtual TrackBoxtrkBox_ (QtDisplayData *qdd)
 return the tracking box for a QDD (given pointer or name).
virtual TrackBoxtrkBox_ (String ddname)
virtual Bool hasTrackBox_ (QtDisplayData *qdd)
 Does the display panel have a TrackBox for this panel (yet)?
virtual TrackBoxshowTrackBox_ (QtDisplayData *qdd)
 If qdd->usesTracking(), this method assures that a TrackBox for qdd is visible in the trkgWidget_'s layout (creating the TrackBox if it didn't exist).
virtual void updateDDMenus_ (Bool doCloseMenu=True)
void closeEvent (QCloseEvent *event)
 scripted (via dbus) panels should override the closeEvent( ) and hide the gui instead of deleting it when it was created via a dbus script...

Protected Attributes

LogIO logger
DisplayDataHolderdisplayDataHolder
 Existing user-visible QDDs List<QtDisplayData*> qdds_;.
String errMsg_
QtDataManagerqdm_
QtExportManagerqem_
QtDataOptionsPanelqdo_
Bool colorBarsVertical_
 At least for now, colorbars can only be placed horizontally or vertically, identically for all display panels.
QtViewerv_
QtDisplayPanelqdp_
QtViewerPrintGuiqpm_
QtCanvasManagerqcm_
MakeMaskqap_
 QtAnnotatorGui* qap_;.
FileBoxqfb_
MakeRegionqmr_
QtRegionManagerqrm_
QtRegionShapeManagerqsm_
QTextEdit * qst_
QtProfileprofile_
String savedTool_
QtDisplayDataprofileDD_
QMenu * dpMenu_
QMenu * ddMenu_
QMenu * ddRegMenu_
QMenu * ddCloseMenu_
QMenu * tlMenu_
QMenu * vwMenu_
QAction * dpNewAct_
QAction * printAct_
QAction * dpOptsAct_
QAction * dpCloseAct_
QAction * dpQuitAct_
QAction * ddOpenAct_
QAction * ddSaveAct_
QAction * ddAdjAct_
QAction * ddRegAct_
QAction * ddCloseAct_
QAction * unzoomAct_
QAction * zoomInAct_
QAction * zoomOutAct_
QAction * annotAct_
QAction * mkRgnAct_
QAction * fboxAct_
QAction * ddPreferencesAct_
QAction * profileAct_
QAction * momentsCollapseAct_
QAction * histogramAct_
QAction * fitAct_
QAction * cleanAct_
QAction * rgnMgrAct_
QAction * shpMgrAct_
QAction * dpSaveAct_
QAction * dpRstrAct_
QAction * manageImagesAct_
QToolBar * mainToolBar_
QToolButton * ddRegBtn_
QToolButton * ddCloseBtn_
QtMouseToolBarmouseToolBar_
Casarcrc
 connection to rc file
std::string rcid_
 rc id for this panel type

Static Protected Attributes

static bool logger_did_region_warning

Private Slots

void loadRegions (const QString &path, const QString &type)
void incrementMovieChannel ()
void clear_status_bar ()
void reset_status_bar ()
void controlling_dd_axis_change (String, String, String, std::vector< int >)
void controlling_dd_update (QtDisplayData *)
void showHistogram ()
void showSlicer ()
void resetListenerImage ()
void histogramRegionChange (int, viewer::region::RegionChanges change=viewer::region::RegionChangeLabel)
void showFitInteractive ()
void showCleanTool ()
void refreshFit ()
void addSkyComponentOverlay (String path, const QString &colorName)
void removeSkyComponentOverlay (String path)
void add2DFitOverlay (QList< RegionShape * > fitMarkers)
void remove2DFitOverlay (QList< RegionShape * > fitMarkers)
void addResidualFitImage (String path)
void sliceChanged (int regionId, viewer::region::RegionChanges change, const QList< double > &worldX, const QList< double > &worldY, const QList< int > &pixelX, const QList< int > &pixelY)
void addSlice (int id, const QString &shape, const QString &, const QList< double > &worldX, const QList< double > &worldY, const QList< int > &pixelX, const QList< int > &pixelY, const QString &, const QString &, const QString &, int, int)
void showColorHistogram (QtDisplayData *displayData)
void globalColorSettingsChanged (bool global)
void globalOptionsChanged (QtDisplayData *originator, Record opts)
void updateColorHistogram (const QString &ddName)
void showImageManager ()
void sliceMarkerVisibilityChanged (int regionId, bool visible)
void sliceMarkerPositionChanged (int regionId, int segmentIndex, float percentage)
void updateMultiSpectralFitLocation (Record trackingRec)

Private Member Functions

void setAnimationRate ()
int getBoundedChannel (int channelNumber) const
 QtDisplayPanelGui ()
QtDisplayDataprocessDD (String path, String dataType, String displayType, Bool autoRegister, QtDisplayData *qdd, const viewer::DisplayDataOptions &ddo=viewer::DisplayDataOptions())
void connectRegionSignals (PanelDisplay *ppd)
QtDisplayDatalookForExistingController ()
 Management of the controlling DD.
void setControllingDD (QtDisplayData *controlDD)
void replaceControllingDD (QtDisplayData *oldControllingDD, QtDisplayData *newControllingDD)
void updateFrameInformation ()
 used to manage generation of the updateAxes( ) signal...
void updateSliceCorners (int id, const QList< double > &worldX, const QList< double > &worldY)
void initAnimationHolder ()
void initHistogramHolder ()
void hideHistogram ()
void initFit2DTool ()
void hideFit2DTool ()
void resetHistogram (viewer::Region *qtRegion)
viewer::RegionfindRegion (int id)
void initCleanTool ()
 interactive clean...
string addAnimationDockWidget ()
 Docking/Dock Widgets.

Private Attributes

bool use_new_regions
bool manageImages
int movieChannel
 Animating the channel.
int movieChannelEnd
int movieLast
int movieStart
int movieStep
QTimer movieTimer
unsigned int showdataoptionspanel_enter_count
viewer::Preferencespreferences
AnimatorHolderanimationHolder
HistogramMain * histogrammer
ColorHistogramcolorHistogram
Fit2DToolfitTool
SlicerMainWindowsliceTool
ImageManagerDialogimageManagerDialog
viewer::CleanGuiclean_tool
QDockWidget * animDockWidget_
QDockWidget * histogramDockWidget_
viewer::QtRegionDockregionDock_
QDockWidget * trkgDockWidget_
QWidget * trkgWidget_
QTimer * status_bar_timer
QString status_bar_state
QString status_bar_stylesheet

Friends

class QtViewer

Detailed Description

The main display window for the Qt version of the viewer.

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


Member Typedef Documentation

Definition at line 120 of file QtDisplayPanelGui.qo.h.


Member Enumeration Documentation

Enumerator:
INTERACT 
SETOPTIONS 

Definition at line 103 of file QtDisplayPanelGui.qo.h.


Constructor & Destructor Documentation

casa::QtDisplayPanelGui::QtDisplayPanelGui ( QtViewer v,
QWidget *  parent = 0,
std::string  rcstr = "dpg",
const std::list< std::string > &  args = std::list< std::string >() 
) [protected]

Definition at line 536 of file QtDisplayPanelGui.qo.h.


Member Function Documentation

called to indicate application activation state...

true -> activated, false -> deactivated

void casa::QtDisplayPanelGui::add2DFitOverlay ( QList< RegionShape * >  fitMarkers) [private, slot]

Docking/Dock Widgets.

virtual void casa::QtDisplayPanelGui::addDD ( String  path,
String  dataType,
String  displayType,
Bool  autoRegister = True,
Bool  tmpDtata = False,
ImageInterface< Float > *  img = NULL 
) [virtual, slot]

add a new DD

virtual void casa::QtDisplayPanelGui::addedData ( QString  type,
QtDisplayData  
) [virtual]

the QtDBusViewerAdaptor can handle loading & registering data itself, but to connect up extra functionality, the upper-level QtDisplayPanelGui (or in the current case, the derived QtCleanPanelGui) would have to be notified that data has been added.

This will allow it to set up the callbacks for drawing regions...

Reimplemented in casa::QtCleanPanelGui.

virtual void casa::QtDisplayPanelGui::addGuiState_ ( QDomDocument *  ) [protected, virtual, slot]

Responds to qdp_->creatingRstrDoc(QDomDocument*) signal.

(Recall that qdp_ is unaware of this gui). Adds gui state to the QDomDocument qdp has created.

void casa::QtDisplayPanelGui::addResidualFitImage ( String  path) [private, slot]
void casa::QtDisplayPanelGui::addSkyComponentOverlay ( String  path,
const QString &  colorName 
) [private, slot]
void casa::QtDisplayPanelGui::addSlice ( int  id,
const QString &  shape,
const QString &  ,
const QList< double > &  worldX,
const QList< double > &  worldY,
const QList< int > &  pixelX,
const QList< int > &  pixelY,
const QString &  ,
const QString &  ,
const QString &  ,
int  ,
int   
) [private, slot]
virtual void casa::QtDisplayPanelGui::animatorMoved ( Qt::DockWidgetArea  ) [virtual, slot]
virtual void casa::QtDisplayPanelGui::arrangeTrackBoxes_ ( ) [protected, virtual, slot]

Reacts to QDP registration change signal.

If necessary, changes the set of cursor position tracking boxes being displayed in trkgWidget_ (creating new TrackBoxes as necessary). A TrackBox will be shown for each qdd in qdp_->registeredDDs() where qdd->usesTracking() (in registration order).

Referenced by ddRegChange_().

void casa::QtDisplayPanelGui::axisToolUpdate ( QtDisplayData controlling_dd) [signal]

retrieve a copy of the current DD list.

List<QtDisplayData*> dds() { return qdds_; }

int casa::QtDisplayPanelGui::buttonToolState ( const std::string &  tool) const
virtual void casa::QtDisplayPanelGui::close ( ) [protected, virtual, slot]
void casa::QtDisplayPanelGui::closeEvent ( QCloseEvent *  event) [protected]

scripted (via dbus) panels should override the closeEvent( ) and hide the gui instead of deleting it when it was created via a dbus script...

Reimplemented in casa::QtCleanPanelGui.

At least for now, colorbars can only be placed horizontally or vertically, identically for all display panels.

This returns the current value.

Definition at line 143 of file QtDisplayPanelGui.qo.h.

References colorBarsVertical_.

void casa::QtDisplayPanelGui::controlling_dd_axis_change ( String  ,
String  ,
String  ,
std::vector< int >   
) [private, slot]

Create a new QtDD from given parameters, and add to internal DD list.

(For now) QtViewerBase retains 'ownership' of the QtDisplayData; call removeDD(qdd) to delete it. Unless autoregister is set False, all open DisplayPanels will register the DD for display. Check return value for 0, or connect to the createDDFailed() signal, to handle failure.

void casa::QtDisplayPanelGui::createDDFailed ( String  errMsg,
String  path,
String  dataType,
String  displayType 
) [signal]

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

References qdm_.

QtDisplayData* casa::QtDisplayPanelGui::dd ( const std::string &  name)

retrieve a DD with given name (0 if none).

retrieve the controlling DD...

void casa::QtDisplayPanelGui::ddClose ( QtDisplayData removeDD) [slot]
virtual void casa::QtDisplayPanelGui::ddCloseClicked_ ( ) [protected, virtual, slot]
void casa::QtDisplayPanelGui::ddCreated ( QtDisplayData ,
Bool  autoRegister 
) [signal]

The DD now exists, and is on QtViewerBase's list.

   autoregister tells DPs whether they are to register the DD.

dd is added to the world canvas holder during ***** the processing of this event... *****

Check that a given DD is on the list.

Use qdd pointer or its name.

void casa::QtDisplayPanelGui::ddOpen ( const String path,
const String dataType,
const String displayType 
) [slot]
virtual void casa::QtDisplayPanelGui::ddRegChange_ ( ) [inline, protected, virtual, slot]

Respond to QDP::registrationChange() signal.

hideImageMenus();

Definition at line 368 of file QtDisplayPanelGui.qo.h.

References arrangeTrackBoxes_(), updateDDMenus_(), and updateFrameInformation().

virtual void casa::QtDisplayPanelGui::ddRegClicked_ ( ) [protected, virtual, slot]

Respond to registration/close menu clicks.

The DD is no longer on QtViewerBase's list, but is not destroyed until after the signal.

dd is removed from the world canvas holder ***** during the processing of this event... *****

virtual void casa::QtDisplayPanelGui::ddUnregClicked_ ( ) [protected, virtual, slot]
virtual void casa::QtDisplayPanelGui::deleteTrackBox_ ( QtDisplayData qdd) [protected, virtual, slot]

Deletes the TrackBox for the given QDD, if it exists.

(Deletion automatically removes it from the trkgWidget_ and its layout). Connected to the ddRemoved() signal of QtViewerBase.

access to graphics panel 'base'....

Definition at line 118 of file QtDisplayPanelGui.qo.h.

References qdp_.

virtual void casa::QtDisplayPanelGui::displayTrackingData_ ( Record  trackingRec) [protected, virtual, slot]

Display tracking data gathered by underlying panel.

virtual void casa::QtDisplayPanelGui::doSelectChannel ( int  channelIndex) [virtual, slot]

go to a specifc channel

virtual String casa::QtDisplayPanelGui::errMsg ( ) [inline, virtual]

Bool ddExists(const String& name) { return dd(name)!=0; }.

Latest error (in createDD, etc.)

Definition at line 189 of file QtDisplayPanelGui.qo.h.

References errMsg_.

void casa::QtDisplayPanelGui::frameChanged ( int  ) [signal]

Notification that the frame has changed.

virtual void casa::QtDisplayPanelGui::fwdPlay_ ( ) [inline, protected, virtual, slot]

These react to fwd/reverse Play buttons.

They allow a single play button to be used to toggle between play and stop.

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

References casa::QtDisplayPanel::animating(), casa::QtDisplayPanel::fwdPlay(), qdp_, and casa::QtDisplayPanel::stop().

int casa::QtDisplayPanelGui::getBoundedChannel ( int  channelNumber) const [private]
std::string casa::QtDisplayPanelGui::getrc ( const std::string &  key) [slot]

note that 'key' is prefixed with something like "viewer.dpg."...

for both get and put...

void casa::QtDisplayPanelGui::globalColorSettingsChanged ( bool  global) [private, slot]
void casa::QtDisplayPanelGui::globalOptionsChanged ( QtDisplayData originator,
Record  opts 
) [private, slot]
virtual Bool casa::QtDisplayPanelGui::hasTrackBox_ ( QtDisplayData qdd) [inline, protected, virtual]

Does the display panel have a TrackBox for this panel (yet)?

Definition at line 458 of file QtDisplayPanelGui.qo.h.

References trkBox_().

virtual void casa::QtDisplayPanelGui::hideAllSubwindows ( ) [virtual, slot]

Referenced by hideEvent().

virtual void casa::QtDisplayPanelGui::hideAnnotatorPanel ( ) [virtual, slot]
virtual void casa::QtDisplayPanelGui::hideCanvasManager ( ) [virtual, slot]
virtual void casa::QtDisplayPanelGui::hideDataManager ( ) [virtual, slot]
virtual void casa::QtDisplayPanelGui::hideDataOptionsPanel ( ) [virtual, slot]
void casa::QtDisplayPanelGui::hideEvent ( QHideEvent *  ev) [inline, protected, slot]

Note: If the display panel is iconified or the user changes desktops, isVisible() will remain true here (surprising, but useful -- see isVisible() doc). Otherwise, in this context, [I believe] we can assume the display panel has been closed; in that case, we want to 'close' the auxiliary windows as well. (Note that there is no 'closeEvent' per se).

Definition at line 347 of file QtDisplayPanelGui.qo.h.

References hideAllSubwindows().

virtual void casa::QtDisplayPanelGui::hideExportManager ( ) [virtual, slot]
virtual void casa::QtDisplayPanelGui::hideFileBoxPanel ( ) [virtual, slot]
virtual void casa::QtDisplayPanelGui::hideImageMenus ( ) [virtual, slot]
virtual void casa::QtDisplayPanelGui::hideImageProfile ( ) [virtual, slot]
virtual void casa::QtDisplayPanelGui::hideMakeRegionPanel ( ) [virtual, slot]
virtual void casa::QtDisplayPanelGui::hidePrintManager ( ) [virtual, slot]
virtual void casa::QtDisplayPanelGui::hideRegionManager ( ) [virtual, slot]
virtual void casa::QtDisplayPanelGui::hideShapeManager ( ) [virtual, slot]
virtual void casa::QtDisplayPanelGui::hideStats ( ) [virtual, slot]

interactive clean...

void casa::QtDisplayPanelGui::loadRegions ( const std::string &  path,
const std::string &  datatype 
)

load casa (or DS9?) region files...

void casa::QtDisplayPanelGui::loadRegions ( const QString &  path,
const QString &  type 
) [private, slot]

access our logger...

Definition at line 112 of file QtDisplayPanelGui.qo.h.

References logger.

Management of the controlling DD.

virtual void casa::QtDisplayPanelGui::mousetoolbarMoved ( bool  ) [virtual, slot]
void casa::QtDisplayPanelGui::movieChannels ( int  startChannel,
int  endChannel 
) [slot]

Increments the channel in the images from the start channel to the end channel.

void casa::QtDisplayPanelGui::movieChannels ( int  channel,
bool  forward,
int  stepSize,
int  channelStart,
int  channelEnd 
) [slot]
int casa::QtDisplayPanelGui::numFrames ( ) const [inline]

Definition at line 208 of file QtDisplayPanelGui.qo.h.

References casa::QtDisplayPanel::nFrames(), and qdp_.

std::string casa::QtDisplayPanelGui::outputRegions ( std::list< viewer::QtRegionState * >  regions,
std::string  file,
std::string  format,
std::string  ds9_csys = "pixel" 
)

zero length string indicates OK!

void casa::QtDisplayPanelGui::overlay ( QHash< QString, ImageInterface< float > * >  ) [signal]
QtDisplayData* casa::QtDisplayPanelGui::processDD ( String  path,
String  dataType,
String  displayType,
Bool  autoRegister,
QtDisplayData qdd,
const viewer::DisplayDataOptions ddo = viewer::DisplayDataOptions() 
) [private]
void casa::QtDisplayPanelGui::putrc ( const std::string &  key,
const std::string &  val 
) [slot]
virtual void casa::QtDisplayPanelGui::quit ( ) [protected, virtual, slot]
virtual std::string casa::QtDisplayPanelGui::rcid ( ) const [inline, virtual]

return the id for viewer state for this type of panel

Definition at line 205 of file QtDisplayPanelGui.qo.h.

References rcid_.

void casa::QtDisplayPanelGui::refreshFit ( ) [private, slot]
virtual void casa::QtDisplayPanelGui::refreshImageProfile ( ) [virtual, slot]
void casa::QtDisplayPanelGui::regionChange ( viewer::Region ,
std::string   
) [signal]

Definition at line 207 of file QtDisplayPanelGui.qo.h.

References regionDock_.

virtual void casa::QtDisplayPanelGui::regionMoved ( Qt::DockWidgetArea  ) [virtual, slot]

Definition at line 121 of file QtDisplayPanelGui.qo.h.

References regionDock_, and casa::viewer::QtRegionDock::regions().

void casa::QtDisplayPanelGui::remove2DFitOverlay ( QList< RegionShape * >  fitMarkers) [private, slot]
virtual void casa::QtDisplayPanelGui::removeAllDDs ( ) [virtual, slot]

Removes the QDD from the list and deletes it (if it existed -- Return value: whether qdd was in the list in the first place).

void casa::QtDisplayPanelGui::replaceControllingDD ( QtDisplayData oldControllingDD,
QtDisplayData newControllingDD 
) [private]
virtual void casa::QtDisplayPanelGui::restoreGuiState_ ( QDomDocument *  ) [protected, virtual, slot]

Responds to qdp_->restoring(QDomDocument*) signal.

Sets gui-specific state (most notably, overall window size).

virtual Bool casa::QtDisplayPanelGui::restorePanelState ( String  filename) [virtual, slot]

(Attempts to) restore panel state from named file.

virtual void casa::QtDisplayPanelGui::restorePanelState_ ( ) [protected, virtual, slot]

Brings up dialog for restore file, attempts restore.

Triggered by dpRstrAct_.

region coupling between QtRegionDock and QtRegionSource(s)...

Definition at line 123 of file QtDisplayPanelGui.qo.h.

References qdp_, and casa::QtDisplayPanel::revokeRegion().

virtual void casa::QtDisplayPanelGui::revPlay_ ( ) [inline, protected, virtual, slot]
virtual void casa::QtDisplayPanelGui::savePanelState_ ( ) [protected, virtual, slot]

Brings up dialog for saving display panel state: reg'd DDs, their options, etc.

Triggered by dpSaveAct_.

virtual void casa::QtDisplayPanelGui::setColorBarOrientation ( Bool  vertical) [virtual, slot]

At least for now, colorbars can only be placed horizontally or vertically, identically for all display panels.

This sets that state for everyone. Sends out colorBarOrientationChange signal when the state changes.

virtual QVariant casa::QtDisplayPanelGui::setoptions ( const QMap< QString, QVariant > &  input,
int  id 
) [virtual]

Reimplemented in casa::QtCleanPanelGui.

virtual void casa::QtDisplayPanelGui::setStatsPrint ( Bool  printStats = True) [inline, virtual]

Definition at line 130 of file QtDisplayPanelGui.qo.h.

References casa::QtDisplayPanel::printStats, and qdp_.

virtual void casa::QtDisplayPanelGui::setUseRegion ( Bool  useRegion = True) [inline, virtual]

Definition at line 133 of file QtDisplayPanelGui.qo.h.

References qdp_, and casa::QtDisplayPanel::useRegion.

virtual void casa::QtDisplayPanelGui::showAnnotatorPanel ( ) [virtual, slot]
virtual void casa::QtDisplayPanelGui::showCanvasManager ( ) [virtual, slot]
void casa::QtDisplayPanelGui::showCleanTool ( ) [private, slot]
void casa::QtDisplayPanelGui::showColorHistogram ( QtDisplayData displayData) [private, slot]
virtual void casa::QtDisplayPanelGui::showDataManager ( ) [virtual, slot]
virtual void casa::QtDisplayPanelGui::showDataOptionsPanel ( ) [virtual, slot]
virtual void casa::QtDisplayPanelGui::showExportManager ( ) [virtual, slot]
virtual void casa::QtDisplayPanelGui::showFileBoxPanel ( ) [virtual, slot]
void casa::QtDisplayPanelGui::showHistogram ( ) [private, slot]
virtual void casa::QtDisplayPanelGui::showImageProfile ( ) [virtual, slot]
virtual void casa::QtDisplayPanelGui::showMakeRegionPanel ( ) [virtual, slot]
virtual void casa::QtDisplayPanelGui::showPreferences ( ) [virtual, slot]
virtual void casa::QtDisplayPanelGui::showPrintManager ( ) [virtual, slot]

Show/hide display panel's auxiliary windows.

virtual void casa::QtDisplayPanelGui::showRegionManager ( ) [virtual, slot]
virtual void casa::QtDisplayPanelGui::showShapeManager ( ) [virtual, slot]
void casa::QtDisplayPanelGui::showSlicer ( ) [private, slot]
virtual void casa::QtDisplayPanelGui::showStats ( const String ) [virtual, slot]
virtual TrackBox* casa::QtDisplayPanelGui::showTrackBox_ ( QtDisplayData qdd) [protected, virtual]

If qdd->usesTracking(), this method assures that a TrackBox for qdd is visible in the trkgWidget_'s layout (creating the TrackBox if it didn't exist).

Used by arrangeTrackBoxes_(). Returns the TrackBox (or 0 if none, i.e., if !qdd->usesTracking()).

void casa::QtDisplayPanelGui::sliceChanged ( int  regionId,
viewer::region::RegionChanges  change,
const QList< double > &  worldX,
const QList< double > &  worldY,
const QList< int > &  pixelX,
const QList< int > &  pixelY 
) [private, slot]
void casa::QtDisplayPanelGui::sliceMarkerPositionChanged ( int  regionId,
int  segmentIndex,
float  percentage 
) [private, slot]
void casa::QtDisplayPanelGui::sliceMarkerVisibilityChanged ( int  regionId,
bool  visible 
) [private, slot]
virtual QVariant casa::QtDisplayPanelGui::start_interact ( const QVariant &  input,
int  id 
) [virtual]

Reimplemented in casa::QtCleanPanelGui.

void casa::QtDisplayPanelGui::status ( const std::string &  s,
const std::string &  type = "info" 
) [virtual]

enter status information...

Implements casa::viewer::StatusSink.

virtual bool casa::QtDisplayPanelGui::supports ( SCRIPTING_OPTION  option) const [virtual]

Reimplemented in casa::QtCleanPanelGui.

virtual Bool casa::QtDisplayPanelGui::syncDataDir_ ( String  filename) [protected, virtual]

Keeps current data directory in sync between DataManager window and save-restore dialogs.

virtual void casa::QtDisplayPanelGui::trackingMoved ( Qt::DockWidgetArea  ) [virtual, slot]
virtual TrackBox* casa::QtDisplayPanelGui::trkBox_ ( QtDisplayData qdd) [protected, virtual]

return the tracking box for a QDD (given pointer or name).

0 if none.

Referenced by hasTrackBox_().

virtual TrackBox* casa::QtDisplayPanelGui::trkBox_ ( String  ddname) [protected, virtual]

return the number of user DDs.

Int nDDs() { return qdds_.len(); }

return a list of DDs that are registered on some panel. List<QtDisplayData*> registeredDDs();

return a list of DDs that exist but are not registered on any panel.

virtual void casa::QtDisplayPanelGui::updateAnimUi_ ( ) [protected, virtual, slot]

Reflect animator state [changes] in gui.

void casa::QtDisplayPanelGui::updateColorHistogram ( const QString &  ddName) [private, slot]
virtual void casa::QtDisplayPanelGui::updateDDMenus_ ( Bool  doCloseMenu = True) [protected, virtual]

Referenced by ddRegChange_().

used to manage generation of the updateAxes( ) signal...

QtDisplayData *controlling_dd;

Referenced by ddRegChange_().

void casa::QtDisplayPanelGui::updateMultiSpectralFitLocation ( Record  trackingRec) [private, slot]
void casa::QtDisplayPanelGui::updateSliceCorners ( int  id,
const QList< double > &  worldX,
const QList< double > &  worldY 
) [private]
bool casa::QtDisplayPanelGui::useNewRegions ( ) const [inline]

Definition at line 215 of file QtDisplayPanelGui.qo.h.

References use_new_regions.

access to our viewer

Definition at line 108 of file QtDisplayPanelGui.qo.h.

References v_.


Friends And Related Function Documentation

friend class QtViewer [friend]

Reimplemented in casa::QtCleanPanelGui.

Definition at line 93 of file QtDisplayPanelGui.qo.h.


Member Data Documentation

Definition at line 560 of file QtDisplayPanelGui.qo.h.

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

QAction * casa::QtDisplayPanelGui::annotAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.

True by default.

Set False to disable auto-raise of the Data Options panel whenever the first DD is created.

Definition at line 627 of file QtDisplayPanelGui.qo.h.

Definition at line 569 of file QtDisplayPanelGui.qo.h.

QAction * casa::QtDisplayPanelGui::cleanAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.

At least for now, colorbars can only be placed horizontally or vertically, identically for all display panels.

Here is where that state is kept for everyone.

Definition at line 482 of file QtDisplayPanelGui.qo.h.

Referenced by colorBarsVertical().

Definition at line 562 of file QtDisplayPanelGui.qo.h.

public toolbars, for inserting custom buttons.

Definition at line 127 of file QtDisplayPanelGui.qo.h.

Definition at line 128 of file QtDisplayPanelGui.qo.h.

QAction * casa::QtDisplayPanelGui::ddAdjAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.

QAction * casa::QtDisplayPanelGui::ddCloseAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.

QToolButton * casa::QtDisplayPanelGui::ddCloseBtn_ [protected]

Definition at line 513 of file QtDisplayPanelGui.qo.h.

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

QMenu * casa::QtDisplayPanelGui::ddMenu_ [protected]

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

QAction * casa::QtDisplayPanelGui::ddOpenAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.

Definition at line 506 of file QtDisplayPanelGui.qo.h.

QAction * casa::QtDisplayPanelGui::ddRegAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.

QToolButton* casa::QtDisplayPanelGui::ddRegBtn_ [protected]

Definition at line 513 of file QtDisplayPanelGui.qo.h.

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

QAction * casa::QtDisplayPanelGui::ddSaveAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.

Existing user-visible QDDs List<QtDisplayData*> qdds_;.

Definition at line 438 of file QtDisplayPanelGui.qo.h.

QAction * casa::QtDisplayPanelGui::dpCloseAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.

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

QAction* casa::QtDisplayPanelGui::dpNewAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.

QAction * casa::QtDisplayPanelGui::dpOptsAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.

QAction * casa::QtDisplayPanelGui::dpQuitAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.

QAction * casa::QtDisplayPanelGui::dpRstrAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.

QAction * casa::QtDisplayPanelGui::dpSaveAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.

Definition at line 439 of file QtDisplayPanelGui.qo.h.

Referenced by errMsg().

QAction * casa::QtDisplayPanelGui::fboxAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.

QAction * casa::QtDisplayPanelGui::fitAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.

Definition at line 563 of file QtDisplayPanelGui.qo.h.

Definition at line 506 of file QtDisplayPanelGui.qo.h.

Definition at line 575 of file QtDisplayPanelGui.qo.h.

HistogramMain* casa::QtDisplayPanelGui::histogrammer [private]

Definition at line 561 of file QtDisplayPanelGui.qo.h.

Definition at line 565 of file QtDisplayPanelGui.qo.h.

Definition at line 433 of file QtDisplayPanelGui.qo.h.

Referenced by logIO().

Definition at line 434 of file QtDisplayPanelGui.qo.h.

Definition at line 512 of file QtDisplayPanelGui.qo.h.

Definition at line 524 of file QtDisplayPanelGui.qo.h.

Definition at line 506 of file QtDisplayPanelGui.qo.h.

QAction * casa::QtDisplayPanelGui::mkRgnAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.

Definition at line 506 of file QtDisplayPanelGui.qo.h.

Definition at line 515 of file QtDisplayPanelGui.qo.h.

Animating the channel.

Definition at line 527 of file QtDisplayPanelGui.qo.h.

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

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

Definition at line 530 of file QtDisplayPanelGui.qo.h.

Definition at line 531 of file QtDisplayPanelGui.qo.h.

Definition at line 532 of file QtDisplayPanelGui.qo.h.

Definition at line 559 of file QtDisplayPanelGui.qo.h.

QAction * casa::QtDisplayPanelGui::printAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.

Definition at line 497 of file QtDisplayPanelGui.qo.h.

QAction * casa::QtDisplayPanelGui::profileAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.

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

QtAnnotatorGui* qap_;.

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

Definition at line 487 of file QtDisplayPanelGui.qo.h.

Definition at line 442 of file QtDisplayPanelGui.qo.h.

Referenced by dataMgr().

Definition at line 444 of file QtDisplayPanelGui.qo.h.

Definition at line 443 of file QtDisplayPanelGui.qo.h.

Definition at line 490 of file QtDisplayPanelGui.qo.h.

Definition at line 491 of file QtDisplayPanelGui.qo.h.

Definition at line 486 of file QtDisplayPanelGui.qo.h.

Definition at line 492 of file QtDisplayPanelGui.qo.h.

Definition at line 493 of file QtDisplayPanelGui.qo.h.

QTextEdit* casa::QtDisplayPanelGui::qst_ [protected]

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

connection to rc file

Definition at line 518 of file QtDisplayPanelGui.qo.h.

std::string casa::QtDisplayPanelGui::rcid_ [protected]

rc id for this panel type

Definition at line 520 of file QtDisplayPanelGui.qo.h.

Referenced by rcid().

Definition at line 576 of file QtDisplayPanelGui.qo.h.

Referenced by regionDock(), and regions().

QAction * casa::QtDisplayPanelGui::rgnMgrAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.

Definition at line 498 of file QtDisplayPanelGui.qo.h.

Intended for use only by QtDataManager (or other data dialogs such as for save-restore), to inform QtDisplayPanel of the directory currently selected for data retrieval, if any ("" if none).

Definition at line 632 of file QtDisplayPanelGui.qo.h.

Definition at line 535 of file QtDisplayPanelGui.qo.h.

QAction * casa::QtDisplayPanelGui::shpMgrAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.

Definition at line 564 of file QtDisplayPanelGui.qo.h.

Definition at line 581 of file QtDisplayPanelGui.qo.h.

Definition at line 582 of file QtDisplayPanelGui.qo.h.

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

QMenu * casa::QtDisplayPanelGui::tlMenu_ [protected]

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

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

Definition at line 578 of file QtDisplayPanelGui.qo.h.

QAction * casa::QtDisplayPanelGui::unzoomAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.

Definition at line 523 of file QtDisplayPanelGui.qo.h.

Referenced by useNewRegions().

Definition at line 484 of file QtDisplayPanelGui.qo.h.

Referenced by viewer().

QMenu * casa::QtDisplayPanelGui::vwMenu_ [protected]

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

QAction * casa::QtDisplayPanelGui::zoomInAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.

QAction * casa::QtDisplayPanelGui::zoomOutAct_ [protected]

Definition at line 506 of file QtDisplayPanelGui.qo.h.


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