114#ifndef vtkSurfaceNets2D_h
115#define vtkSurfaceNets2D_h
119#include "vtkFiltersCoreModule.h"
123VTK_ABI_NAMESPACE_BEGIN
156 void SetValue(
int i,
double value) { this->Labels->SetValue(i, value); }
157 void SetLabel(
int i,
double value) { this->Labels->SetValue(i, value); }
164 double GetValue(
int i) {
return this->Labels->GetValue(i); }
165 double GetLabel(
int i) {
return this->Labels->GetValue(i); }
173 double*
GetValues() {
return this->Labels->GetValues(); }
174 double*
GetLabels() {
return this->Labels->GetValues(); }
183 void GetValues(
double* contourValues) { this->Labels->GetValues(contourValues); }
184 void GetLabels(
double* contourValues) { this->Labels->GetValues(contourValues); }
214 this->Labels->GenerateValues(numLabels, range);
218 this->Labels->GenerateValues(numContours, range);
222 this->Labels->GenerateValues(numLabels, rangeStart, rangeEnd);
226 this->Labels->GenerateValues(numContours, rangeStart, rangeEnd);
239 vtkSetMacro(ComputeScalars,
bool);
240 vtkGetMacro(ComputeScalars,
bool);
241 vtkBooleanMacro(ComputeScalars,
bool);
255 vtkSetMacro(BackgroundLabel,
double);
256 vtkGetMacro(BackgroundLabel,
double);
264 vtkSetMacro(ArrayComponent,
int);
265 vtkGetMacro(ArrayComponent,
int);
274 vtkSetMacro(Smoothing,
bool);
275 vtkGetMacro(Smoothing,
bool);
276 vtkBooleanMacro(Smoothing,
bool);
301 vtkSetMacro(DataCaching,
bool);
302 vtkGetMacro(DataCaching,
bool);
303 vtkBooleanMacro(DataCaching,
bool);
object to represent cell connectivity
adjust point positions using constrained smoothing
topologically and geometrically regular array of data
a simple class to control print indentation
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Hold a reference to a vtkObjectBase instance.
generate smoothed constours from segmented 2D image data (i.e., "label maps")
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, printing, and type information.
void GenerateLabels(int numLabels, double rangeStart, double rangeEnd)
Generate numLabels equally spaced labels between the specified range.
void SetNumberOfLabels(int number)
Set the number of labels to place into the list.
vtkMTimeType GetMTime() override
The modified time is also a function of the label values and the smoothing filter.
vtkSmartPointer< vtkConstrainedSmoothingFilter > Smoother
vtkSmartPointer< vtkContourValues > Labels
vtkSmartPointer< vtkPolyData > GeometryCache
void GetValues(double *contourValues)
Fill a supplied list with label values.
vtkTimeStamp SmoothingTime
void GenerateValues(int numContours, double range[2])
Generate numLabels equally spaced labels between the specified range.
void SetLabel(int i, double value)
Set a particular label value at label number i.
vtkGetSmartPointerMacro(Smoother, vtkConstrainedSmoothingFilter)
Get the instance of vtkConstrainedSmoothingFilter used to smooth the extracted surface net.
double * GetLabels()
Get a pointer to an array of labels.
~vtkSurfaceNets2D() override=default
double GetLabel(int i)
Get the ith label value.
double GetValue(int i)
Get the ith label value.
void GenerateLabels(int numLabels, double range[2])
Generate numLabels equally spaced labels between the specified range.
void SetNumberOfContours(int number)
Set the number of labels to place into the list.
void GetLabels(double *contourValues)
Fill a supplied list with label values.
double * GetValues()
Get a pointer to an array of labels.
static vtkSurfaceNets2D * New()
Standard methods for instantiation, printing, and type information.
void CacheData(vtkPolyData *pd, vtkCellArray *ca)
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
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.
vtkIdType GetNumberOfLabels()
Get the number of labels in the list of label values.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkIdType GetNumberOfContours()
Get the number of labels in the list of label values.
vtkSmartPointer< vtkCellArray > StencilsCache
void SetValue(int i, double value)
Set a particular label value at label number i.
record modification and/or execution time
vtkTypeUInt32 vtkMTimeType