52 #ifndef __vtkPolyDataConnectivityFilter_h
53 #define __vtkPolyDataConnectivityFilter_h
55 #include "vtkFiltersCoreModule.h"
58 #define VTK_EXTRACT_POINT_SEEDED_REGIONS 1
59 #define VTK_EXTRACT_CELL_SEEDED_REGIONS 2
60 #define VTK_EXTRACT_SPECIFIED_REGIONS 3
61 #define VTK_EXTRACT_LARGEST_REGION 4
62 #define VTK_EXTRACT_ALL_REGIONS 5
63 #define VTK_EXTRACT_CLOSEST_POINT_REGION 6
73 void PrintSelf(ostream& os, vtkIndent indent);
77 vtkGetObjectMacro(RegionSizes,vtkIdTypeArray);
87 vtkSetMacro(ScalarConnectivity,
int);
88 vtkGetMacro(ScalarConnectivity,
int);
89 vtkBooleanMacro(ScalarConnectivity,
int);
100 vtkSetMacro(FullScalarConnectivity,
int);
101 vtkGetMacro(FullScalarConnectivity,
int);
102 vtkBooleanMacro(FullScalarConnectivity,
int);
108 vtkSetVector2Macro(ScalarRange,
double);
109 vtkGetVector2Macro(ScalarRange,
double);
114 vtkSetClampMacro(ExtractionMode,
int,
117 vtkGetMacro(ExtractionMode,
int);
130 const char *GetExtractionModeAsString();
134 void InitializeSeedList();
137 void AddSeed(
int id);
140 void DeleteSeed(
int id);
143 void InitializeSpecifiedRegionList();
146 void AddSpecifiedRegion(
int id);
149 void DeleteSpecifiedRegion(
int id);
154 vtkSetVector3Macro(ClosestPoint,
double);
155 vtkGetVectorMacro(ClosestPoint,
double,3);
159 int GetNumberOfExtractedRegions();
163 vtkSetMacro(ColorRegions,
int);
164 vtkGetMacro(ColorRegions,
int);
165 vtkBooleanMacro(ColorRegions,
int);
171 vtkSetMacro( MarkVisitedPointIds,
int );
172 vtkGetMacro( MarkVisitedPointIds,
int );
173 vtkBooleanMacro( MarkVisitedPointIds,
int );
179 vtkGetObjectMacro( VisitedPointIds, vtkIdList );
187 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
195 double ClosestPoint[3];
201 int IsScalarConnected( vtkIdType cellId );
203 double ScalarRange[2];
205 void TraverseAndMark();
237 return "ExtractPointSeededRegions";
241 return "ExtractCellSeededRegions";
245 return "ExtractSpecifiedRegions";
249 return "ExtractAllRegions";
253 return "ExtractClosestPointRegion";
257 return "ExtractLargestRegion";
int FullScalarConnectivity
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
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()
extract polygonal data based on geometric connectivity
vtkIdList * VisitedPointIds
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