55 #ifndef __vtkConnectivityFilter_h
56 #define __vtkConnectivityFilter_h
58 #include "vtkFiltersCoreModule.h"
61 #define VTK_EXTRACT_POINT_SEEDED_REGIONS 1
62 #define VTK_EXTRACT_CELL_SEEDED_REGIONS 2
63 #define VTK_EXTRACT_SPECIFIED_REGIONS 3
64 #define VTK_EXTRACT_LARGEST_REGION 4
65 #define VTK_EXTRACT_ALL_REGIONS 5
66 #define VTK_EXTRACT_CLOSEST_POINT_REGION 6
87 vtkSetMacro(ScalarConnectivity,
int);
88 vtkGetMacro(ScalarConnectivity,
int);
89 vtkBooleanMacro(ScalarConnectivity,
int);
95 vtkSetVector2Macro(ScalarRange,
double);
96 vtkGetVector2Macro(ScalarRange,
double);
101 vtkSetClampMacro(ExtractionMode,
int,
103 vtkGetMacro(ExtractionMode,
int);
104 void SetExtractionModeToPointSeededRegions()
106 void SetExtractionModeToCellSeededRegions()
108 void SetExtractionModeToLargestRegion()
110 void SetExtractionModeToSpecifiedRegions()
112 void SetExtractionModeToClosestPointRegion()
114 void SetExtractionModeToAllRegions()
116 const char *GetExtractionModeAsString();
120 void InitializeSeedList();
129 void InitializeSpecifiedRegionList();
132 void AddSpecifiedRegion(
int id);
135 void DeleteSpecifiedRegion(
int id);
140 vtkSetVector3Macro(ClosestPoint,
double);
141 vtkGetVectorMacro(ClosestPoint,
double,3);
145 int GetNumberOfExtractedRegions();
149 vtkSetMacro(ColorRegions,
int);
150 vtkGetMacro(ColorRegions,
int);
151 vtkBooleanMacro(ColorRegions,
int);
168 double ClosestPoint[3];
171 double ScalarRange[2];
202 return "ExtractPointSeededRegions";
206 return "ExtractCellSeededRegions";
210 return "ExtractSpecifiedRegions";
214 return "ExtractAllRegions";
218 return "ExtractClosestPointRegion";
222 return "ExtractLargestRegion";