30 #ifndef vtkImageStencilData_h 31 #define vtkImageStencilData_h 34 #include "vtkImagingCoreModule.h" 69 int GetNextExtent(
int &r1,
int &r2,
int xMin,
int xMax,
70 int yIdx,
int zIdx,
int &iter);
78 int IsInside(
int xIdx,
int yIdx,
int zIdx);
87 void InsertNextExtent(
int r1,
int r2,
int yIdx,
int zIdx);
97 void InsertAndMergeExtent(
int r1,
int r2,
int yIdx,
int zIdx);
102 void RemoveExtent(
int r1,
int r2,
int yIdx,
int zIdx);
111 vtkSetVector3Macro(Spacing,
double);
112 vtkGetVector3Macro(Spacing,
double);
122 vtkSetVector3Macro(Origin,
double);
123 vtkGetVector3Macro(Origin,
double);
132 void SetExtent(
const int extent[6]);
133 void SetExtent(
int x1,
int x2,
int y1,
int y2,
int z1,
int z2);
134 vtkGetVector6Macro(Extent,
int);
141 void AllocateExtents();
186 virtual int Clip(
int extent[6]);
197 void LogicalOperationExtent(
198 int r1,
int r2,
int yIdx,
int zIdx,
Operation operation);
203 void LogicalOperationInPlace(
211 void ChangeExtent(
const int extent[6]);
241 friend class vtkImageStencilIteratorFriendship;
268 void PrepareForNewData(
const int allocateExtent[2] =
nullptr);
274 void InsertLine(
const double p1[2],
const double p2[2]);
275 VTK_LEGACY(
void InsertLine(
const double[2],
const double[2],
bool,
bool));
283 int xj = 0,
int yj = 1);
296 void PrepareExtent(
int ymin,
int ymax);
303 void InsertPoint(
int y,
double x,
int i);
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 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 GetDataObjectType() override
Get the data type as an integer (this will return VTK_DATA_OBJECT for now, maybe a proper type consta...
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.
virtual void DeepCopy(vtkDataObject *src)
Shallow and Deep copy.
virtual void ShallowCopy(vtkDataObject *src)
Shallow and Deep copy.
int * ExtentListLengths
The actual 'data' is stored here.