casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
casa::WCLinearScaleHandler Class Reference

Linear scaling of data for WorldCanvases. More...

#include <WCLinearScaleHandler.h>

Inheritance diagram for casa::WCLinearScaleHandler:
casa::WCDataScaleHandler casa::DisplayOptions

List of all members.

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)

Detailed Description

Linear scaling of data for WorldCanvases.

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

Definition at line 71 of file WCLinearScaleHandler.h.


Constructor & Destructor Documentation

Default Constructor Required.

Destructor.


Member Function Documentation

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.


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