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

Interface between the WorldCanvas and its PGPLOT driver. More...

#include <WCPGFilter.h>

List of all members.

Public Member Functions

 WCPGFilter (WorldCanvas *wc)
 Constructor taking a pointer to a WorldCanvas.
virtual ~WCPGFilter ()
 Destructor.
virtual void ref ()
 Reference counting: ref, unref and refCount.
virtual void unref ()
virtual Int refCount () const
virtual Int pgid () const
 Return the PGPLOT device id.
Bool realign (const Bool &linear=True)
 Realign the PGPLOT domain to the WorldCanvas domain.
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.

Private Member Functions

void splitContours (Vector< Float > &neg, Vector< Float > &pos, const Vector< Float > &levels)
 Split contours into positive and negative.

Private Attributes

WorldCanvasitsWorldCanvas
 Store for the WorldCanvas this filters for.
uInt itsPgPlotID
 Store the PGPLOT device id here.
Int itsRefCount
 Reference counting.

Detailed Description

Interface between the WorldCanvas and its PGPLOT driver.

Intended use:

Public interface

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

Definition at line 70 of file WCPGFilter.h.


Constructor & Destructor Documentation

Constructor taking a pointer to a WorldCanvas.

virtual casa::WCPGFilter::~WCPGFilter ( ) [virtual]

Destructor.


Member Function Documentation

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

Contour using pgconb function.

(contour with blanks)

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

Contour using pgcont function.

virtual Int casa::WCPGFilter::pgid ( ) const [inline, virtual]

Return the PGPLOT device id.

Definition at line 91 of file WCPGFilter.h.

References itsPgPlotID.

Bool casa::WCPGFilter::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.

virtual void casa::WCPGFilter::ref ( ) [inline, virtual]

Reference counting: ref, unref and refCount.

Definition at line 82 of file WCPGFilter.h.

References itsRefCount.

virtual Int casa::WCPGFilter::refCount ( ) const [inline, virtual]

Definition at line 86 of file WCPGFilter.h.

References itsRefCount.

void casa::WCPGFilter::splitContours ( Vector< Float > &  neg,
Vector< Float > &  pos,
const Vector< Float > &  levels 
) [private]

Split contours into positive and negative.

virtual void casa::WCPGFilter::unref ( ) [inline, virtual]

Definition at line 84 of file WCPGFilter.h.

References itsRefCount.


Member Data Documentation

Store the PGPLOT device id here.

Definition at line 117 of file WCPGFilter.h.

Referenced by pgid().

Reference counting.

Definition at line 120 of file WCPGFilter.h.

Referenced by ref(), refCount(), and unref().

Store for the WorldCanvas this filters for.

Definition at line 114 of file WCPGFilter.h.


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