46 #ifndef __vtkPolyDataConnectivityFilter_h
47 #define __vtkPolyDataConnectivityFilter_h
51 #define VTK_EXTRACT_POINT_SEEDED_REGIONS 1
52 #define VTK_EXTRACT_CELL_SEEDED_REGIONS 2
53 #define VTK_EXTRACT_SPECIFIED_REGIONS 3
54 #define VTK_EXTRACT_LARGEST_REGION 4
55 #define VTK_EXTRACT_ALL_REGIONS 5
56 #define VTK_EXTRACT_CLOSEST_POINT_REGION 6
75 vtkSetMacro(ScalarConnectivity,
int);
76 vtkGetMacro(ScalarConnectivity,
int);
77 vtkBooleanMacro(ScalarConnectivity,
int);
83 vtkSetVector2Macro(ScalarRange,
double);
84 vtkGetVector2Macro(ScalarRange,
double);
89 vtkSetClampMacro(ExtractionMode,
int,
92 vtkGetMacro(ExtractionMode,
int);
93 void SetExtractionModeToPointSeededRegions()
95 void SetExtractionModeToCellSeededRegions()
97 void SetExtractionModeToLargestRegion()
99 void SetExtractionModeToSpecifiedRegions()
101 void SetExtractionModeToClosestPointRegion()
103 void SetExtractionModeToAllRegions()
105 const char *GetExtractionModeAsString();
109 void InitializeSeedList();
112 void AddSeed(
int id);
115 void DeleteSeed(
int id);
118 void InitializeSpecifiedRegionList();
121 void AddSpecifiedRegion(
int id);
124 void DeleteSpecifiedRegion(
int id);
129 vtkSetVector3Macro(ClosestPoint,
double);
130 vtkGetVectorMacro(ClosestPoint,
double,3);
134 int GetNumberOfExtractedRegions();
138 vtkSetMacro(ColorRegions,
int);
139 vtkGetMacro(ColorRegions,
int);
140 vtkBooleanMacro(ColorRegions,
int);
156 double ClosestPoint[3];
159 double ScalarRange[2];
161 void TraverseAndMark();
189 return "ExtractPointSeededRegions";
193 return "ExtractCellSeededRegions";
197 return "ExtractSpecifiedRegions";
201 return "ExtractAllRegions";
205 return "ExtractClosestPointRegion";
209 return "ExtractLargestRegion";