#include <QtViewerBase.qo.h>
|
virtual void | hold () |
| Hold/release of (canvas-draw) refresh of all QDPs. More...
|
|
virtual void | release () |
|
virtual void | quit () |
| Closes all open panels, which will exit the Qt loop. More...
|
|
|
virtual void | dpDestroyed_ (QObject *) |
| Connected by this class, (only) to QDPs' destroyed() signals (for maintenance of the list of existing QDPs). More...
|
|
virtual void | dpHidden_ (QtDisplayPanel *) |
| Connected by this class, (only) to QDPs' dpHidden() signals (for checking on open QDPs – will quit if none are left open). More...
|
|
Definition at line 65 of file QtViewerBase.qo.h.
casa::QtViewerBase::QtViewerBase |
( |
bool |
is_server = false | ) |
|
casa::QtViewerBase::~QtViewerBase |
( |
| ) |
|
Returns true iff datatype is a vaild viewer datatype and displaytype is valid for the datatype.
If the former is true but the latter isn't, displaytype is [re]set to the default displaytype for the datatype.
Only to be used by QtDisplayPanels, to inform this class of their creation.
(C++ should allow individual methods to be 'friend'ed to outside classes...).
virtual void casa::QtViewerBase::dpDestroyed_ |
( |
QObject * |
| ) |
|
|
protectedvirtualslot |
Connected by this class, (only) to QDPs' destroyed() signals (for maintenance of the list of existing QDPs).
Connected by this class, (only) to QDPs' dpHidden() signals (for checking on open QDPs – will quit if none are left open).
bool casa::QtViewerBase::exiting |
( |
| ) |
|
|
inline |
function to aid typing files of interest to the viewer.
Moved from QtDataManager to be available for non-gui use. Returns user interface Strings like "Measurement Set".
similar to above; returns internal DD datatype names like "ms" (or else 'nonexistent', 'unknown').
virtual void casa::QtViewerBase::hold |
( |
| ) |
|
|
virtualslot |
Hold/release of (canvas-draw) refresh of all QDPs.
(NB: does not concern enabling of Qt Widgets). Call to hold() must be matched to later call of release(); they can be nested. It is sometimes efficient to wait until several changes are complete and then redraw everything just once.
static bool casa::QtViewerBase::isRestoreFile |
( |
casacore::String |
filename, |
|
|
QDomDocument & |
restoredoc |
|
) |
| |
|
static |
Does the given file pathname hold a readable file with valid ID and form as a viewer restore xml document? (If so, contents are set onto restoredoc).
static bool casa::QtViewerBase::isRestoreString |
( |
casacore::String |
xmlState, |
|
|
QDomDocument & |
restoredoc |
|
) |
| |
|
static |
Does the given casacore::String have valid ID and form as viewer restore xml? (If so, contents are set onto restoredoc).
virtual int casa::QtViewerBase::nOpenDPs |
( |
| ) |
|
|
virtual |
The number of open QtDisplayPanels.
(More efficient than the equivalent openDPs().len(), if the number is all that's needed).
The list of QtDisplayPanels that are not closed.
virtual void casa::QtViewerBase::quit |
( |
| ) |
|
|
virtualslot |
Closes all open panels, which will exit the Qt loop.
Note that the loop can be restarted (and is, in interactive clean, e.g.), with existing widgets intact. This does not in itself delete objects or exit the process, although the driver program might do that. Also, some of the panels may have WA_DeleteOnClose set, which would cause their deletion (see, e.g., QtViewer::createDPG()).
virtual void casa::QtViewerBase::release |
( |
| ) |
|
|
virtualslot |
bool casa::QtViewerBase::server |
( |
| ) |
const |
|
inline |
Utility routines to convert between casacore::Vector<float> and String.
const int casa::QtViewerBase::CONTOUR |
|
static |
e.g.
dataDisplaysAs_[IMAGE] will be {RASTER, CONTOUR, VECTOR, MARKER} dataDisplaysAs_[datatype][0] will be the default displaytype for that datatype.
Definition at line 215 of file QtViewerBase.qo.h.
Translates IMAGE, RASTER, etc.
into the names used internally (e.g. "image", "raster").
Definition at line 210 of file QtViewerBase.qo.h.
const int casa::QtViewerBase::IMAGE |
|
static |
const int casa::QtViewerBase::INVALID |
|
static |
const int casa::QtViewerBase::LEL |
|
static |
const int casa::QtViewerBase::MARKER |
|
static |
const int casa::QtViewerBase::MEASUREMENT_SET |
|
static |
This should be the only place this object is ever created....
Holds mouse button assignment for the mouse tools, which is to be the same on all mouse toolbars / display panels.
Definition at line 206 of file QtViewerBase.qo.h.
Referenced by mouseBtns().
const int casa::QtViewerBase::N_DS |
|
static |
const int casa::QtViewerBase::N_DT |
|
static |
const int casa::QtViewerBase::NEWPANEL |
|
static |
const int casa::QtViewerBase::OLDPANEL |
|
static |
Existing QtDisplayPanels (whether 'closed' or not, as long as not deleted).
Unlike QDDs, QtViewerBase does not create or delete QDPs, it just tries to keep track of them. Note that by default, 'closed' DPs are simply not 'visible' (see QWidget::isVisible()), though they are not deleted unless their owner does it. An owner can also revive (show) a 'closed' QDP. The publicly-available list openDPs() shows only those which are not closed. Minimized or covered DPs are still considered 'open'.
Definition at line 200 of file QtViewerBase.qo.h.
bool casa::QtViewerBase::qtviewer_app_exit |
|
staticprivate |
const int casa::QtViewerBase::RASTER |
|
static |
const int casa::QtViewerBase::RESTORE |
|
static |
bool casa::QtViewerBase::server_ |
|
protected |
const int casa::QtViewerBase::SKY_CAT |
|
static |
const int casa::QtViewerBase::SKY_CATALOG |
|
static |
const int casa::QtViewerBase::VECTOR |
|
static |
The documentation for this class was generated from the following file: