#include <vtkImageStencilData.h>
Definition at line 192 of file vtkImageStencilData.h.
Public Member Functions | |
| vtkImageStencilRaster (const int wholeExtent[2]) | |
| ~vtkImageStencilRaster () | |
| void | PrepareForNewData (const int allocateExtent[2]=0) |
| void | InsertLine (const double p1[2], const double p2[2], bool inflect1, bool inflect2) |
| void | FillStencilData (vtkImageStencilData *data, const int extent[6], int xj=0, int yj=1) |
| void | SetTolerance (double tol) |
| double | GetTolerance () |
Protected Member Functions | |
| void | PrepareExtent (int ymin, int ymax) |
| void | InsertPoint (int y, double x) |
Protected Attributes | |
| int | Extent [2] |
| int | UsedExtent [2] |
| double ** | Raster |
| double | Tolerance |
| vtkImageStencilRaster::vtkImageStencilRaster | ( | const int | wholeExtent[2] | ) |
| vtkImageStencilRaster::~vtkImageStencilRaster | ( | ) |
Destructor.
| void vtkImageStencilRaster::PrepareForNewData | ( | const int | allocateExtent[2] = 0 |
) |
Reset the raster to its original state, but keep the same whole extent. Pre-allocate the specified 1D allocateExtent, which must be within the whole extent.
| void vtkImageStencilRaster::InsertLine | ( | const double | p1[2], | |
| const double | p2[2], | |||
| bool | inflect1, | |||
| bool | inflect2 | |||
| ) |
Insert a line into the raster, given the two end points. The "inflect1" and "inflect2" should be set if you want to add a small vertical tolerance to either endpoints.
| void vtkImageStencilRaster::FillStencilData | ( | vtkImageStencilData * | data, | |
| const int | extent[6], | |||
| int | xj = 0, |
|||
| int | yj = 1 | |||
| ) |
Fill the specified extent of a vtkImageStencilData with the raster, after permuting the raster according to xj and yj.
| void vtkImageStencilRaster::SetTolerance | ( | double | tol | ) | [inline] |
The tolerance for float-to-int conversions.
Definition at line 225 of file vtkImageStencilData.h.
| double vtkImageStencilRaster::GetTolerance | ( | ) | [inline] |
The tolerance for float-to-int conversions.
Definition at line 226 of file vtkImageStencilData.h.
| void vtkImageStencilRaster::PrepareExtent | ( | int | ymin, | |
| int | ymax | |||
| ) | [protected] |
Ensure that the raster is initialized for the specified range of y values, which must be within the Extent.
| void vtkImageStencilRaster::InsertPoint | ( | int | y, | |
| double | x | |||
| ) | [protected] |
Insert an x point into the raster. If the y value is larger than the y extent, the extent will grow automatically.
int vtkImageStencilRaster::Extent[2] [protected] |
Definition at line 238 of file vtkImageStencilData.h.
int vtkImageStencilRaster::UsedExtent[2] [protected] |
Definition at line 239 of file vtkImageStencilData.h.
double** vtkImageStencilRaster::Raster [protected] |
Definition at line 240 of file vtkImageStencilData.h.
double vtkImageStencilRaster::Tolerance [protected] |
Definition at line 241 of file vtkImageStencilData.h.
1.5.6