55 #ifndef __vtkConnectivityFilter_h
56 #define __vtkConnectivityFilter_h
58 #include "vtkFiltersCoreModule.h"
59 #include "vtkUnstructuredGridAlgorithm.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
78 void PrintSelf(ostream& os, vtkIndent indent);
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);
116 const char *GetExtractionModeAsString();
120 void InitializeSeedList();
123 void AddSeed(vtkIdType
id);
126 void DeleteSeed(vtkIdType
id);
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);
159 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
160 virtual int FillInputPortInformation(
int port, vtkInformation *info);
168 double ClosestPoint[3];
171 double ScalarRange[2];
173 void TraverseAndMark(vtkDataSet *input);
177 vtkFloatArray *CellScalars;
178 vtkIdList *NeighborCellPointIds;
181 vtkIdTypeArray *NewScalars;
182 vtkIdTypeArray *NewCellScalars;
183 vtkIdType RegionNumber;
184 vtkIdType PointNumber;
185 vtkIdType NumCellsInRegion;
186 vtkDataArray *InScalars;
202 return "ExtractPointSeededRegions";
206 return "ExtractCellSeededRegions";
210 return "ExtractSpecifiedRegions";
214 return "ExtractAllRegions";
218 return "ExtractClosestPointRegion";
222 return "ExtractLargestRegion";
void SetExtractionModeToPointSeededRegions()
void SetExtractionModeToClosestPointRegion()
void SetExtractionModeToCellSeededRegions()
extract data based on geometric connectivity
void SetExtractionModeToAllRegions()
const char * GetExtractionModeAsString()
#define VTK_EXTRACT_LARGEST_REGION
vtkIdList * SpecifiedRegionIds
#define VTK_EXTRACT_SPECIFIED_REGIONS
#define VTK_EXTRACT_CELL_SEEDED_REGIONS
#define VTK_EXTRACT_POINT_SEEDED_REGIONS
#define VTK_EXTRACT_CLOSEST_POINT_REGION
#define VTK_EXTRACT_ALL_REGIONS
void SetExtractionModeToLargestRegion()
void SetExtractionModeToSpecifiedRegions()
vtkIdTypeArray * RegionSizes