casa
$Rev:20696$
|
Linear scaling of data for WorldCanvases. More...
#include <WCLinearScaleHandler.h>
Public Member Functions | |
WCLinearScaleHandler () | |
Default Constructor Required. | |
virtual | ~WCLinearScaleHandler () |
Destructor. | |
virtual Bool | operator() (Array< uInt > &out, const Array< Bool > &in) |
apply returns True if the array in was converted to the array out successfully the last parameter sets the output range | |
virtual Bool | operator() (Array< uInt > &out, const Array< uChar > &in) |
virtual Bool | operator() (Array< uInt > &out, const Array< Char > &in) |
virtual Bool | operator() (Array< uInt > &out, const Array< uShort > &in) |
virtual Bool | operator() (Array< uInt > &out, const Array< Short > &in) |
virtual Bool | operator() (Array< uInt > &out, const Array< uInt > &in) |
virtual Bool | operator() (Array< uInt > &out, const Array< Int > &in) |
virtual Bool | operator() (Array< uInt > &out, const Array< uLong > &in) |
virtual Bool | operator() (Array< uInt > &out, const Array< Long > &in) |
virtual Bool | operator() (Array< uInt > &out, const Array< Float > &in) |
virtual Bool | operator() (Array< uInt > &out, const Array< Double > &in) |
virtual Bool | operator() (Array< uInt > &out, const Array< Complex > &in) |
virtual Bool | operator() (Array< uInt > &out, const Array< DComplex > &in) |
Linear scaling of data for WorldCanvases.
WCLinearScaleHandler : WorldCanvas Linear Scale Handler
The WCLinearScaleHandler is an implementation of the WCDataScaleHandler that uses linear scaling to get from real values to discrete values in the range of 0 to rangeMax. Typically, rangeMax is equivalent to the available color resolution minus 1.
Need to provide some basic implementations of the WCDataScaleHandler so users can model other custom scale handlers after it. Linear scaling is a common need, so it was implemented.
see the test program tWCLinearScaleHandler.cc in the Display/test directory.
Definition at line 71 of file WCLinearScaleHandler.h.
Default Constructor Required.
virtual casa::WCLinearScaleHandler::~WCLinearScaleHandler | ( | ) | [virtual] |
Destructor.
virtual Bool casa::WCLinearScaleHandler::operator() | ( | Array< uInt > & | out, |
const Array< Bool > & | in | ||
) | [virtual] |
apply returns True if the array in was converted to the array out successfully the last parameter sets the output range
Reimplemented from casa::WCDataScaleHandler.
virtual Bool casa::WCLinearScaleHandler::operator() | ( | Array< uInt > & | out, |
const Array< uChar > & | in | ||
) | [virtual] |
Reimplemented from casa::WCDataScaleHandler.
virtual Bool casa::WCLinearScaleHandler::operator() | ( | Array< uInt > & | out, |
const Array< Char > & | in | ||
) | [virtual] |
Reimplemented from casa::WCDataScaleHandler.
virtual Bool casa::WCLinearScaleHandler::operator() | ( | Array< uInt > & | out, |
const Array< uShort > & | in | ||
) | [virtual] |
Reimplemented from casa::WCDataScaleHandler.
virtual Bool casa::WCLinearScaleHandler::operator() | ( | Array< uInt > & | out, |
const Array< Short > & | in | ||
) | [virtual] |
Reimplemented from casa::WCDataScaleHandler.
virtual Bool casa::WCLinearScaleHandler::operator() | ( | Array< uInt > & | out, |
const Array< uInt > & | in | ||
) | [virtual] |
Reimplemented from casa::WCDataScaleHandler.
virtual Bool casa::WCLinearScaleHandler::operator() | ( | Array< uInt > & | out, |
const Array< Int > & | in | ||
) | [virtual] |
Reimplemented from casa::WCDataScaleHandler.
virtual Bool casa::WCLinearScaleHandler::operator() | ( | Array< uInt > & | out, |
const Array< uLong > & | in | ||
) | [virtual] |
Reimplemented from casa::WCDataScaleHandler.
virtual Bool casa::WCLinearScaleHandler::operator() | ( | Array< uInt > & | out, |
const Array< Long > & | in | ||
) | [virtual] |
Reimplemented from casa::WCDataScaleHandler.
virtual Bool casa::WCLinearScaleHandler::operator() | ( | Array< uInt > & | out, |
const Array< Float > & | in | ||
) | [virtual] |
Reimplemented from casa::WCDataScaleHandler.
virtual Bool casa::WCLinearScaleHandler::operator() | ( | Array< uInt > & | out, |
const Array< Double > & | in | ||
) | [virtual] |
Reimplemented from casa::WCDataScaleHandler.
virtual Bool casa::WCLinearScaleHandler::operator() | ( | Array< uInt > & | out, |
const Array< Complex > & | in | ||
) | [virtual] |
Reimplemented from casa::WCDataScaleHandler.
virtual Bool casa::WCLinearScaleHandler::operator() | ( | Array< uInt > & | out, |
const Array< DComplex > & | in | ||
) | [virtual] |
Reimplemented from casa::WCDataScaleHandler.