18 #ifndef vtkImageStencilData_h
19 #define vtkImageStencilData_h
22 #include "vtkImagingCoreModule.h"
25 VTK_ABI_NAMESPACE_BEGIN
57 int GetNextExtent(
int& r1,
int&
r2,
int xMin,
int xMax,
int yIdx,
int zIdx,
int& iter);
65 int IsInside(
int xIdx,
int yIdx,
int zIdx);
74 void InsertNextExtent(
int r1,
int r2,
int yIdx,
int zIdx);
84 void InsertAndMergeExtent(
int r1,
int r2,
int yIdx,
int zIdx);
89 void RemoveExtent(
int r1,
int r2,
int yIdx,
int zIdx);
98 vtkSetVector3Macro(Spacing,
double);
99 vtkGetVector3Macro(Spacing,
double);
109 vtkSetVector3Macro(Origin,
double);
110 vtkGetVector3Macro(Origin,
double);
119 void SetExtent(
const int extent[6]);
120 void SetExtent(
int x1,
int x2,
int y1,
int y2,
int z1,
int z2);
121 vtkGetVector6Macro(Extent,
int);
128 void AllocateExtents();
173 virtual int Clip(
int extent[6]);
188 void LogicalOperationExtent(
int r1,
int r2,
int yIdx,
int zIdx, Operation operation);
200 void ChangeExtent(
const int extent[6]);
230 friend class vtkImageStencilIteratorFriendship;
257 void PrepareForNewData(
const int allocateExtent[2] =
nullptr);
263 void InsertLine(
const double pt1[2],
const double pt2[2]);
283 void PrepareExtent(
int ymin,
int ymax);
290 void InsertPoint(
int y,
double x,
int i);
302 VTK_ABI_NAMESPACE_END
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.
static vtkDataObject * New()
This is a helper class for stencil creation.
virtual void CopyInformationFromPipeline(vtkInformation *info)
Copy from the pipeline information to the data object's own information.
virtual void Initialize()
Restore data object to initial state,.
int NumberOfExtentEntries
The actual 'data' is stored here.
int GetExtentType() VTK_FUTURE_CONST override
The extent type is 3D, just like vtkImageData.
void SetTolerance(double tol)
The tolerance for float-to-int conversions.
a simple class to control print indentation
efficient description of an image stencil
int GetDataObjectType() VTK_FUTURE_CONST override
Returns VTK_IMAGE_STENCIL_DATA.
virtual void CopyInformationToPipeline(vtkInformation *info)
Copy information from this data object to the pipeline information.
int ** ExtentLists
The actual 'data' is stored here.
general representation of visualization data
virtual void DeepCopy(vtkDataObject *src)
The goal of the method is to copy the complete data from src into this object.
virtual void ShallowCopy(vtkDataObject *src)
The goal of the method is to copy the data up to the array pointers only.
int * ExtentListLengths
The actual 'data' is stored here.