casa
$Rev:20696$
|
Interface between the WorldCanvas and its PGPLOT driver. More...
#include <WCPGFilter.h>
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 | |
WorldCanvas * | itsWorldCanvas |
Store for the WorldCanvas this filters for. | |
uInt | itsPgPlotID |
Store the PGPLOT device id here. | |
Int | itsRefCount |
Reference counting. |
Interface between the WorldCanvas and its PGPLOT driver.
Public interface
"WCPGFilter" is a contraction and concatenation of "WorldCanvas," "PGPLOT" and "Filter", and is a simple filtering interface between the WorldCanvas and its PGPLOT driver.
Definition at line 70 of file WCPGFilter.h.
Constructor taking a pointer to a WorldCanvas.
virtual casa::WCPGFilter::~WCPGFilter | ( | ) | [virtual] |
Destructor.
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] |
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.
uInt casa::WCPGFilter::itsPgPlotID [private] |
Int casa::WCPGFilter::itsRefCount [private] |
Reference counting.
Definition at line 120 of file WCPGFilter.h.
Referenced by ref(), refCount(), and unref().
WorldCanvas* casa::WCPGFilter::itsWorldCanvas [private] |
Store for the WorldCanvas this filters for.
Definition at line 114 of file WCPGFilter.h.