casa
5.7.0-16
|
#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 | |
PixelCanvas * | pc_ |
AccumMode | mode_ |
casacore::uInt | c_ |
casacore::Matrix< casacore::Float > | verts_ |
casacore::uInt | blockSize_ |
Public interface
The name of PCVGBuffer comes from...
Display Class File
Definition at line 71 of file PCVGBuffer.h.
Enumerator | |
---|---|
AMNone | |
AMPoints | |
AMLines | |
AMPolyline | |
AMPolygon |
Definition at line 75 of file PCVGBuffer.h.
casa::PCVGBuffer::PCVGBuffer | ( | PixelCanvas * | pc, |
casacore::uInt | nVerts = 1024 |
||
) |
Default Constructor Required.
casa::PCVGBuffer::PCVGBuffer | ( | ) |
User Constructor.
|
virtual |
Destructor.
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().
|
inline |
void casa::PCVGBuffer::setMode | ( | AccumMode | m | ) |
change modes
|
private |
Definition at line 124 of file PCVGBuffer.h.
|
private |
Definition at line 122 of file PCVGBuffer.h.
|
private |
Definition at line 121 of file PCVGBuffer.h.
Referenced by mode().
|
private |
Definition at line 119 of file PCVGBuffer.h.
|
private |
Definition at line 123 of file PCVGBuffer.h.