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);
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";
void SetExtractionModeToSpecifiedRegions()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkIdList * NeighborCellPointIds
#define VTK_EXTRACT_CLOSEST_POINT_REGION
#define VTK_EXTRACT_POINT_SEEDED_REGIONS
dynamic, self-adjusting array of vtkIdType
vtkIdTypeArray * RegionSizes
concrete dataset represents vertices, lines, polygons, and triangle strips
void SetExtractionModeToPointSeededRegions()
const char * GetExtractionModeAsString()
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
void SetExtractionModeToClosestPointRegion()
a simple class to control print indentation
extract polygonal data based on geometric connectivity
list of point or cell ids
abstract superclass for arrays of numeric data
vtkDataArray * NewScalars
vtkDataArray * CellScalars
#define VTK_EXTRACT_LARGEST_REGION
void SetExtractionModeToLargestRegion()
#define VTK_EXTRACT_CELL_SEEDED_REGIONS
void SetExtractionModeToAllRegions()
#define VTK_EXTRACT_ALL_REGIONS
vtkIdType NumCellsInRegion
vtkIdList * SpecifiedRegionIds
void SetExtractionModeToCellSeededRegions()
#define VTK_EXTRACT_SPECIFIED_REGIONS