52 #ifndef vtkPolyDataConnectivityFilter_h
53 #define vtkPolyDataConnectivityFilter_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
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 );
186 vtkSetMacro(OutputPointsPrecision,
int);
187 vtkGetMacro(OutputPointsPrecision,
int);
203 double ClosestPoint[3];
209 int IsScalarConnected(
vtkIdType cellId );
211 double ScalarRange[2];
213 void TraverseAndMark();
246 return "ExtractPointSeededRegions";
250 return "ExtractCellSeededRegions";
254 return "ExtractSpecifiedRegions";
258 return "ExtractAllRegions";
262 return "ExtractClosestPointRegion";
266 return "ExtractLargestRegion";
int FullScalarConnectivity
int OutputPointsPrecision
void SetExtractionModeToSpecifiedRegions()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkIdList * NeighborCellPointIds
#define VTKFILTERSCORE_EXPORT
std::vector< vtkIdType > Wave
#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
std::vector< vtkIdType > Wave2
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
vtkIdList * VisitedPointIds
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