casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Types | Protected Slots | Protected Member Functions | Static Protected Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
casa::QtDisplayData Class Reference

#include <QtDisplayData.qo.h>

Inheritance diagram for casa::QtDisplayData:

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). More...
 
virtual void unregisterNotice (QtDisplayPanel *)
 
virtual void setOptions (casacore::Record opts, bool emitAll=false)
 Apply option values to the DisplayData. More...
 
void emitOptionsChanged (casacore::Record changedOpts)
 
void setPlotTitle ()
 
virtual void checkAxis (bool changeSpectrum=true)
 
const casacore::StringgetColormap ()
 
void setColormap (const casacore::String &clrMapName)
 
void setRasterPowerScaling (float powerScale)
 
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. More...
 

Signals

void optionsChanged (casacore::Record changedOptions)
 Signals changes the DD has made internally to option values, limits, etc., that ui (if any) will want to reflect. More...
 
void qddError (casacore::String errmsg)
 Emitted when problems encountered (in setOptions, e.g.) More...
 
void optionsSet ()
 Emitted when options successfully set without error. More...
 
void colorBarChange ()
 Emitted when color bars may need rearrangement on panels where this QDD is registered. More...
 
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. More...
 
void axisChanged (casacore::String, casacore::String, casacore::String, std::vector< int >)
 (mkApr2012) axisChanged and axisChangedProfile have the identical functionality, to send out the names of the current x/y/z axes. More...
 
void axisChangedProfile (casacore::String, casacore::String, casacore::String, std::vector< int >)
 
void spectrumChanged (casacore::String spcTypeUnit, casacore::String spcRval, casacore::String spcSys)
 
void statsReady (const casacore::String &)
 
void showColorHistogram (QtDisplayData *)
 
void globalOptionsChanged (QtDisplayData *, casacore::Record)
 

Public Member Functions

 QtDisplayData (QtDisplayPanelGui *panel, casacore::String path, casacore::String dataType, casacore::String displayType, const viewer::DisplayDataOptions &ddo=viewer::DisplayDataOptions(), const viewer::ImageProperties &props=viewer::ImageProperties())
 
 ~QtDisplayData ()
 
casacore::String getPositionInformation (const casacore::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. More...
 
bool isContour () const
 
bool isVector () const
 
bool isMarker () const
 
bool isImage () const
 
virtual void delTmpData () const
 virtual bool delTmpData() const; More...
 
virtual void setDelTmpData (bool delTmpData)
 
std::string description () const
 
std::string path () const
 
virtual casacore::String errMsg ()
 
virtual casacore::Record getOptions ()
 retrieve the casacore::Record of options. More...
 
virtual DisplayDatadd ()
 retrieve wrapped DisplayData. More...
 
virtual bool isEmpty ()
 Did creation of wrapped DD fail? More...
 
virtual Display::DisplayDataType ddType ()
 Possible valuse: Raster, casacore::Vector, Annotation, CanvasAnnotation. More...
 
bool isSkyCatalog () const
 
bool isMS () const
 
virtual bool usesTracking ()
 Can the QDD display tracking information? More...
 
virtual std::pair
< casacore::String,
casacore::String
trackingInfo (const WCMotionEvent &ev)
 Returns a casacore::String with value and position information, suitable for a cursor tracking display. More...
 
virtual casacore::ImageRegionmouseToImageRegion (casacore::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' casacore::Record, from the region mouse tools) to a full Image Region, with same number of axes as the DD's casacore::Lattice (and relative to its DisplayCoordinateSystem). More...
 
virtual casacore::ImageRegionmouseToImageRegion (casacore::Record mouseRegion, WorldCanvasHolder *wch, casacore::String &extChan, casacore::String &extPol)
 
virtual bool printRegionStats (casacore::ImageRegion &imgReg)
 Print statistics on image for given region. More...
 
virtual bool printLayerStats (casacore::ImageRegion &imgReg)
 
virtual int getAxisIndex (casacore::String axtype=casacore::String("Spectral"))
 Return the number of the spectral axis within the DD's original image lattice and coordinate system (-1 if none). More...
 
virtual bool wouldDisplayColorBar ()
 Would this QDD want to display a color bar if registered and conformant for drawing? More...
 
virtual bool hasColorBar ()
 Is a color bar WDD defined for this QDD? More...
 
virtual float colorBarSizeAdj ()
 User-requested adjustment to colorbar thickness (will probably remain at the default value of 1). More...
 
virtual float colorBarLabelSpaceAdj ()
 Used (by QtDisplayPanel) to compute margin space for colorbar labels. More...
 
virtual WedgeDDcolorBar ()
 Retrieve color bar ('wedge') DD. More...
 
ColormapgetColorMap () const
 
virtual bool hasColormap () const
 Does this DD currently own a colormap? More...
 
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. More...
 
void setColorMap (Colormap *colorMap)
 
bool setColormapAlpha (casacore::uInt alpha)
 Set the transparence of the color map for overlaying images. More...
 
void removeColorMap (const casacore::String &name)
 
virtual bool getCMShiftSlope (casacore::Vector< float > &params) const
 Get/set colormap shift/slope ('fiddle') and brightness/contrast settings. More...
 
virtual bool getCMBrtCont (casacore::Vector< float > &params) const
 
virtual bool setCMShiftSlope (const casacore::Vector< float > &params)
 
virtual bool setCMBrtCont (const casacore::Vector< float > &params)
 
casacore::String getZAxisName ()
 Return the name of the z-axis. More...
 
std::shared_ptr
< casacore::ImageInterface
< float > > 
imageInterface ()
 
const viewer::ImagePropertiesimageProperties ()
 
void unlock ()
 force unlocking of paged images More...
 
void init ()
 
void initImage ()
 
void setImage (std::shared_ptr< casacore::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 casacore::String WEDGE_LABEL_CHAR_SIZE
 
static const casacore::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_). More...
 

Protected Member Functions

virtual void getInitialAxes_ (casacore::Block< casacore::uInt > &axs, const casacore::IPosition &shape, const DisplayCoordinateSystem &cs)
 Heuristic used internally to set initial axes to display on X, Y and Z, for PADDs. More...
 
virtual void setColormap_ (const casacore::String &clrMapName, bool invertChanged=false)
 Set named colormap onto underlying dd (called from public setOptions()). More...
 
virtual void removeColormap_ ()
 
virtual bool usesClrMap_ ()
 Does this DD use/need a public colormap? More...
 
virtual bool usesColorBar_ ()
 Can this QDD use a color bar? More...
 

Static Protected Attributes

static data_to_qtdata_map_type dd_source_map
 

Private Types

typedef
ColormapDefinition::colormapnamemap 
colormapnamemap
 All the valid ('primary') colormap names. More...
 
typedef std::map
< casacore::String, Colormap * > 
colormapmap
 Set of colormaps currently or previously used by this DD. More...
 

Private Member Functions

 QtDisplayData ()
 Not intended for use. More...
 
bool setColorBarOptions (casacore::Record &opts, casacore::Record &chgdOpts)
 
void checkGlobalChange (casacore::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. More...
 
void initColorSettings ()
 
casacore::Record getGlobalColorChangeRecord (casacore::Record &opts) const
 

Private Attributes

QtDisplayPanelGuipanel_
 
std::string path_
 
std::string dataType_
 
std::string displayType_
 
const std::string TYPE_IMAGE
 
const std::string SKY_CATALOG
 
const std::string MS
 
std::shared_ptr
< casacore::ImageInterface
< float > > 
im_
 
std::shared_ptr
< casacore::ImageInterface
< casacore::Complex > > 
cim_
 
DisplayDatadd_
 
std::string name_
 
bool invertColorMap
 
int logScaleColorMap
 
casacore::String clrMapName_
 Name of colormap used by dd_ ("" if none) More...
 
casacore::String restoreColorMapName
 Color maps can be removed. More...
 
ColormapclrMap_
 Will be set onto underlying dd_ if needed (0 if none) More...
 
DParameterChoiceclrMapOpt_
 Parses colormap choice out of a setOptions record. More...
 
colormapnamemap clrMapNames_
 
colormapmap clrMaps_
 
casacore::String errMsg_
 Latest error message, retrievable via errMsg(). More...
 
WedgeDDcolorBar_
 The DD that draws the color bar key for the main DD – 0 if N/A. More...
 
DParameterChoicecolorBarDisplayOpt_
 Is color bar display turned on? ("Yes" / "No") More...
 
DParameterRange< float > * colorBarThicknessOpt_
 Manual user adjustment factor for color bar thickness. More...
 
DParameterRange< float > * colorBarLabelSpaceOpt_
 Manual user adjustment factor for color bar label space. More...
 
DParameterChoicecolorBarOrientationOpt_
 "horizontal" / "vertical" More...
 
DParameterRange< float > * colorBarCharSizeOpt_
 Size of label characters on color bar (affects margins only). More...
 
viewer::ImageProperties image_properties
 

Static Private Attributes

static bool globalColorSettings
 
static const casacore::String COLOR_MAP
 

Detailed Description

Definition at line 69 of file QtDisplayData.qo.h.

Member Typedef Documentation

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 507 of file QtDisplayData.qo.h.

All the valid ('primary') colormap names.

(This interface doesn't support use of 'synonym' names).

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

Definition at line 452 of file QtDisplayData.qo.h.

Constructor & Destructor Documentation

casa::QtDisplayData::QtDisplayData ( QtDisplayPanelGui panel,
casacore::String  path,
casacore::String  dataType,
casacore::String  displayType,
const viewer::DisplayDataOptions ddo = viewer::DisplayDataOptions(),
const viewer::ImageProperties props = viewer::ImageProperties() 
)
casa::QtDisplayData::~QtDisplayData ( )
casa::QtDisplayData::QtDisplayData ( )
inlineprivate

Not intended for use.

Definition at line 457 of file QtDisplayData.qo.h.

Member Function Documentation

void casa::QtDisplayData::axisChanged ( casacore::String  ,
casacore::String  ,
casacore::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 ( casacore::String  ,
casacore::String  ,
casacore::String  ,
std::vector< int >   
)
signal
virtual void casa::QtDisplayData::checkAxis ( bool  changeSpectrum = true)
virtualslot
void casa::QtDisplayData::checkGlobalChange ( casacore::Record chgdOpts)
private
virtual WedgeDD* casa::QtDisplayData::colorBar ( )
inlinevirtual

Retrieve color bar ('wedge') DD.

(0 if none. It will exist if hasColorBar() is true). (Not for general use).

Definition at line 251 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 ( )
inlinevirtual

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 233 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
inlinevirtual

Definition at line 97 of file QtDisplayData.qo.h.

References dataType_.

virtual DisplayData* casa::QtDisplayData::dd ( )
inlinevirtual

retrieve wrapped DisplayData.

Definition at line 132 of file QtDisplayData.qo.h.

References dd_.

virtual Display::DisplayDataType casa::QtDisplayData::ddType ( )
virtual

Possible valuse: Raster, casacore::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 ( )
inlinevirtual

Definition at line 100 of file QtDisplayData.qo.h.

References displayType_.

void casa::QtDisplayData::done ( )
private
void casa::QtDisplayData::emitOptionsChanged ( casacore::Record  changedOpts)
slot
virtual casacore::String casa::QtDisplayData::errMsg ( )
inlinevirtual

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

References errMsg_.

virtual int casa::QtDisplayData::getAxisIndex ( casacore::String  axtype = casacore::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 ( casacore::Vector< float > &  params) const
virtual
virtual bool casa::QtDisplayData::getCMShiftSlope ( casacore::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].

Colormap* casa::QtDisplayData::getColorMap ( ) const
const casacore::String& casa::QtDisplayData::getColormap ( )
inlineslot

Definition at line 333 of file QtDisplayData.qo.h.

References clrMapName_.

casacore::Record casa::QtDisplayData::getGlobalColorChangeRecord ( casacore::Record opts) const
private
virtual void casa::QtDisplayData::getInitialAxes_ ( casacore::Block< casacore::uInt > &  axs,
const casacore::IPosition shape,
const DisplayCoordinateSystem cs 
)
protectedvirtual

Heuristic used internally to set initial axes to display on X, Y and Z, for PADDs.

shape should be that of Image/casacore::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 casacore::Record casa::QtDisplayData::getOptions ( )
virtual

retrieve the casacore::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().

casacore::String casa::QtDisplayData::getPositionInformation ( const casacore::Vector< double >  world)
casacore::String casa::QtDisplayData::getZAxisName ( )

Return the name of the z-axis.

void casa::QtDisplayData::globalOptionsChanged ( QtDisplayData ,
casacore::Record   
)
signal
virtual bool casa::QtDisplayData::hasColorBar ( )
inlinevirtual

Is a color bar WDD defined for this QDD?

Definition at line 221 of file QtDisplayData.qo.h.

References colorBar_.

Referenced by wouldDisplayColorBar().

virtual bool casa::QtDisplayData::hasColormap ( ) const
inlinevirtual

Does this DD currently own a colormap?

Definition at line 259 of file QtDisplayData.qo.h.

References clrMap_.

std::shared_ptr<casacore::ImageInterface<float> > casa::QtDisplayData::imageInterface ( )
inline

Definition at line 289 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 ( )
inlinevirtual

Did creation of wrapped DD fail?

Definition at line 137 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 casacore::ImageRegion* casa::QtDisplayData::mouseToImageRegion ( casacore::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' casacore::Record, from the region mouse tools) to a full Image Region, with same number of axes as the DD's casacore::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-casacore::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 casacore::ImageRegion* is non-zero, the caller –>is responsible for deleting it.

virtual casacore::ImageRegion* casa::QtDisplayData::mouseToImageRegion ( casacore::Record  mouseRegion,
WorldCanvasHolder wch,
casacore::String extChan,
casacore::String extPol 
)
virtual
virtual std::string casa::QtDisplayData::name ( )
inlinevirtual

Definition at line 84 of file QtDisplayData.qo.h.

References name_.

Referenced by casa::QtDisplayDataGui::QtDisplayDataGui(), and setName().

virtual const char* casa::QtDisplayData::nameChrs ( )
inlinevirtual

Definition at line 87 of file QtDisplayData.qo.h.

References name_.

void casa::QtDisplayData::optionsChanged ( casacore::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.

static std::string casa::QtDisplayData::path ( const DisplayData )
static
std::string casa::QtDisplayData::path ( ) const
inline

Definition at line 116 of file QtDisplayData.qo.h.

References path_.

virtual bool casa::QtDisplayData::printLayerStats ( casacore::ImageRegion imgReg)
virtual
virtual bool casa::QtDisplayData::printRegionStats ( casacore::ImageRegion imgReg)
virtual

Print statistics on image for given region.

Returns false if unable to do so.

void casa::QtDisplayData::qddError ( casacore::String  errmsg)
signal

Emitted when problems encountered (in setOptions, e.g.)

virtual void casa::QtDisplayData::registerNotice ( QtDisplayPanel )
virtualslot

(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 casacore::String name)
virtual void casa::QtDisplayData::removeColormap_ ( )
inlineprotectedvirtual

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

References setColormap_().

virtual bool casa::QtDisplayData::setCMBrtCont ( const casacore::Vector< float > &  params)
virtual
virtual bool casa::QtDisplayData::setCMShiftSlope ( const casacore::Vector< float > &  params)
virtual
bool casa::QtDisplayData::setColorBarOptions ( casacore::Record opts,
casacore::Record chgdOpts 
)
private
virtual void casa::QtDisplayData::setColorBarOrientation_ ( )
protectedvirtualslot

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 ( Colormap colorMap)
void casa::QtDisplayData::setColormap ( const casacore::String clrMapName)
inlineslot

Definition at line 336 of file QtDisplayData.qo.h.

References setColormap_().

virtual void casa::QtDisplayData::setColormap_ ( const casacore::String clrMapName,
bool  invertChanged = false 
)
protectedvirtual

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 casacore::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 ( casacore::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 ( std::shared_ptr< casacore::ImageInterface< float > >  img)
virtual void casa::QtDisplayData::setName ( const std::string &  name)
inlinevirtual

Definition at line 90 of file QtDisplayData.qo.h.

References name(), and name_.

virtual void casa::QtDisplayData::setOptions ( casacore::Record  opts,
bool  emitAll = false 
)
virtualslot

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::setRasterPowerScaling ( float  powerScale)
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 ( casacore::String  spcTypeUnit,
casacore::String  spcRval,
casacore::String  spcSys 
)
signal
void casa::QtDisplayData::statsReady ( const casacore::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 std::pair<casacore::String,casacore::String> casa::QtDisplayData::trackingInfo ( const WCMotionEvent ev)
virtual

Returns a casacore::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 )
virtualslot
virtual bool casa::QtDisplayData::usesClrMap_ ( )
inlineprotectedvirtual

Does this DD use/need a public colormap?

Definition at line 441 of file QtDisplayData.qo.h.

References displayType_, and isRaster().

virtual bool casa::QtDisplayData::usesColorBar_ ( )
inlineprotectedvirtual

Can this QDD use a color bar?

Definition at line 448 of file QtDisplayData.qo.h.

References isRaster().

virtual bool casa::QtDisplayData::usesTracking ( )
inlinevirtual

Can the QDD display tracking information?

Definition at line 150 of file QtDisplayData.qo.h.

References casa::Display::Annotation, casa::Display::CanvasAnnotation, ddType(), and isEmpty().

virtual bool casa::QtDisplayData::wouldDisplayColorBar ( )
inlinevirtual

Would this QDD want to display a color bar if registered and conformant for drawing?

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

References colorBarDisplayOpt_, hasColorBar(), casa::DParameterChoice::value(), and WEDGE_YES.

Referenced by colorBarSizeAdj().

Member Data Documentation

std::shared_ptr<casacore::ImageInterface<casacore::Complex> > casa::QtDisplayData::cim_
private

Definition at line 476 of file QtDisplayData.qo.h.

Colormap* casa::QtDisplayData::clrMap_
private

Will be set onto underlying dd_ if needed (0 if none)

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

Referenced by hasColormap().

casacore::String casa::QtDisplayData::clrMapName_
private

Name of colormap used by dd_ ("" if none)

Definition at line 485 of file QtDisplayData.qo.h.

Referenced by getColormap().

colormapnamemap casa::QtDisplayData::clrMapNames_
private

Definition at line 500 of file QtDisplayData.qo.h.

DParameterChoice* casa::QtDisplayData::clrMapOpt_
private

Parses colormap choice out of a setOptions record.

Definition at line 495 of file QtDisplayData.qo.h.

colormapmap casa::QtDisplayData::clrMaps_
private

Definition at line 508 of file QtDisplayData.qo.h.

const casacore::String casa::QtDisplayData::COLOR_MAP
staticprivate

Definition at line 509 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 519 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 548 of file QtDisplayData.qo.h.

DParameterChoice* casa::QtDisplayData::colorBarDisplayOpt_
private

Is color bar display turned on? ("Yes" / "No")

Definition at line 531 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 541 of file QtDisplayData.qo.h.

DParameterChoice* casa::QtDisplayData::colorBarOrientationOpt_
private

"horizontal" / "vertical"

Definition at line 544 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 536 of file QtDisplayData.qo.h.

Referenced by colorBarSizeAdj().

std::string casa::QtDisplayData::dataType_
private

Definition at line 470 of file QtDisplayData.qo.h.

Referenced by dataType().

DisplayData* casa::QtDisplayData::dd_
private

Definition at line 477 of file QtDisplayData.qo.h.

Referenced by dd(), and isEmpty().

data_to_qtdata_map_type casa::QtDisplayData::dd_source_map
staticprotected

Definition at line 453 of file QtDisplayData.qo.h.

const std::string casa::QtDisplayData::DISPLAY_CONTOUR

Definition at line 94 of file QtDisplayData.qo.h.

const std::string casa::QtDisplayData::DISPLAY_MARKER

Definition at line 96 of file QtDisplayData.qo.h.

const std::string casa::QtDisplayData::DISPLAY_RASTER

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

const std::string casa::QtDisplayData::DISPLAY_VECTOR

Definition at line 95 of file QtDisplayData.qo.h.

std::string casa::QtDisplayData::displayType_
private

Definition at line 470 of file QtDisplayData.qo.h.

Referenced by displayType(), and usesClrMap_().

casacore::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 515 of file QtDisplayData.qo.h.

Referenced by errMsg().

bool casa::QtDisplayData::globalColorSettings
staticprivate

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

std::shared_ptr<casacore::ImageInterface<float> > casa::QtDisplayData::im_
private

Definition at line 475 of file QtDisplayData.qo.h.

Referenced by imageInterface().

viewer::ImageProperties casa::QtDisplayData::image_properties
private

Definition at line 550 of file QtDisplayData.qo.h.

bool casa::QtDisplayData::invertColorMap
private

Definition at line 481 of file QtDisplayData.qo.h.

int casa::QtDisplayData::logScaleColorMap
private

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

const std::string casa::QtDisplayData::MS
private

Definition at line 474 of file QtDisplayData.qo.h.

std::string casa::QtDisplayData::name_
private

Definition at line 479 of file QtDisplayData.qo.h.

Referenced by name(), nameChrs(), and setName().

QtDisplayPanelGui* casa::QtDisplayData::panel_
private

Definition at line 469 of file QtDisplayData.qo.h.

std::string casa::QtDisplayData::path_
private

Definition at line 470 of file QtDisplayData.qo.h.

Referenced by path().

casacore::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 489 of file QtDisplayData.qo.h.

const std::string casa::QtDisplayData::SKY_CATALOG
private

Definition at line 473 of file QtDisplayData.qo.h.

const std::string casa::QtDisplayData::TYPE_IMAGE
private

Definition at line 472 of file QtDisplayData.qo.h.

const casacore::String casa::QtDisplayData::WEDGE_LABEL_CHAR_SIZE
static

Definition at line 296 of file QtDisplayData.qo.h.

const casacore::String casa::QtDisplayData::WEDGE_YES
static

Definition at line 297 of file QtDisplayData.qo.h.

Referenced by wouldDisplayColorBar().


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