51 #ifndef vtkEuclideanClusterExtraction_h
52 #define vtkEuclideanClusterExtraction_h
54 #include "vtkFiltersPointsModule.h"
57 #define VTK_EXTRACT_POINT_SEEDED_CLUSTERS 1
58 #define VTK_EXTRACT_SPECIFIED_CLUSTERS 2
59 #define VTK_EXTRACT_LARGEST_CLUSTER 3
60 #define VTK_EXTRACT_ALL_CLUSTERS 4
61 #define VTK_EXTRACT_CLOSEST_POINT_CLUSTER 5
86 vtkGetMacro(Radius,
double);
96 vtkSetMacro(ScalarConnectivity,
bool);
97 vtkGetMacro(ScalarConnectivity,
bool);
98 vtkBooleanMacro(ScalarConnectivity,
bool);
105 vtkSetVector2Macro(ScalarRange,
double);
106 vtkGetVector2Macro(ScalarRange,
double);
113 vtkSetClampMacro(ExtractionMode,
int,
115 vtkGetMacro(ExtractionMode,
int);
126 const char *GetExtractionModeAsString();
132 void InitializeSeedList();
147 void InitializeSpecifiedClusterList();
152 void AddSpecifiedCluster(
int id);
157 void DeleteSpecifiedCluster(
int id);
164 vtkSetVector3Macro(ClosestPoint,
double);
165 vtkGetVectorMacro(ClosestPoint,
double,3);
171 int GetNumberOfExtractedClusters();
177 vtkSetMacro(ColorClusters,
bool);
178 vtkGetMacro(ColorClusters,
bool);
179 vtkBooleanMacro(ColorClusters,
bool);
203 double ClosestPoint[3];
206 double ScalarRange[2];
247 return "ExtractPointSeededClusters";
251 return "ExtractSpecifiedClusters";
255 return "ExtractAllClusters";
259 return "ExtractClosestPointCluster";
263 return "ExtractLargestCluster";