41 #ifndef vtkPolyDataConnectivityFilter_h
42 #define vtkPolyDataConnectivityFilter_h
44 #include "vtkFiltersCoreModule.h"
47 #define VTK_EXTRACT_POINT_SEEDED_REGIONS 1
48 #define VTK_EXTRACT_CELL_SEEDED_REGIONS 2
49 #define VTK_EXTRACT_SPECIFIED_REGIONS 3
50 #define VTK_EXTRACT_LARGEST_REGION 4
51 #define VTK_EXTRACT_ALL_REGIONS 5
52 #define VTK_EXTRACT_CLOSEST_POINT_REGION 6
54 VTK_ABI_NAMESPACE_BEGIN
101 vtkBooleanMacro(FullScalarConnectivity,
vtkTypeBool);
108 vtkSetVector2Macro(ScalarRange,
double);
109 vtkGetVector2Macro(ScalarRange,
double);
118 vtkGetMacro(ExtractionMode,
int);
137 const char* GetExtractionModeAsString();
143 void InitializeSeedList();
148 void AddSeed(
int id);
153 void DeleteSeed(
int id);
158 void InitializeSpecifiedRegionList();
163 void AddSpecifiedRegion(
int id);
168 void DeleteSpecifiedRegion(
int id);
175 vtkSetVector3Macro(ClosestPoint,
double);
176 vtkGetVectorMacro(ClosestPoint,
double, 3);
182 int GetNumberOfExtractedRegions();
209 vtkGetObjectMacro(VisitedPointIds,
vtkIdList);
218 vtkSetMacro(OutputPointsPrecision,
int);
219 vtkGetMacro(OutputPointsPrecision,
int);
235 double ClosestPoint[3];
243 double ScalarRange[2];
245 void TraverseAndMark();
279 return "ExtractPointSeededRegions";
283 return "ExtractCellSeededRegions";
287 return "ExtractSpecifiedRegions";
291 return "ExtractAllRegions";
295 return "ExtractClosestPointRegion";
299 return "ExtractLargestRegion";
303 VTK_ABI_NAMESPACE_END
vtkTypeBool FullScalarConnectivity
int OutputPointsPrecision
void SetExtractionModeToSpecifiedRegions()
Control the extraction of connected surfaces.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIdList * NeighborCellPointIds
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()
Control the extraction of connected surfaces.
const char * GetExtractionModeAsString()
Return the method of extraction as a string.
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
void SetExtractionModeToClosestPointRegion()
Control the extraction of connected surfaces.
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
vtkTypeBool MarkVisitedPointIds
vtkDataArray * CellScalars
vtkTypeBool ScalarConnectivity
#define VTK_EXTRACT_LARGEST_REGION
void SetExtractionModeToLargestRegion()
Control the extraction of connected surfaces.
#define VTK_EXTRACT_CELL_SEEDED_REGIONS
void SetExtractionModeToAllRegions()
Control the extraction of connected surfaces.
#define VTK_EXTRACT_ALL_REGIONS
vtkIdType NumCellsInRegion
vtkIdList * SpecifiedRegionIds
void SetExtractionModeToCellSeededRegions()
Control the extraction of connected surfaces.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_EXTRACT_SPECIFIED_REGIONS