27 #ifndef vtkImageStencilData_h
28 #define vtkImageStencilData_h
31 #include "vtkImagingCoreModule.h"
66 int GetNextExtent(
int &r1,
int &r2,
int xMin,
int xMax,
67 int yIdx,
int zIdx,
int &iter);
75 int IsInside(
int xIdx,
int yIdx,
int zIdx);
84 void InsertNextExtent(
int r1,
int r2,
int yIdx,
int zIdx);
94 void InsertAndMergeExtent(
int r1,
int r2,
int yIdx,
int zIdx);
99 void RemoveExtent(
int r1,
int r2,
int yIdx,
int zIdx);
108 vtkSetVector3Macro(Spacing,
double);
109 vtkGetVector3Macro(Spacing,
double);
119 vtkSetVector3Macro(Origin,
double);
120 vtkGetVector3Macro(Origin,
double);
129 void SetExtent(
int extent[6]);
130 void SetExtent(
int x1,
int x2,
int y1,
int y2,
int z1,
int z2);
131 vtkGetVector6Macro(Extent,
int);
138 void AllocateExtents();
183 virtual int Clip(
int extent[6]);
194 void LogicalOperationExtent(
195 int r1,
int r2,
int yIdx,
int zIdx, Operation operation);
200 void LogicalOperationInPlace(
208 void ChangeExtent(
const int extent[6]);
238 friend class vtkImageStencilIteratorFriendship;
253 vtkImageStencilRaster(
const int wholeExtent[2]);
258 ~vtkImageStencilRaster();
271 void InsertLine(
const double p1[2],
const double p2[2]);
272 VTK_LEGACY(
void InsertLine(
const double[2],
const double[2],
bool,
bool));
280 int xj = 0,
int yj = 1);
293 void PrepareExtent(
int ymin,
int ymax);
300 void InsertPoint(
int y,
double x,
int i);
308 vtkImageStencilRaster(
const vtkImageStencilRaster&) VTK_DELETE_FUNCTION;
309 void operator=(const vtkImageStencilRaster&) VTK_DELETE_FUNCTION;
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkDataObject * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
int GetExtentType() override
The extent type is 3D, just like vtkImageData.
static vtkDataObject * New()
This is a helper class for stencil creation.
virtual void PrepareForNewData()
make the output data ready for new data to be inserted.
virtual void Initialize()
Restore data object to initial state,.
int NumberOfExtentEntries
The actual 'data' is stored here.
void SetTolerance(double tol)
The tolerance for float-to-int conversions.
a simple class to control print indentation
efficient description of an image stencil
virtual void CopyInformationFromPipeline(vtkInformation *vtkNotUsed(info))
Copy from the pipeline information to the data object's own information.
int ** ExtentLists
The actual 'data' is stored here.
general representation of visualization data
virtual void CopyInformationToPipeline(vtkInformation *vtkNotUsed(info))
Copy information from this data object to the pipeline information.
int * ExtentListLengths
The actual 'data' is stored here.