WCLinearScaleHandler.h
Classes
- WCLinearScaleHandler -- Linear scaling of data for WorldCanvases. (full description)
Interface
- Public Members
- WCLinearScaleHandler()
- virtual ~WCLinearScaleHandler()
- virtual Bool operator()(Array<uInt> & out, const Array<Bool> & in)
- 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)
Prerequisite
Etymology
WCLinearScaleHandler : WorldCanvas Linear Scale Handler
Synopsis
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.
Motivation
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.
Example
see the test program tWCLinearScaleHandler.cc in the Display/test directory.
To Do
Member Description
Default Constructor Required
Destructor
virtual Bool operator()(Array<uInt> & out, const Array<Bool> & in)
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)
apply returns True if the array in was converted to the
array out successfully
the last parameter sets the output range