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

#include <PCVGBuffer.h>

Public Types

enum  AccumMode {
  AMNone,
  AMPoints,
  AMLines,
  AMPolyline,
  AMPolygon
}
 

Public Member Functions

 PCVGBuffer (PixelCanvas *pc, casacore::uInt nVerts=1024)
 Default Constructor Required. More...
 
 PCVGBuffer ()
 User Constructor. More...
 
void accumPoint (casacore::Float x, casacore::Float y)
 add point More...
 
void accumLine (casacore::Float x1, casacore::Float y1, casacore::Float x2, casacore::Float y2)
 add line More...
 
void accumPolylinePoint (casacore::Float x, casacore::Float y)
 add point to polyline More...
 
void accumPolygonPoint (casacore::Float x, casacore::Float y)
 add point to polygon More...
 
void flush ()
 flush the buffer More...
 
AccumMode mode () const
 current mode More...
 
void setMode (AccumMode m)
 change modes More...
 
void checkSpace ()
 check size and make more if needed More...
 
virtual ~PCVGBuffer ()
 Destructor. More...
 

Private Attributes

PixelCanvaspc_
 
AccumMode mode_
 
casacore::uInt c_
 
casacore::Matrix< casacore::Floatverts_
 
casacore::uInt blockSize_
 

Detailed Description

Intended use:

Public interface

Prerequisite

Etymology

The name of PCVGBuffer comes from...

Synopsis

Display Class File

Motivation

Example

none available.

To Do

Definition at line 71 of file PCVGBuffer.h.

Member Enumeration Documentation

Enumerator
AMNone 
AMPoints 
AMLines 
AMPolyline 
AMPolygon 

Definition at line 75 of file PCVGBuffer.h.

Constructor & Destructor Documentation

casa::PCVGBuffer::PCVGBuffer ( PixelCanvas pc,
casacore::uInt  nVerts = 1024 
)

Default Constructor Required.

casa::PCVGBuffer::PCVGBuffer ( )

User Constructor.

virtual casa::PCVGBuffer::~PCVGBuffer ( )
virtual

Destructor.

Member Function Documentation

void casa::PCVGBuffer::accumLine ( casacore::Float  x1,
casacore::Float  y1,
casacore::Float  x2,
casacore::Float  y2 
)

add line

Referenced by casa::PixelCanvas::bufferLine().

void casa::PCVGBuffer::accumPoint ( casacore::Float  x,
casacore::Float  y 
)

add point

Referenced by casa::PixelCanvas::bufferPoint().

void casa::PCVGBuffer::accumPolygonPoint ( casacore::Float  x,
casacore::Float  y 
)

add point to polygon

Referenced by casa::PixelCanvas::bufferPolygonPoint().

void casa::PCVGBuffer::accumPolylinePoint ( casacore::Float  x,
casacore::Float  y 
)

add point to polyline

Referenced by casa::PixelCanvas::bufferPolylinePoint().

void casa::PCVGBuffer::checkSpace ( )

check size and make more if needed

void casa::PCVGBuffer::flush ( )

flush the buffer

Referenced by casa::PixelCanvas::flushBuffer().

AccumMode casa::PCVGBuffer::mode ( ) const
inline

current mode

Definition at line 104 of file PCVGBuffer.h.

References mode_.

void casa::PCVGBuffer::setMode ( AccumMode  m)

change modes

Member Data Documentation

casacore::uInt casa::PCVGBuffer::blockSize_
private

Definition at line 124 of file PCVGBuffer.h.

casacore::uInt casa::PCVGBuffer::c_
private

Definition at line 122 of file PCVGBuffer.h.

AccumMode casa::PCVGBuffer::mode_
private

Definition at line 121 of file PCVGBuffer.h.

Referenced by mode().

PixelCanvas* casa::PCVGBuffer::pc_
private

Definition at line 119 of file PCVGBuffer.h.

casacore::Matrix<casacore::Float> casa::PCVGBuffer::verts_
private

Definition at line 123 of file PCVGBuffer.h.


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