VTK  9.3.20240328
vtkVoxelContoursToSurfaceFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
53 #ifndef vtkVoxelContoursToSurfaceFilter_h
54 #define vtkVoxelContoursToSurfaceFilter_h
55 
56 #include "vtkFiltersGeneralModule.h" // For export macro
57 #include "vtkPolyDataAlgorithm.h"
58 
59 VTK_ABI_NAMESPACE_BEGIN
60 class VTKFILTERSGENERAL_EXPORT vtkVoxelContoursToSurfaceFilter : public vtkPolyDataAlgorithm
61 {
62 public:
65  void PrintSelf(ostream& os, vtkIndent indent) override;
66 
68 
74  vtkSetMacro(MemoryLimitInBytes, int);
75  vtkGetMacro(MemoryLimitInBytes, int);
77 
78  vtkSetVector3Macro(Spacing, double);
79  vtkGetVectorMacro(Spacing, double, 3);
80 
81 protected:
84 
86 
88 
89  double Spacing[3];
90 
91  double* LineList;
94 
95  double* SortedXList;
96  double* SortedYList;
98 
101 
104 
105  void AddLineToLineList(double x1, double y1, double x2, double y2);
106  void SortLineList();
107 
108  void CastLines(float* slice, double gridOrigin[3], int gridSize[3], int type);
109 
110  void PushDistances(float* ptr, int gridSize[3], int chunkSize);
111 
112 private:
114  void operator=(const vtkVoxelContoursToSurfaceFilter&) = delete;
115 };
116 
117 VTK_ABI_NAMESPACE_END
118 #endif
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
void CastLines(float *slice, double gridOrigin[3], int gridSize[3], int type)
static vtkVoxelContoursToSurfaceFilter * New()
void PushDistances(float *ptr, int gridSize[3], int chunkSize)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void AddLineToLineList(double x1, double y1, double x2, double y2)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
@ type
Definition: vtkX3D.h:516