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

#include <PCVGBuffer.h>

List of all members.

Public Types

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

Public Member Functions

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

Private Attributes

PixelCanvaspc_
AccumMode mode_
uInt c_
Matrix< Floatverts_
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,
uInt  nVerts = 1024 
)

Default Constructor Required.

User Constructor.

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

Destructor.


Member Function Documentation

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

add line

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

add point

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

add point to polygon

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

add point to polyline

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

check size and make more if needed

flush the buffer

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

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

current mode

Definition at line 103 of file PCVGBuffer.h.

References mode_.

change modes


Member Data Documentation

Definition at line 121 of file PCVGBuffer.h.

Definition at line 119 of file PCVGBuffer.h.

Definition at line 118 of file PCVGBuffer.h.

Referenced by mode().

Definition at line 116 of file PCVGBuffer.h.

Definition at line 120 of file PCVGBuffer.h.


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