145 #ifndef vtkSurfaceNets3D_h
146 #define vtkSurfaceNets3D_h
150 #include "vtkFiltersCoreModule.h"
156 VTK_ABI_NAMESPACE_BEGIN
201 double GetValue(
int i) {
return this->Labels->GetValue(i); }
202 double GetLabel(
int i) {
return this->Labels->GetValue(i); }
210 double*
GetValues() {
return this->Labels->GetValues(); }
211 double*
GetLabels() {
return this->Labels->GetValues(); }
220 void GetValues(
double* contourValues) { this->Labels->GetValues(contourValues); }
221 void GetLabels(
double* contourValues) { this->Labels->GetValues(contourValues); }
251 this->Labels->GenerateValues(numLabels, range);
255 this->Labels->GenerateValues(numContours, range);
259 this->Labels->GenerateValues(numLabels, rangeStart, rangeEnd);
263 this->Labels->GenerateValues(numContours, rangeStart, rangeEnd);
278 vtkSetMacro(BackgroundLabel,
double);
279 vtkGetMacro(BackgroundLabel,
double);
287 vtkSetMacro(ArrayComponent,
int);
288 vtkGetMacro(ArrayComponent,
int);
296 MESH_TYPE_DEFAULT = 0,
312 vtkSetClampMacro(OutputMeshType,
int, MESH_TYPE_DEFAULT, MESH_TYPE_QUADS);
313 vtkGetMacro(OutputMeshType,
int);
330 vtkSetMacro(Smoothing,
bool);
331 vtkGetMacro(Smoothing,
bool);
332 vtkBooleanMacro(Smoothing,
bool);
349 this->Smoother->SetConstraintBox(sx, sy, sz);
356 this->Smoother->SetConstraintStrategyToConstraintDistance();
360 this->Smoother->SetConstraintStrategyToConstraintBox();
378 vtkSetMacro(AutomaticSmoothingConstraints,
bool);
379 vtkGetMacro(AutomaticSmoothingConstraints,
bool);
380 vtkBooleanMacro(AutomaticSmoothingConstraints,
bool);
381 vtkSetClampMacro(ConstraintScale,
double, 0, 100);
382 vtkGetMacro(ConstraintScale,
double);
392 vtkSetMacro(OptimizedSmoothingStencils,
bool);
393 vtkGetMacro(OptimizedSmoothingStencils,
bool);
394 vtkBooleanMacro(OptimizedSmoothingStencils,
bool);
426 OUTPUT_STYLE_DEFAULT = 0,
428 OUTPUT_STYLE_SELECTED
444 vtkSetClampMacro(OutputStyle,
int, OUTPUT_STYLE_DEFAULT, OUTPUT_STYLE_SELECTED);
445 vtkGetMacro(OutputStyle,
int);
456 void InitializeSelectedLabelsList();
457 void AddSelectedLabel(
double label);
458 void DeleteSelectedLabel(
double label);
460 double GetSelectedLabel(
vtkIdType ithLabel);
468 TRIANGULATION_GREEDY = 0,
470 TRIANGULATION_MIN_AREA
484 vtkSetClampMacro(TriangulationStrategy,
int, TRIANGULATION_GREEDY, TRIANGULATION_MIN_AREA);
485 vtkGetMacro(TriangulationStrategy,
int);
489 this->SetTriangulationStrategy(TRIANGULATION_MIN_EDGE);
493 this->SetTriangulationStrategy(TRIANGULATION_MIN_AREA);
508 vtkSetMacro(DataCaching,
bool);
509 vtkGetMacro(DataCaching,
bool);
510 vtkBooleanMacro(DataCaching,
bool);
558 VTK_ABI_NAMESPACE_END
adjust point positions using constrained smoothing
MeshType
This enum is used to control the type of the output polygonal mesh.
void SetNumberOfIterations(int n)
Convenience methods that delegate to the internal smoothing filter follow below.
bool AutomaticSmoothingConstraints
vtkSmartPointer< vtkPolyData > GeometryCache
void GetValues(double *contourValues)
Fill a supplied list with label values.
void SetConstraintStrategyToConstraintBox()
Convenience methods that delegate to the internal smoothing filter follow below.
vtkTypeUInt32 vtkMTimeType
vtkSmartPointer< vtkContourValues > Labels
double GetValue(int i)
Get the ith label value.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
int GetConstraintStrategy()
Convenience methods that delegate to the internal smoothing filter follow below.
vtkSmartPointer< vtkConstrainedSmoothingFilter > Smoother
vtkIdType GetNumberOfLabels()
Get the number of labels in the list of label values.
void GenerateLabels(int numLabels, double range[2])
Generate numLabels equally spaced labels between the specified range.
record modification and/or execution time
void SetRelaxationFactor(double f)
Convenience methods that delegate to the internal smoothing filter follow below.
void GetConstraintBox(double s[3])
Convenience methods that delegate to the internal smoothing filter follow below.
void SetOutputMeshTypeToDefault()
Control the type of output mesh.
void SetTriangulationStrategyToMinArea()
Specify the strategy to triangulate the quads (not applicable if the output mesh type is set to MESH_...
void SetOutputMeshTypeToQuads()
Control the type of output mesh.
concrete dataset represents vertices, lines, polygons, and triangle strips
void SetLabel(int i, double value)
Set a particular label value at label number i.
int GetNumberOfIterations()
Convenience methods that delegate to the internal smoothing filter follow below.
void GenerateLabels(int numLabels, double rangeStart, double rangeEnd)
Generate numLabels equally spaced labels between the specified range.
OutputType
This enum is used to control the production of the filter output.
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numLabels equally spaced labels between the specified range.
static vtkPolyDataAlgorithm * New()
void SetOutputStyleToSelected()
Specify the form (i.e., the style) of the output.
void SetConstraintBox(double sx, double sy, double sz)
Convenience methods that delegate to the internal smoothing filter follow below.
bool OptimizedSmoothingStencils
Superclass for algorithms that produce only polydata as output.
void SetConstraintDistance(double d)
Convenience methods that delegate to the internal smoothing filter follow below.
void SetOutputStyleToBoundary()
Specify the form (i.e., the style) of the output.
vtkTimeStamp SmoothingTime
a simple class to control print indentation
topologically and geometrically regular array of data
vtkIdType GetNumberOfContours()
Get the number of labels in the list of label values.
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkSmartPointer< vtkCellArray > StencilsCache
double GetConstraintDistance()
Convenience methods that delegate to the internal smoothing filter follow below.
void SetValue(int i, double value)
Set a particular label value at label number i.
void SetTriangulationStrategyToGreedy()
Specify the strategy to triangulate the quads (not applicable if the output mesh type is set to MESH_...
#define VTK_SIZEHINT(...)
int TriangulationStrategy
TriangulationType
This enum is used to control how quadrilaterals are triangulated.
double * GetValues()
Get a pointer to an array of labels.
void SetConstraintBox(double s[3])
Convenience methods that delegate to the internal smoothing filter follow below.
void GetLabels(double *contourValues)
Fill a supplied list with label values.
object to represent cell connectivity
generate smoothed isocontours from segmented 3D image data (i.e., "label maps")
void GenerateValues(int numContours, double range[2])
Generate numLabels equally spaced labels between the specified range.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void SetOutputStyleToDefault()
Specify the form (i.e., the style) of the output.
double * GetLabels()
Get a pointer to an array of labels.
double GetRelaxationFactor()
Convenience methods that delegate to the internal smoothing filter follow below.
vtkTimeStamp SelectedLabelsTime
double GetLabel(int i)
Get the ith label value.
void SetNumberOfContours(int number)
Set the number of labels to place into the list.
std::vector< double > SelectedLabels
void SetConstraintStrategyToConstraintDistance()
Convenience methods that delegate to the internal smoothing filter follow below.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetTriangulationStrategyToMinEdge()
Specify the strategy to triangulate the quads (not applicable if the output mesh type is set to MESH_...
double * GetConstraintBox()
Convenience methods that delegate to the internal smoothing filter follow below.
void SetOutputMeshTypeToTriangles()
Control the type of output mesh.
void SetNumberOfLabels(int number)
Set the number of labels to place into the list.