casa
$Rev:20696$
|
#include <PCVGBuffer.h>
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 | |
PixelCanvas * | pc_ |
AccumMode | mode_ |
uInt | c_ |
Matrix< Float > | verts_ |
uInt | blockSize_ |
Public interface
The name of PCVGBuffer comes from ...
Definition at line 71 of file PCVGBuffer.h.
Definition at line 75 of file PCVGBuffer.h.
casa::PCVGBuffer::PCVGBuffer | ( | PixelCanvas * | pc, |
uInt | nVerts = 1024 |
||
) |
Default Constructor Required.
User Constructor.
virtual casa::PCVGBuffer::~PCVGBuffer | ( | ) | [virtual] |
Destructor.
void casa::PCVGBuffer::accumLine | ( | Float | x1, |
Float | y1, | ||
Float | x2, | ||
Float | y2 | ||
) |
add line
Referenced by casa::PixelCanvas::bufferLine().
void casa::PCVGBuffer::accumPoint | ( | Float | x, |
Float | y | ||
) |
add point
Referenced by casa::PixelCanvas::bufferPoint().
void casa::PCVGBuffer::accumPolygonPoint | ( | Float | x, |
Float | y | ||
) |
add point to polygon
Referenced by casa::PixelCanvas::bufferPolygonPoint().
void casa::PCVGBuffer::accumPolylinePoint | ( | Float | x, |
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] |
void casa::PCVGBuffer::setMode | ( | AccumMode | m | ) |
change modes
uInt casa::PCVGBuffer::blockSize_ [private] |
Definition at line 121 of file PCVGBuffer.h.
uInt casa::PCVGBuffer::c_ [private] |
Definition at line 119 of file PCVGBuffer.h.
AccumMode casa::PCVGBuffer::mode_ [private] |
Definition at line 118 of file PCVGBuffer.h.
Referenced by mode().
PixelCanvas* casa::PCVGBuffer::pc_ [private] |
Definition at line 116 of file PCVGBuffer.h.
Matrix<Float> casa::PCVGBuffer::verts_ [private] |
Definition at line 120 of file PCVGBuffer.h.