73 #ifndef vtkLabeledImagePointSampler_h
74 #define vtkLabeledImagePointSampler_h
77 #include "vtkFiltersMeshingModule.h"
80 VTK_ABI_NAMESPACE_BEGIN
111 vtkSetMacro(BackgroundPointMapping,
int);
112 vtkGetMacro(BackgroundPointMapping,
int);
113 vtkBooleanMacro(BackgroundPointMapping,
int);
114 vtkSetMacro(BackgroundPointLabel,
int);
115 vtkGetMacro(BackgroundPointLabel,
int);
132 vtkSetClampMacro(DensityDistribution,
int, LINEAR, EXPONENTIAL);
133 vtkGetMacro(DensityDistribution,
int);
145 vtkSetClampMacro(N,
unsigned int, 1, 100);
146 vtkGetMacro(N,
unsigned int);
175 vtkSetVector2Macro(RandomProbabilityRange,
double);
176 vtkGetVectorMacro(RandomProbabilityRange,
double, 2);
187 BACKGROUND_POINTS = 2
195 vtkSetClampMacro(OutputType,
int, ALL_POINTS, BACKGROUND_POINTS);
196 vtkGetMacro(OutputType,
int);
215 vtkSetClampMacro(JoggleRadius,
double, 0, 0.5);
216 vtkGetMacro(JoggleRadius,
double);
218 vtkBooleanMacro(JoggleRadiusIsAbsolute,
vtkTypeBool);
223 vtkSetClampMacro(JoggleConstraint,
double, 0, 1);
224 vtkGetMacro(JoggleConstraint,
double);
250 double GetValue(
int i) {
return this->Labels->GetValue(i); }
251 double GetLabel(
int i) {
return this->Labels->GetValue(i); }
259 double*
GetValues() {
return this->Labels->GetValues(); }
260 double*
GetLabels() {
return this->Labels->GetValues(); }
269 void GetValues(
double* contourValues) { this->Labels->GetValues(contourValues); }
270 void GetLabels(
double* contourValues) { this->Labels->GetValues(contourValues); }
300 this->Labels->GenerateValues(numLabels, range);
304 this->Labels->GenerateValues(numContours, range);
308 this->Labels->GenerateValues(numLabels, rangeStart, rangeEnd);
312 this->Labels->GenerateValues(numContours, rangeStart, rangeEnd);
345 double RandomProbabilityRange[2];
365 VTK_ABI_NAMESPACE_END
void SetOutputTypeToAllPoints()
Used to indicate which generated points to output.
vtkTypeBool ConstrainJoggle
void SetDensityDistributionToExponential()
Used to indicate the type of point density distribution.
vtkTypeUInt32 vtkMTimeType
void SetOutputTypeToBackgroundPoints()
Used to indicate which generated points to output.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkSmartPointer< vtkContourValues > Labels
vtkTypeBool GenerateVerts
vtkIdType GetNumberOfLabels()
Get the number of labels in the list of label values.
void SetNumberOfContours(int number)
Set the number of labels to place into the list.
static vtkPolyDataAlgorithm * New()
void GenerateLabels(int numLabels, double range[2])
Generate numLabels equally spaced labels between the specified range.
void GenerateValues(int numContours, double range[2])
Generate numLabels equally spaced labels between the specified range.
OutputLabelsSelection
Used to indicate which generated points to output.
void GetValues(double *contourValues)
Fill a supplied list with label values.
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numLabels equally spaced labels between the specified range.
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
void SetValue(int i, double value)
Set a particular label value at label number i.
topologically and geometrically regular array of data
virtual vtkMTimeType GetMTime()
Return this object's modified time.
DensityDistributionType
Used to indicate the type of point density distribution.
vtkTypeBool JoggleRadiusIsAbsolute
double * GetLabels()
Get a pointer to an array of labels.
void SetOutputTypeToLabeledPoints()
Used to indicate which generated points to output.
void SetDensityDistributionToLinear()
Used to indicate the type of point density distribution.
produce sampled points from a segmented image
double * GetValues()
Get a pointer to an array of labels.
void SetLabel(int i, double value)
Set a particular label value at label number i.
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.
vtkIdType GetNumberOfContours()
Get the number of labels in the list of label values.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void GetLabels(double *contourValues)
Fill a supplied list with label values.
double GetLabel(int i)
Get the ith label value.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool BackgroundPointMapping
double GetValue(int i)
Get the ith label value.