WCCoordinateHandler.h

Classes

WCCoordinateHandler -- Base class defining a set of transformations for WorldCanvas coordinates. (full description)

class WCCoordinateHandler

Interface

Public Members
WCCoordinateHandler()
virtual Bool linToWorld(Vector<Double> & world, const Vector<Double> & lin) = 0
virtual Bool linToWorld(Matrix<Double> & world, Vector<Bool> & failures, const Matrix<Double> & lin)
virtual Bool worldToLin(Vector<Double> & lin, const Vector<Double> & world) = 0
virtual Bool worldToLin(Matrix<Double> & lin, Vector<Bool> & failures, const Matrix<Double> & world)
virtual uInt nWorldAxes() const = 0
virtual Vector<String> worldAxisNames() = 0
virtual Vector<String> worldAxisUnits() = 0
virtual ~WCCoordinateHandler()

Description

Prerequisite

Etymology

WCCoordinateHandler : WorldCanvas Coordinate Handler

Synopsis

The WCCoordinateHandler class implements the concept of a coordinate transformation pair that can be plugged in to the WorldCanvas. It is designed for derivation by the programmer and can thereby be arbitrarily implemented.

This class defines an interface between the WorldCanvas, which uses coordinate transformations for various reasons, and the derived class that implements these coordinate transformations.

The designer of the derived class must write the Vector<Double> versions of linToWorld and worldToLin as described in detail below. It is also recommended that the Matrix<Double> versions of linToWorld and worldToLin be written to maximize efficiency.

Motivation