casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
casa::WCPGFilter Class Reference

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. More...
 
virtual ~WCPGFilter ()
 Destructor. More...
 
virtual void ref ()
 Reference counting: ref, unref and refCount. More...
 
virtual void unref ()
 
virtual casacore::Int refCount () const
 
virtual casacore::Int pgid () const
 Return the PGPLOT device id. More...
 
casacore::Bool realign (const casacore::Bool &linear=true)
 Realign the PGPLOT domain to the WorldCanvas domain. More...
 
void cont (const casacore::Matrix< casacore::Float > &m, const casacore::Vector< casacore::Float > &levels, const casacore::Matrix< casacore::Float > &tr)
 Contour using pgcont function. More...
 
void conb (const casacore::Matrix< casacore::Float > &m, const casacore::Vector< casacore::Float > &levels, const casacore::Matrix< casacore::Float > &tr, const casacore::Float blank)
 Contour using pgconb function. More...
 

Private Member Functions

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

Private Attributes

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

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 74 of file WCPGFilter.h.

Constructor & Destructor Documentation

casa::WCPGFilter::WCPGFilter ( WorldCanvas wc)

Constructor taking a pointer to a WorldCanvas.

virtual casa::WCPGFilter::~WCPGFilter ( )
virtual

Destructor.

Member Function Documentation

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

Contour using pgconb function.

(contour with blanks)

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

Contour using pgcont function.

virtual casacore::Int casa::WCPGFilter::pgid ( ) const
inlinevirtual

Return the PGPLOT device id.

Definition at line 98 of file WCPGFilter.h.

References itsPgPlotID.

casacore::Bool casa::WCPGFilter::realign ( const casacore::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 ( )
inlinevirtual

Reference counting: ref, unref and refCount.

Definition at line 86 of file WCPGFilter.h.

References itsRefCount.

virtual casacore::Int casa::WCPGFilter::refCount ( ) const
inlinevirtual

Definition at line 92 of file WCPGFilter.h.

References itsRefCount.

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

Split contours into positive and negative.

virtual void casa::WCPGFilter::unref ( )
inlinevirtual

Definition at line 89 of file WCPGFilter.h.

References itsRefCount.

Member Data Documentation

casacore::uInt casa::WCPGFilter::itsPgPlotID
private

Store the PGPLOT device id here.

Definition at line 125 of file WCPGFilter.h.

Referenced by pgid().

casacore::Int casa::WCPGFilter::itsRefCount
private

Reference counting.

Definition at line 128 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 122 of file WCPGFilter.h.


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