WCPGFilter.h

Classes

WCPGFilter -- Interface between the WorldCanvas and its PGPLOT driver. (full description)

class WCPGFilter

Interface

Public Members
WCPGFilter(WorldCanvas *wc)
virtual ~WCPGFilter()
virtual void ref()
virtual void unref()
virtual Int refCount() const
virtual Int pgid() const
Bool realign(const Bool &linear = True)
void cont(const Matrix<Float> &m, const Vector<Float> &levels, const Matrix<Float> &tr)
void conb(const Matrix<Float> &m, const Vector<Float> &levels, const Matrix<Float> &tr, const Float blank)
Private Members
void splitContours (Vector<Float>& neg, Vector<Float>& pos, const Vector<Float>& levels)

Description

Prerequisite

Etymology

"WCPGFilter" is a contraction and concatenation of "WorldCanvas," "PGPLOT" and "Filter", and is a simple filtering interface between the WorldCanvas and its PGPLOT driver.

Synopsis

Motivation

Example

To Do

Member Description

WCPGFilter(WorldCanvas *wc)

Constructor taking a pointer to a WorldCanvas.

virtual ~WCPGFilter()

Destructor.

virtual void ref()
virtual void unref()
virtual Int refCount() const

Reference counting: ref, unref and refCount.

virtual Int pgid() const

Return the PGPLOT device id.

Bool realign(const Bool &linear = True)

Realign the PGPLOT domain to the WorldCanvas domain. If linear is False, then the pgplot canvas is setup to match the world coordinates, but of course is only valid where the world coordinates are linear to first approximation.

void cont(const Matrix<Float> &m, const Vector<Float> &levels, const Matrix<Float> &tr)

Contour using pgcont function.

void conb(const Matrix<Float> &m, const Vector<Float> &levels, const Matrix<Float> &tr, const Float blank)

Contour using pgconb function. (contour with blanks)

void splitContours (Vector<Float>& neg, Vector<Float>& pos, const Vector<Float>& levels)

Split contours into positive and negative