casa
5.7.0-16
|
Class implementing simple data scaling for the WorldCanvas. More...
#include <WCDataScaleHandler.h>
Private Attributes | |
casacore::Double | domainMin_ |
domain limits to use More... | |
casacore::Double | domainMax_ |
casacore::uInt | rangeMax_ |
range limits rangeMin is always zero More... | |
Additional Inherited Members | |
Protected Member Functions inherited from casa::DisplayOptions | |
DisplayOptions (const DisplayOptions &other) | |
(Required) copy constructor. More... | |
void | operator= (const DisplayOptions &other) |
(Required) copy assignment. More... | |
Class implementing simple data scaling for the WorldCanvas.
WCDataScaleHandler : WorldCanvas casacore::Data Scale Handler
This class is responsible for scaling data into a range suitable for display.
WCDataScaleHandler defines a set of functions whose purpose is to transform real data values, such as those from raster images or contour lines, into an image whose value ranges from 0 to N-1 for some N, normally taken to be the color resolution available for display.
The Display library defines the following process of image display:
The function suite includes all the normal scalar types. Default implementations exist for
Each scalar implementation must scale the data according to the domain minimum and maximum values and the N-1 value called the rangeMax.
This class would idealy be implemented by a templated member function, but C++ does not yet support templated member functions in non-templated classes. Thus the manual expansion-by-type.
Wanted a way for users to customize the scaling process from real values to discrete values for color display.
Definition at line 113 of file WCDataScaleHandler.h.
casa::WCDataScaleHandler::WCDataScaleHandler | ( | ) |
Default Constructor Required.
|
virtual |
Destructor (does nothing)
casa::WCDataScaleHandler::WCDataScaleHandler | ( | casacore::Double | min, |
casacore::Double | max | ||
) |
Set min/max at construction time.
|
inline |
Definition at line 157 of file WCDataScaleHandler.h.
References domainMax_.
|
inline |
set/get the min/max to use for the input Array
Definition at line 154 of file WCDataScaleHandler.h.
References domainMin_.
|
virtual |
retrieve the current and default options and parameter types.
Reimplemented in casa::WCPowerScaleHandler.
|
virtual |
op() returns true if the casacore::Array in was converted to the casacore::Array out successfully.
Default implentation for Bool maps false to 0 and true to rangeMax
Types casacore::uChar to casacore::Double not implemented (They return false). User should override the types needed (or perhaps all depending on your compiler.
Default casacore::Complex and casacore::DComplex extract amplitude and call the casacore::Float or casacore::Double version.
Reimplemented in casa::WCPowerScaleHandler, and casa::WCLinearScaleHandler.
|
virtual |
Reimplemented in casa::WCPowerScaleHandler, and casa::WCLinearScaleHandler.
|
virtual |
Reimplemented in casa::WCPowerScaleHandler, and casa::WCLinearScaleHandler.
|
virtual |
Reimplemented in casa::WCPowerScaleHandler, and casa::WCLinearScaleHandler.
|
virtual |
Reimplemented in casa::WCPowerScaleHandler, and casa::WCLinearScaleHandler.
|
virtual |
Reimplemented in casa::WCPowerScaleHandler, and casa::WCLinearScaleHandler.
|
virtual |
Reimplemented in casa::WCPowerScaleHandler, and casa::WCLinearScaleHandler.
|
virtual |
Reimplemented in casa::WCPowerScaleHandler, and casa::WCLinearScaleHandler.
|
virtual |
Reimplemented in casa::WCPowerScaleHandler, and casa::WCLinearScaleHandler.
|
virtual |
Reimplemented in casa::WCPowerScaleHandler, and casa::WCLinearScaleHandler.
|
virtual |
Reimplemented in casa::WCPowerScaleHandler, and casa::WCLinearScaleHandler.
|
virtual |
Reimplemented in casa::WCPowerScaleHandler, and casa::WCLinearScaleHandler.
|
virtual |
Reimplemented in casa::WCPowerScaleHandler, and casa::WCLinearScaleHandler.
|
inline |
set/get the maximum value to use for the output array Note: the minimum value is always zero
Definition at line 166 of file WCDataScaleHandler.h.
References rangeMax_.
|
virtual |
install the default options for this DisplayData
Reimplemented in casa::WCPowerScaleHandler.
void casa::WCDataScaleHandler::setDomainMinMax | ( | casacore::Double | min, |
casacore::Double | max | ||
) |
|
virtual |
apply options stored in val to the DisplayData; return value true means a refresh is needed...
Reimplemented in casa::WCPowerScaleHandler.
|
inline |
Definition at line 169 of file WCDataScaleHandler.h.
|
private |
Definition at line 188 of file WCDataScaleHandler.h.
Referenced by domainMax().
|
private |
domain limits to use
Definition at line 187 of file WCDataScaleHandler.h.
Referenced by domainMin().
|
private |
range limits rangeMin is always zero
Definition at line 192 of file WCDataScaleHandler.h.
Referenced by rangeMax(), and setRangeMax().