#include <QtDisplayData.qo.h>
Public Slots | |
virtual void | registerNotice (QtDisplayPanel *) |
(Should only be used by QtDisplayPanels to notify the QDD that it has been registered, or is about to be unregistered, on the QDP). | |
virtual void | unregisterNotice (QtDisplayPanel *) |
virtual void | setOptions (Record opts, Bool emitAll=False) |
Apply option values to the DisplayData. | |
void | emitOptionsChanged (Record changedOpts) |
void | setPlotTitle () |
virtual void | checkAxis (bool changeSpectrum=true) |
const String & | getColormap () |
void | setColormap (const String &clrMapName) |
void | setHistogramColorMapping (float minValue, float maxValue, float powerScale) |
void | setSaturationRange (double min, double max) |
This is used to get the display data to set a saturation range from another image. | |
Signals | |
void | optionsChanged (Record changedOptions) |
Signals changes the DD has made internally to option values, limits, etc., that ui (if any) will want to reflect. | |
void | qddError (String errmsg) |
Emitted when problems encountered (in setOptions, e.g. | |
void | optionsSet () |
Emitted when options successfully set without error. | |
void | colorBarChange () |
Emitted when color bars may need rearrangement on panels where this QDD is registered. | |
void | trackingChange (QtDisplayData *) |
Emitted when something in the DD (besides mouse movement) means that tracking data for this QDD could be usefully recomputed and redisplayed. | |
void | axisChanged (String, String, String, std::vector< int >) |
(mkApr2012) axisChanged and axisChangedProfile have the identical functionality, to send out the names of the current x/y/z axes. | |
void | axisChangedProfile (String, String, String, std::vector< int >) |
void | spectrumChanged (String spcTypeUnit, String spcRval, String spcSys) |
void | statsReady (const String &) |
void | showColorHistogram (QtDisplayData *) |
void | globalOptionsChanged (QtDisplayData *, Record) |
Public Member Functions | |
QtDisplayData (QtDisplayPanelGui *panel, String path, String dataType, String displayType, const viewer::DisplayDataOptions &ddo=viewer::DisplayDataOptions(), const viewer::ImageProperties &props=viewer::ImageProperties()) | |
~QtDisplayData () | |
String | getPositionInformation (const Vector< double > world) |
virtual std::string | name () |
virtual const char * | nameChrs () |
virtual void | setName (const std::string &name) |
virtual std::string | dataType () const |
virtual std::string | displayType () |
Bool | isRaster () const |
Display Type. | |
Bool | isContour () const |
Bool | isVector () const |
Bool | isMarker () const |
Bool | isImage () const |
virtual void | delTmpData () const |
virtual Bool delTmpData() const; | |
virtual void | setDelTmpData (Bool delTmpData) |
std::string | description () const |
std::string | path () const |
virtual String | errMsg () |
virtual Record | getOptions () |
retrieve the Record of options. | |
virtual DisplayData * | dd () |
retrieve wrapped DisplayData. | |
virtual Bool | isEmpty () |
Did creation of wrapped DD fail? | |
virtual Display::DisplayDataType | ddType () |
Possible valuse: Raster, Vector, Annotation, CanvasAnnotation. | |
bool | isSkyCatalog () const |
bool | isMS () const |
virtual Bool | usesTracking () |
Can the QDD display tracking information? | |
virtual pair< String, String > | trackingInfo (const WCMotionEvent &ev) |
Returns a String with value and position information, suitable for a cursor tracking display. | |
virtual ImageRegion * | mouseToImageRegion (Record mouseRegion, WorldCanvasHolder *wch, Bool allChannels=False, Bool allPols=False, Bool allRAs=False, Bool allDECs=False, Bool allAxes=False) |
Convert 2-D 'pseudoregion' (or 'mouse region' Record, from the region mouse tools) to a full Image Region, with same number of axes as the DD's Lattice (and relative to its DisplayCoordinateSystem). | |
virtual ImageRegion * | mouseToImageRegion (Record mouseRegion, WorldCanvasHolder *wch, String &extChan, String &extPol) |
virtual Bool | printRegionStats (ImageRegion &imgReg) |
Print statistics on image for given region. | |
virtual Bool | printLayerStats (ImageRegion &imgReg) |
virtual Int | getAxisIndex (String axtype=String("Spectral")) |
Return the number of the spectral axis within the DD's original image lattice and coordinate system (-1 if none). | |
virtual Bool | wouldDisplayColorBar () |
Would this QDD want to display a color bar if registered and conformant for drawing? | |
virtual Bool | hasColorBar () |
Is a color bar WDD defined for this QDD? | |
virtual Float | colorBarSizeAdj () |
User-requested adjustment to colorbar thickness (will probably remain at the default value of 1). | |
virtual Float | colorBarLabelSpaceAdj () |
Used (by QtDisplayPanel) to compute margin space for colorbar labels. | |
virtual WedgeDD * | colorBar () |
Retrieve color bar ('wedge') DD. | |
Colormap * | getColorMap () const |
virtual Bool | hasColormap () const |
Does this DD currently own a colormap? | |
virtual bool | isValidColormap (const QString &name) const |
Different DisplayDatas *could* have different colormap palettes thus this is non-static and specific to a display data. | |
void | setColorMap (Colormap *colorMap) |
Bool | setColormapAlpha (uInt alpha) |
Set the transparence of the color map for overlaying images. | |
void | removeColorMap (const String &name) |
virtual Bool | getCMShiftSlope (Vector< Float > ¶ms) const |
Get/set colormap shift/slope ('fiddle') and brightness/contrast settings. | |
virtual Bool | getCMBrtCont (Vector< Float > ¶ms) const |
virtual Bool | setCMShiftSlope (const Vector< Float > ¶ms) |
virtual Bool | setCMBrtCont (const Vector< Float > ¶ms) |
String | getZAxisName () |
Return the name of the z-axis. | |
SHARED_PTR< ImageInterface < Float > > | imageInterface () |
const viewer::ImageProperties & | imageProperties () |
void | unlock () |
force unlocking of paged images | |
void | init () |
void | initImage () |
void | setImage (SHARED_PTR< ImageInterface< Float > > img) |
void | setHistogramColorProperties (bool invert, int logScale) |
Static Public Member Functions | |
static std::string | path (const DisplayData *) |
static void | setGlobalColorOptions (bool global) |
Public Attributes | |
const std::string | DISPLAY_RASTER |
const std::string | DISPLAY_CONTOUR |
const std::string | DISPLAY_VECTOR |
const std::string | DISPLAY_MARKER |
Static Public Attributes | |
static const String | WEDGE_LABEL_CHAR_SIZE |
static const String | WEDGE_YES |
Protected Types | |
typedef std::map< const DisplayData *, QtDisplayData * > | data_to_qtdata_map_type |
Protected Slots | |
virtual void | setColorBarOrientation_ () |
Set the color bar orientation option according to the master value stored in the QtViewerBase (panel_->viewer()->colorBarsVertical_). | |
Protected Member Functions | |
virtual void | getInitialAxes_ (Block< uInt > &axs, const IPosition &shape, const DisplayCoordinateSystem &cs) |
Heuristic used internally to set initial axes to display on X, Y and Z, for PADDs. | |
virtual void | setColormap_ (const String &clrMapName, bool invertChanged=false) |
Set named colormap onto underlying dd (called from public setOptions()). | |
virtual void | removeColormap_ () |
virtual Bool | usesClrMap_ () |
Does this DD use/need a public colormap? | |
virtual Bool | usesColorBar_ () |
Can this QDD use a color bar? | |
Static Protected Attributes | |
static data_to_qtdata_map_type | dd_source_map |
Private Types | |
typedef ColormapDefinition::colormapnamemap | colormapnamemap |
All the valid ('primary') colormap names. | |
typedef std::map< String, Colormap * > | colormapmap |
Set of colormaps currently or previously used by this DD. | |
Private Member Functions | |
QtDisplayData () | |
Not intended for use. | |
bool | setColorBarOptions (Record &opts, Record &chgdOpts) |
void | checkGlobalChange (Record &chgdOpts) |
void | done () |
void | initGlobalColorSettings () |
If global color settings is checked and a new QtDisplayData is added, it should pick up the global color settings already in place. | |
void | initColorSettings () |
Record | getGlobalColorChangeRecord (Record &opts) const |
Private Attributes | |
QtDisplayPanelGui * | panel_ |
std::string | path_ |
std::string | dataType_ |
std::string | displayType_ |
const std::string | TYPE_IMAGE |
const std::string | SKY_CATALOG |
const std::string | MS |
SHARED_PTR< ImageInterface < Float > > | im_ |
SHARED_PTR< ImageInterface < Complex > > | cim_ |
DisplayData * | dd_ |
std::string | name_ |
bool | invertColorMap |
int | logScaleColorMap |
String | clrMapName_ |
Name of colormap used by dd_ ("" if none). | |
String | restoreColorMapName |
Color maps can be removed. | |
Colormap * | clrMap_ |
Will be set onto underlying dd_ if needed (0 if none). | |
DParameterChoice * | clrMapOpt_ |
Parses colormap choice out of a setOptions record. | |
colormapnamemap | clrMapNames_ |
colormapmap | clrMaps_ |
String | errMsg_ |
Latest error message, retrievable via errMsg(). | |
WedgeDD * | colorBar_ |
The DD that draws the color bar key for the main DD -- 0 if N/A. | |
DParameterChoice * | colorBarDisplayOpt_ |
Is color bar display turned on? ("Yes" / "No"). | |
DParameterRange< Float > * | colorBarThicknessOpt_ |
Manual user adjustment factor for color bar thickness. | |
DParameterRange< Float > * | colorBarLabelSpaceOpt_ |
Manual user adjustment factor for color bar label space. | |
DParameterChoice * | colorBarOrientationOpt_ |
"horizontal" / "vertical" | |
DParameterRange< Float > * | colorBarCharSizeOpt_ |
Size of label characters on color bar (affects margins only). | |
viewer::ImageProperties | image_properties |
Static Private Attributes | |
static bool | globalColorSettings |
static const String | COLOR_MAP |
Definition at line 65 of file QtDisplayData.qo.h.
typedef std::map<String, Colormap*> casa::QtDisplayData::colormapmap [private] |
Set of colormaps currently or previously used by this DD.
Once a Colormap is created, it is retained for the life of the DD.
Definition at line 500 of file QtDisplayData.qo.h.
typedef ColormapDefinition::colormapnamemap casa::QtDisplayData::colormapnamemap [private] |
All the valid ('primary') colormap names.
(This interface doesn't support use of 'synonym' names).
Definition at line 492 of file QtDisplayData.qo.h.
typedef std::map<const DisplayData*,QtDisplayData*> casa::QtDisplayData::data_to_qtdata_map_type [protected] |
Definition at line 445 of file QtDisplayData.qo.h.
casa::QtDisplayData::QtDisplayData | ( | QtDisplayPanelGui * | panel, | |
String | path, | |||
String | dataType, | |||
String | displayType, | |||
const viewer::DisplayDataOptions & | ddo = viewer::DisplayDataOptions() , |
|||
const viewer::ImageProperties & | props = viewer::ImageProperties() | |||
) |
casa::QtDisplayData::~QtDisplayData | ( | ) |
casa::QtDisplayData::QtDisplayData | ( | ) | [inline, private] |
Not intended for use.
Definition at line 450 of file QtDisplayData.qo.h.
void casa::QtDisplayData::axisChanged | ( | String | , | |
String | , | |||
String | , | |||
std::vector< int > | ||||
) | [signal] |
(mkApr2012) axisChanged and axisChangedProfile have the identical functionality, to send out the names of the current x/y/z axes.
The profiler needs to be notified first such subsequent plot request from regions are accepted. For that reason there is the signal axisChangedProfile which connects to the profiler and is emitted prior to axisChanged (in QtDisplayData::checkAxis())
void casa::QtDisplayData::axisChangedProfile | ( | String | , | |
String | , | |||
String | , | |||
std::vector< int > | ||||
) | [signal] |
virtual void casa::QtDisplayData::checkAxis | ( | bool | changeSpectrum = true |
) | [virtual, slot] |
void casa::QtDisplayData::checkGlobalChange | ( | Record & | chgdOpts | ) | [private] |
virtual WedgeDD* casa::QtDisplayData::colorBar | ( | ) | [inline, virtual] |
Retrieve color bar ('wedge') DD.
(0 if none. It will exist if hasColorBar() is True). (Not for general use).
Definition at line 247 of file QtDisplayData.qo.h.
References colorBar_.
void casa::QtDisplayData::colorBarChange | ( | ) | [signal] |
Emitted when color bars may need rearrangement on panels where this QDD is registered.
QDP connects this to its checkColorBars_() slot.
virtual Float casa::QtDisplayData::colorBarLabelSpaceAdj | ( | ) | [virtual] |
Used (by QtDisplayPanel) to compute margin space for colorbar labels.
It is the (pgplot) character size for colorbar labels (default 1.2) times a label space 'adjustment' user option (default 1.).
virtual Float casa::QtDisplayData::colorBarSizeAdj | ( | ) | [inline, virtual] |
User-requested adjustment to colorbar thickness (will probably remain at the default value of 1).
Used by QtDisplayPanel to aid in sizing colorbar panels.
Definition at line 229 of file QtDisplayData.qo.h.
References colorBarThicknessOpt_, casacore::max(), casa::DParameterRange< T >::maximum(), casacore::min(), casa::DParameterRange< T >::minimum(), casa::DParameterRange< T >::value(), and wouldDisplayColorBar().
virtual std::string casa::QtDisplayData::dataType | ( | ) | const [inline, virtual] |
Definition at line 93 of file QtDisplayData.qo.h.
References dataType_.
virtual DisplayData* casa::QtDisplayData::dd | ( | ) | [inline, virtual] |
virtual Display::DisplayDataType casa::QtDisplayData::ddType | ( | ) | [virtual] |
Possible valuse: Raster, Vector, Annotation, CanvasAnnotation.
Referenced by usesTracking().
virtual void casa::QtDisplayData::delTmpData | ( | ) | const [virtual] |
virtual Bool delTmpData() const;
std::string casa::QtDisplayData::description | ( | ) | const |
virtual std::string casa::QtDisplayData::displayType | ( | ) | [inline, virtual] |
Definition at line 96 of file QtDisplayData.qo.h.
References displayType_.
void casa::QtDisplayData::done | ( | ) | [private] |
void casa::QtDisplayData::emitOptionsChanged | ( | Record | changedOpts | ) | [slot] |
virtual String casa::QtDisplayData::errMsg | ( | ) | [inline, virtual] |
Definition at line 116 of file QtDisplayData.qo.h.
References errMsg_.
virtual Int casa::QtDisplayData::getAxisIndex | ( | String | axtype = String("Spectral") |
) | [virtual] |
Return the number of the spectral axis within the DD's original image lattice and coordinate system (-1 if none).
virtual Int spectralAxis();
virtual Bool casa::QtDisplayData::getCMBrtCont | ( | Vector< Float > & | params | ) | const [virtual] |
virtual Bool casa::QtDisplayData::getCMShiftSlope | ( | Vector< Float > & | params | ) | const [virtual] |
Get/set colormap shift/slope ('fiddle') and brightness/contrast settings.
(At present this is usually set for the PC's current colormap via mouse tools. These may want to to into get/setOptions (thus into guis) eventually...). Return value will be False if DD has no colormap [at present].
const String& casa::QtDisplayData::getColormap | ( | ) | [inline, slot] |
Definition at line 329 of file QtDisplayData.qo.h.
References clrMapName_.
Colormap* casa::QtDisplayData::getColorMap | ( | ) | const |
Record casa::QtDisplayData::getGlobalColorChangeRecord | ( | Record & | opts | ) | const [private] |
virtual void casa::QtDisplayData::getInitialAxes_ | ( | Block< uInt > & | axs, | |
const IPosition & | shape, | |||
const DisplayCoordinateSystem & | cs | |||
) | [protected, virtual] |
Heuristic used internally to set initial axes to display on X, Y and Z, for PADDs.
shape should be that of Image/Array, and have same nelements as axs. On return, axs[0], axs[1] and (if it exists) axs[2] will be axes to display initially on X, Y, and animator, respectively. If you pass a CS for the image, it will give special consideration to Spectral [/ Direction] axes (users expect their spectral axes on Z, e.g.)
virtual Record casa::QtDisplayData::getOptions | ( | ) | [virtual] |
retrieve the Record of options.
This is similar to a 'Parameter Set', containing option types, default values, and meta-information, suitable for building a user interface for controlling the DD.
Referenced by casa::QtDisplayDataGui::QtDisplayDataGui().
String casa::QtDisplayData::getPositionInformation | ( | const Vector< double > | world | ) |
String casa::QtDisplayData::getZAxisName | ( | ) |
Return the name of the z-axis.
void casa::QtDisplayData::globalOptionsChanged | ( | QtDisplayData * | , | |
Record | ||||
) | [signal] |
virtual Bool casa::QtDisplayData::hasColorBar | ( | ) | [inline, virtual] |
Is a color bar WDD defined for this QDD?
Definition at line 217 of file QtDisplayData.qo.h.
References colorBar_.
Referenced by wouldDisplayColorBar().
virtual Bool casa::QtDisplayData::hasColormap | ( | ) | const [inline, virtual] |
Does this DD currently own a colormap?
Definition at line 255 of file QtDisplayData.qo.h.
References clrMap_.
SHARED_PTR<ImageInterface<Float> > casa::QtDisplayData::imageInterface | ( | ) | [inline] |
Definition at line 285 of file QtDisplayData.qo.h.
References im_.
const viewer::ImageProperties& casa::QtDisplayData::imageProperties | ( | ) |
void casa::QtDisplayData::init | ( | ) |
void casa::QtDisplayData::initColorSettings | ( | ) | [private] |
void casa::QtDisplayData::initGlobalColorSettings | ( | ) | [private] |
If global color settings is checked and a new QtDisplayData is added, it should pick up the global color settings already in place.
void casa::QtDisplayData::initImage | ( | ) |
Bool casa::QtDisplayData::isContour | ( | ) | const |
virtual Bool casa::QtDisplayData::isEmpty | ( | ) | [inline, virtual] |
Did creation of wrapped DD fail?
Definition at line 133 of file QtDisplayData.qo.h.
References dd_.
Referenced by usesTracking().
Bool casa::QtDisplayData::isImage | ( | ) | const |
Bool casa::QtDisplayData::isMarker | ( | ) | const |
bool casa::QtDisplayData::isMS | ( | ) | const |
Bool casa::QtDisplayData::isRaster | ( | ) | const |
Display Type.
Referenced by usesClrMap_(), and usesColorBar_().
bool casa::QtDisplayData::isSkyCatalog | ( | ) | const |
virtual bool casa::QtDisplayData::isValidColormap | ( | const QString & | name | ) | const [virtual] |
Different DisplayDatas *could* have different colormap palettes thus this is non-static and specific to a display data.
Bool casa::QtDisplayData::isVector | ( | ) | const |
virtual ImageRegion* casa::QtDisplayData::mouseToImageRegion | ( | Record | mouseRegion, | |
WorldCanvasHolder * | wch, | |||
String & | extChan, | |||
String & | extPol | |||
) | [virtual] |
virtual ImageRegion* casa::QtDisplayData::mouseToImageRegion | ( | Record | mouseRegion, | |
WorldCanvasHolder * | wch, | |||
Bool | allChannels = False , |
|||
Bool | allPols = False , |
|||
Bool | allRAs = False , |
|||
Bool | allDECs = False , |
|||
Bool | allAxes = False | |||
) | [virtual] |
Convert 2-D 'pseudoregion' (or 'mouse region' Record, from the region mouse tools) to a full Image Region, with same number of axes as the DD's Lattice (and relative to its DisplayCoordinateSystem).
Return value is 0 if the conversion can't be made or does not apply to this DD for any reason (ignored by non-Lattice DDs, e.g.).
If allChannels==True, the region is extended along spectral axis, if it exists (but ONLY if the spectral axis is not also on display; the visible mouse region always defines region shape on the display axes).
If allAxes is True, the region is extended over all (non-display) axes (including any spectral axis; allAxes=True makes the allChannels setting irrelevant).
If both allchannels and allAxes are False (the default), the region will be confined to the currently-displayed plane.
-->If the returned ImageRegion* is non-zero, the caller -->is responsible for deleting it.
virtual std::string casa::QtDisplayData::name | ( | ) | [inline, virtual] |
Definition at line 80 of file QtDisplayData.qo.h.
References name_.
Referenced by casa::QtDisplayDataGui::QtDisplayDataGui().
virtual const char* casa::QtDisplayData::nameChrs | ( | ) | [inline, virtual] |
Definition at line 83 of file QtDisplayData.qo.h.
References name_.
void casa::QtDisplayData::optionsChanged | ( | Record | changedOptions | ) | [signal] |
Signals changes the DD has made internally to option values, limits, etc., that ui (if any) will want to reflect.
Calling setOptions() to change one option value may cause this to be emitted with any other options which have changed as a result.
void casa::QtDisplayData::optionsSet | ( | ) | [signal] |
Emitted when options successfully set without error.
std::string casa::QtDisplayData::path | ( | ) | const [inline] |
Definition at line 112 of file QtDisplayData.qo.h.
References path_.
static std::string casa::QtDisplayData::path | ( | const DisplayData * | ) | [static] |
virtual Bool casa::QtDisplayData::printLayerStats | ( | ImageRegion & | imgReg | ) | [virtual] |
virtual Bool casa::QtDisplayData::printRegionStats | ( | ImageRegion & | imgReg | ) | [virtual] |
Print statistics on image for given region.
Returns False if unable to do so.
void casa::QtDisplayData::qddError | ( | String | errmsg | ) | [signal] |
Emitted when problems encountered (in setOptions, e.g.
)
virtual void casa::QtDisplayData::registerNotice | ( | QtDisplayPanel * | ) | [virtual, slot] |
(Should only be used by QtDisplayPanels to notify the QDD that it has been registered, or is about to be unregistered, on the QDP).
void casa::QtDisplayData::removeColorMap | ( | const String & | name | ) |
virtual void casa::QtDisplayData::removeColormap_ | ( | ) | [inline, protected, virtual] |
Definition at line 426 of file QtDisplayData.qo.h.
References setColormap_().
virtual Bool casa::QtDisplayData::setCMBrtCont | ( | const Vector< Float > & | params | ) | [virtual] |
virtual Bool casa::QtDisplayData::setCMShiftSlope | ( | const Vector< Float > & | params | ) | [virtual] |
bool casa::QtDisplayData::setColorBarOptions | ( | Record & | opts, | |
Record & | chgdOpts | |||
) | [private] |
virtual void casa::QtDisplayData::setColorBarOrientation_ | ( | ) | [protected, virtual, slot] |
Set the color bar orientation option according to the master value stored in the QtViewerBase (panel_->viewer()->colorBarsVertical_).
Connected to QtViewerBase's colorBarOrientationChange() signal; also called during initialization.
void casa::QtDisplayData::setColormap | ( | const String & | clrMapName | ) | [inline, slot] |
Definition at line 332 of file QtDisplayData.qo.h.
References setColormap_().
void casa::QtDisplayData::setColorMap | ( | Colormap * | colorMap | ) |
virtual void casa::QtDisplayData::setColormap_ | ( | const String & | clrMapName, | |
bool | invertChanged = false | |||
) | [protected, virtual] |
Set named colormap onto underlying dd (called from public setOptions()).
Pass "" to remove/delete any existing colormap for the QDD. In the case that no colormap is set on a dd that needs one (raster dds, mostly), the drawing canvas will provide a default. See ColormapDefinition.h, and the Table gui/colormaps/default.tbl (in the data repository) for the list of valid default colormap names (and information on creating/installing custom ones). If an invalid name is passed, an (ignorable) error message is signalled, and the dd's colormap will remain unchanged.
Referenced by removeColormap_(), and setColormap().
Bool casa::QtDisplayData::setColormapAlpha | ( | uInt | alpha | ) |
Set the transparence of the color map for overlaying images.
virtual void casa::QtDisplayData::setDelTmpData | ( | Bool | delTmpData | ) | [virtual] |
static void casa::QtDisplayData::setGlobalColorOptions | ( | bool | global | ) | [static] |
void casa::QtDisplayData::setHistogramColorMapping | ( | float | minValue, | |
float | maxValue, | |||
float | powerScale | |||
) | [slot] |
void casa::QtDisplayData::setHistogramColorProperties | ( | bool | invert, | |
int | logScale | |||
) |
void casa::QtDisplayData::setImage | ( | SHARED_PTR< ImageInterface< Float > > | img | ) |
virtual void casa::QtDisplayData::setName | ( | const std::string & | name | ) | [inline, virtual] |
Definition at line 86 of file QtDisplayData.qo.h.
References name_.
virtual void casa::QtDisplayData::setOptions | ( | Record | opts, | |
Bool | emitAll = False | |||
) | [virtual, slot] |
Apply option values to the DisplayData.
Method will emit optionsChanged() if other option values, limits, etc. should also change as a result. 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::QtDisplayData::setPlotTitle | ( | ) | [slot] |
void casa::QtDisplayData::setSaturationRange | ( | double | min, | |
double | max | |||
) | [slot] |
This is used to get the display data to set a saturation range from another image.
void casa::QtDisplayData::showColorHistogram | ( | QtDisplayData * | ) | [signal] |
void casa::QtDisplayData::spectrumChanged | ( | String | spcTypeUnit, | |
String | spcRval, | |||
String | spcSys | |||
) | [signal] |
void casa::QtDisplayData::statsReady | ( | const String & | ) | [signal] |
void casa::QtDisplayData::trackingChange | ( | QtDisplayData * | ) | [signal] |
Emitted when something in the DD (besides mouse movement) means that tracking data for this QDD could be usefully recomputed and redisplayed.
Underlying DDs can indicate this in setOptions by defining the "trackingchange" field in chgdOpts (recOut).
virtual pair<String,String> casa::QtDisplayData::trackingInfo | ( | const WCMotionEvent & | ev | ) | [virtual] |
Returns a String with value and position information, suitable for a cursor tracking display.
void casa::QtDisplayData::unlock | ( | ) |
force unlocking of paged images
virtual void casa::QtDisplayData::unregisterNotice | ( | QtDisplayPanel * | ) | [virtual, slot] |
virtual Bool casa::QtDisplayData::usesClrMap_ | ( | ) | [inline, protected, virtual] |
Does this DD use/need a public colormap?
Definition at line 434 of file QtDisplayData.qo.h.
References displayType_, and isRaster().
virtual Bool casa::QtDisplayData::usesColorBar_ | ( | ) | [inline, protected, virtual] |
Can this QDD use a color bar?
Definition at line 441 of file QtDisplayData.qo.h.
References isRaster().
virtual Bool casa::QtDisplayData::usesTracking | ( | ) | [inline, virtual] |
Can the QDD display tracking information?
Definition at line 146 of file QtDisplayData.qo.h.
References casa::Display::Annotation, casa::Display::CanvasAnnotation, ddType(), and isEmpty().
virtual Bool casa::QtDisplayData::wouldDisplayColorBar | ( | ) | [inline, virtual] |
Would this QDD want to display a color bar if registered and conformant for drawing?
Definition at line 203 of file QtDisplayData.qo.h.
References colorBarDisplayOpt_, hasColorBar(), casa::DParameterChoice::value(), and WEDGE_YES.
Referenced by colorBarSizeAdj().
SHARED_PTR<ImageInterface<Complex> > casa::QtDisplayData::cim_ [private] |
Definition at line 469 of file QtDisplayData.qo.h.
Colormap* casa::QtDisplayData::clrMap_ [private] |
Will be set onto underlying dd_ if needed (0 if none).
Definition at line 485 of file QtDisplayData.qo.h.
Referenced by hasColormap().
String casa::QtDisplayData::clrMapName_ [private] |
Name of colormap used by dd_ ("" if none).
Definition at line 478 of file QtDisplayData.qo.h.
Referenced by getColormap().
Definition at line 493 of file QtDisplayData.qo.h.
DParameterChoice* casa::QtDisplayData::clrMapOpt_ [private] |
Parses colormap choice out of a setOptions record.
Definition at line 488 of file QtDisplayData.qo.h.
colormapmap casa::QtDisplayData::clrMaps_ [private] |
Definition at line 501 of file QtDisplayData.qo.h.
const String casa::QtDisplayData::COLOR_MAP [static, private] |
Definition at line 502 of file QtDisplayData.qo.h.
WedgeDD* casa::QtDisplayData::colorBar_ [private] |
The DD that draws the color bar key for the main DD -- 0 if N/A.
Definition at line 512 of file QtDisplayData.qo.h.
Referenced by colorBar(), and hasColorBar().
DParameterRange<Float>* casa::QtDisplayData::colorBarCharSizeOpt_ [private] |
Size of label characters on color bar (affects margins only).
Definition at line 541 of file QtDisplayData.qo.h.
Is color bar display turned on? ("Yes" / "No").
Definition at line 524 of file QtDisplayData.qo.h.
Referenced by wouldDisplayColorBar().
DParameterRange<Float>* casa::QtDisplayData::colorBarLabelSpaceOpt_ [private] |
Manual user adjustment factor for color bar label space.
Hopefully the automatic choice (by QtDisplayPanel) will be adequate in most cases, and this can remain at the default value of 1.
Definition at line 534 of file QtDisplayData.qo.h.
"horizontal" / "vertical"
Definition at line 537 of file QtDisplayData.qo.h.
DParameterRange<Float>* casa::QtDisplayData::colorBarThicknessOpt_ [private] |
Manual user adjustment factor for color bar thickness.
Hopefully the automatic choice (by QtDisplayPanel) will be adequate in most cases, and this can remain at the default value of 1.
Definition at line 529 of file QtDisplayData.qo.h.
Referenced by colorBarSizeAdj().
std::string casa::QtDisplayData::dataType_ [private] |
Definition at line 463 of file QtDisplayData.qo.h.
Referenced by dataType().
DisplayData* casa::QtDisplayData::dd_ [private] |
Definition at line 470 of file QtDisplayData.qo.h.
data_to_qtdata_map_type casa::QtDisplayData::dd_source_map [static, protected] |
Definition at line 446 of file QtDisplayData.qo.h.
const std::string casa::QtDisplayData::DISPLAY_CONTOUR |
Definition at line 90 of file QtDisplayData.qo.h.
const std::string casa::QtDisplayData::DISPLAY_MARKER |
Definition at line 92 of file QtDisplayData.qo.h.
const std::string casa::QtDisplayData::DISPLAY_RASTER |
Definition at line 89 of file QtDisplayData.qo.h.
const std::string casa::QtDisplayData::DISPLAY_VECTOR |
Definition at line 91 of file QtDisplayData.qo.h.
std::string casa::QtDisplayData::displayType_ [private] |
Definition at line 463 of file QtDisplayData.qo.h.
Referenced by displayType(), and usesClrMap_().
String casa::QtDisplayData::errMsg_ [private] |
Latest error message, retrievable via errMsg().
(Where possible, errors are indicated via the qddError signal rather than a throw, and the code attempts something sensible in case the caller chooses to ignore it).
Definition at line 508 of file QtDisplayData.qo.h.
Referenced by errMsg().
bool casa::QtDisplayData::globalColorSettings [static, private] |
Definition at line 451 of file QtDisplayData.qo.h.
SHARED_PTR<ImageInterface<Float> > casa::QtDisplayData::im_ [private] |
Definition at line 468 of file QtDisplayData.qo.h.
Referenced by imageInterface().
Definition at line 543 of file QtDisplayData.qo.h.
bool casa::QtDisplayData::invertColorMap [private] |
Definition at line 474 of file QtDisplayData.qo.h.
int casa::QtDisplayData::logScaleColorMap [private] |
Definition at line 475 of file QtDisplayData.qo.h.
const std::string casa::QtDisplayData::MS [private] |
Definition at line 467 of file QtDisplayData.qo.h.
std::string casa::QtDisplayData::name_ [private] |
Definition at line 472 of file QtDisplayData.qo.h.
Referenced by name(), nameChrs(), and setName().
QtDisplayPanelGui* casa::QtDisplayData::panel_ [private] |
Definition at line 462 of file QtDisplayData.qo.h.
std::string casa::QtDisplayData::path_ [private] |
Definition at line 463 of file QtDisplayData.qo.h.
Referenced by path().
String casa::QtDisplayData::restoreColorMapName [private] |
Color maps can be removed.
In such a case, the restoreColorMapName holds the previous one so we can reset to that in case the one we are using is removed.
Definition at line 482 of file QtDisplayData.qo.h.
const std::string casa::QtDisplayData::SKY_CATALOG [private] |
Definition at line 466 of file QtDisplayData.qo.h.
const std::string casa::QtDisplayData::TYPE_IMAGE [private] |
Definition at line 465 of file QtDisplayData.qo.h.
const String casa::QtDisplayData::WEDGE_LABEL_CHAR_SIZE [static] |
Definition at line 292 of file QtDisplayData.qo.h.
const String casa::QtDisplayData::WEDGE_YES [static] |
Definition at line 293 of file QtDisplayData.qo.h.
Referenced by wouldDisplayColorBar().