119 #ifndef vtkConnectivityFilter_h
120 #define vtkConnectivityFilter_h
122 #include "vtkFiltersCoreModule.h"
125 #define VTK_EXTRACT_POINT_SEEDED_REGIONS 1
126 #define VTK_EXTRACT_CELL_SEEDED_REGIONS 2
127 #define VTK_EXTRACT_SPECIFIED_REGIONS 3
128 #define VTK_EXTRACT_LARGEST_REGION 4
129 #define VTK_EXTRACT_ALL_REGIONS 5
130 #define VTK_EXTRACT_CLOSEST_POINT_REGION 6
132 VTK_ABI_NAMESPACE_BEGIN
167 vtkSetVector2Macro(ScalarRange,
double);
168 vtkGetVector2Macro(ScalarRange,
double);
177 vtkGetMacro(ExtractionMode,
int);
196 const char* GetExtractionModeAsString();
234 vtkSetVector3Macro(ClosestPoint,
double);
235 vtkGetVectorMacro(ClosestPoint,
double, 3);
268 vtkSetMacro(RegionIdAssignmentMode,
int);
269 vtkGetMacro(RegionIdAssignmentMode,
int);
277 vtkSetMacro(OutputPointsPrecision,
int);
278 vtkGetMacro(OutputPointsPrecision,
int);
302 double ClosestPoint[3];
305 double ScalarRange[2];
342 return "ExtractPointSeededRegions";
346 return "ExtractCellSeededRegions";
350 return "ExtractSpecifiedRegions";
354 return "ExtractAllRegions";
358 return "ExtractClosestPointRegion";
362 return "ExtractLargestRegion";
366 VTK_ABI_NAMESPACE_END
extract data based on geometric connectivity
~vtkConnectivityFilter() override
void TraverseAndMark(vtkDataSet *input)
void SetExtractionModeToClosestPointRegion()
Control the extraction of connected surfaces.
void SetExtractionModeToLargestRegion()
Control the extraction of connected surfaces.
vtkIdList * SpecifiedRegionIds
void OrderRegionIds(vtkIdTypeArray *pointRegionIds, vtkIdTypeArray *cellRegionIds)
int RegionIdAssignmentMode
void AddSpecifiedRegion(int id)
Add a region id to extract.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void DeleteSeed(vtkIdType id)
Delete a seed id (point or cell id).
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
const char * GetExtractionModeAsString()
Return the method of extraction as a string.
void SetExtractionModeToCellSeededRegions()
Control the extraction of connected surfaces.
void AddSeed(vtkIdType id)
Add a seed id (point or cell id).
RegionIdAssignment
Enumeration of the various ways to assign RegionIds when the ColorRegions option is on.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation *info) override
vtkIdTypeArray * RegionSizes
void InitializeSeedList()
Initialize list of point ids/cell ids used to seed regions.
static vtkConnectivityFilter * New()
Construct with default extraction mode to extract largest regions.
void DeleteSpecifiedRegion(int id)
Delete a region id to extract.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetExtractionModeToPointSeededRegions()
Control the extraction of connected surfaces.
void SetExtractionModeToAllRegions()
Control the extraction of connected surfaces.
void InitializeSpecifiedRegionList()
Initialize list of region ids to extract.
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
vtkTypeBool ScalarConnectivity
int OutputPointsPrecision
void SetExtractionModeToSpecifiedRegions()
Control the extraction of connected surfaces.
int GetNumberOfExtractedRegions()
Obtain the number of connected regions.
abstract superclass for arrays of numeric data
abstract class to specify dataset behavior
dynamic, self-adjusting array of float
list of point or cell ids
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
dynamic, self-adjusting array of int
Superclass for algorithms that produce output of the same type as input.
concrete dataset represents vertices, lines, polygons, and triangle strips
#define VTK_EXTRACT_CLOSEST_POINT_REGION
#define VTK_EXTRACT_POINT_SEEDED_REGIONS
#define VTK_EXTRACT_ALL_REGIONS
#define VTK_EXTRACT_CELL_SEEDED_REGIONS
#define VTK_EXTRACT_SPECIFIED_REGIONS
#define VTK_EXTRACT_LARGEST_REGION