Go to the documentation of this file.
53 #ifndef vtkPolyDataConnectivityFilter_h
54 #define vtkPolyDataConnectivityFilter_h
56 #include "vtkFiltersCoreModule.h"
59 #define VTK_EXTRACT_POINT_SEEDED_REGIONS 1
60 #define VTK_EXTRACT_CELL_SEEDED_REGIONS 2
61 #define VTK_EXTRACT_SPECIFIED_REGIONS 3
62 #define VTK_EXTRACT_LARGEST_REGION 4
63 #define VTK_EXTRACT_ALL_REGIONS 5
64 #define VTK_EXTRACT_CLOSEST_POINT_REGION 6
96 vtkGetMacro(ScalarConnectivity,
int);
111 vtkGetMacro(FullScalarConnectivity,
int);
119 vtkSetVector2Macro(ScalarRange,
double);
120 vtkGetVector2Macro(ScalarRange,
double);
127 vtkSetClampMacro(ExtractionMode,
int,
130 vtkGetMacro(ExtractionMode,
int);
143 const char *GetExtractionModeAsString();
181 vtkSetVector3Macro(ClosestPoint,
double);
182 vtkGetVectorMacro(ClosestPoint,
double,3);
195 vtkGetMacro(ColorRegions,
int);
205 vtkGetMacro( MarkVisitedPointIds,
int );
224 vtkGetMacro(OutputPointsPrecision,
int);
240 double ClosestPoint[3];
242 int ScalarConnectivity;
243 int FullScalarConnectivity;
248 double ScalarRange[2];
250 void TraverseAndMark();
269 int MarkVisitedPointIds;
270 int OutputPointsPrecision;
285 return "ExtractPointSeededRegions";
289 return "ExtractCellSeededRegions";
293 return "ExtractSpecifiedRegions";
297 return "ExtractAllRegions";
301 return "ExtractClosestPointRegion";
305 return "ExtractLargestRegion";
int GetNumberOfExtractedRegions()
Obtain the number of connected regions.
void SetExtractionModeToSpecifiedRegions()
void DeleteSeed(int id)
Delete a seed id (point or cell id).
~vtkPolyDataConnectivityFilter() override
extract polygonal data based on geometric connectivity
void InitializeSpecifiedRegionList()
Initialize list of region ids to extract.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract superclass for arrays of numeric data
void InitializeSeedList()
Initialize list of point ids/cell ids used to seed regions.
#define VTK_EXTRACT_CLOSEST_POINT_REGION
void DeleteSpecifiedRegion(int id)
Delete a region id to extract.
#define VTK_EXTRACT_LARGEST_REGION
void SetExtractionModeToClosestPointRegion()
void SetExtractionModeToPointSeededRegions()
a simple class to control print indentation
vtkPolyDataConnectivityFilter()
list of point or cell ids
void SetExtractionModeToLargestRegion()
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define VTK_EXTRACT_ALL_REGIONS
dynamic, self-adjusting array of vtkIdType
#define VTK_EXTRACT_POINT_SEEDED_REGIONS
void AddSpecifiedRegion(int id)
Add a region id to extract.
concrete dataset represents vertices, lines, polygons, and triangle strips
void AddSeed(int id)
Add a seed id (point or cell id).
void SetExtractionModeToAllRegions()
#define VTK_EXTRACT_SPECIFIED_REGIONS
#define VTK_EXTRACT_CELL_SEEDED_REGIONS
void SetExtractionModeToCellSeededRegions()
static vtkPolyDataConnectivityFilter * New()
Construct with default extraction mode to extract largest regions.
Superclass for algorithms that produce only polydata as output.