54 #ifndef vtkEuclideanClusterExtraction_h
55 #define vtkEuclideanClusterExtraction_h
57 #include "vtkFiltersPointsModule.h"
60 #define VTK_EXTRACT_POINT_SEEDED_CLUSTERS 1
61 #define VTK_EXTRACT_SPECIFIED_CLUSTERS 2
62 #define VTK_EXTRACT_LARGEST_CLUSTER 3
63 #define VTK_EXTRACT_ALL_CLUSTERS 4
64 #define VTK_EXTRACT_CLOSEST_POINT_CLUSTER 5
88 vtkGetMacro(Radius,
double);
98 vtkSetMacro(ScalarConnectivity,
bool);
99 vtkGetMacro(ScalarConnectivity,
bool);
100 vtkBooleanMacro(ScalarConnectivity,
bool);
107 vtkSetVector2Macro(ScalarRange,
double);
108 vtkGetVector2Macro(ScalarRange,
double);
117 vtkGetMacro(ExtractionMode,
int);
132 const char* GetExtractionModeAsString();
138 void InitializeSeedList();
153 void InitializeSpecifiedClusterList();
158 void AddSpecifiedCluster(
int id);
163 void DeleteSpecifiedCluster(
int id);
170 vtkSetVector3Macro(ClosestPoint,
double);
171 vtkGetVectorMacro(ClosestPoint,
double, 3);
177 int GetNumberOfExtractedClusters();
183 vtkSetMacro(ColorClusters,
bool);
184 vtkGetMacro(ColorClusters,
bool);
185 vtkBooleanMacro(ColorClusters,
bool);
209 double ClosestPoint[3];
212 double ScalarRange[2];
250 return "ExtractPointSeededClusters";
254 return "ExtractSpecifiedClusters";
258 return "ExtractAllClusters";
262 return "ExtractClosestPointCluster";
266 return "ExtractLargestCluster";
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
dynamic, self-adjusting array of float
dynamic, self-adjusting array of vtkIdType
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
abstract class to quickly locate points in 3-space
list of point or cell ids
abstract superclass for arrays of numeric data
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
represent and manipulate 3D points
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.