107#ifndef vtkConnectivityFilter_h
108#define vtkConnectivityFilter_h
110#include "vtkFiltersCoreModule.h"
115#define VTK_EXTRACT_POINT_SEEDED_REGIONS 1
116#define VTK_EXTRACT_CELL_SEEDED_REGIONS 2
117#define VTK_EXTRACT_SPECIFIED_REGIONS 3
118#define VTK_EXTRACT_LARGEST_REGION 4
119#define VTK_EXTRACT_ALL_REGIONS 5
120#define VTK_EXTRACT_CLOSEST_POINT_REGION 6
122VTK_ABI_NAMESPACE_BEGIN
157 vtkSetVector2Macro(ScalarRange,
double);
158 vtkGetVector2Macro(ScalarRange,
double);
167 vtkGetMacro(ExtractionMode,
int);
186 const char* GetExtractionModeAsString();
224 vtkSetVector3Macro(ClosestPoint,
double);
225 vtkGetVectorMacro(ClosestPoint,
double, 3);
258 vtkSetMacro(RegionIdAssignmentMode,
int);
259 vtkGetMacro(RegionIdAssignmentMode,
int);
267 vtkSetMacro(OutputPointsPrecision,
int);
268 vtkGetMacro(OutputPointsPrecision,
int);
278 vtkSetMacro(CompressArrays,
bool);
279 vtkGetMacro(CompressArrays,
bool);
280 vtkBooleanMacro(CompressArrays,
bool);
320 double ClosestPoint[3] = { 0, 0, 0 };
323 double ScalarRange[2] = { 0, 1 };
325 int RegionIdAssignmentMode = UNSPECIFIED;
360 bool CompressArrays =
true;
373 return "ExtractPointSeededRegions";
377 return "ExtractCellSeededRegions";
381 return "ExtractSpecifiedRegions";
385 return "ExtractAllRegions";
389 return "ExtractClosestPointRegion";
393 return "ExtractLargestRegion";
extract data based on geometric connectivity
~vtkConnectivityFilter() override
void TraverseAndMark(vtkDataSet *input)
Mark current cell as visited and assign region number.
vtkSmartPointer< vtkDataArray > CompressWithImplicit(vtkDataArray *array)
Compress the given array, returning a vtkImplicitArray.
void SetExtractionModeToClosestPointRegion()
Control the extraction of connected surfaces.
void SetExtractionModeToLargestRegion()
Control the extraction of connected surfaces.
void OrderRegionIds(vtkIdTypeArray *pointRegionIds, vtkIdTypeArray *cellRegionIds)
void AddSpecifiedRegion(int id)
Add a region id to extract.
static vtkConnectivityFilter * New()
Construct with default extraction mode to extract largest regions.
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
Usual vtkAlgorithm method implementations.
const char * GetExtractionModeAsString()
Return the method of extraction as a string.
void SetExtractionModeToCellSeededRegions()
Control the extraction of connected surfaces.
void AddRegionsIds(vtkDataSet *output, vtkDataArray *pointArray, vtkDataArray *cellArray)
Add regions ids array to output dataset.
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
Usual vtkAlgorithm method implementations.
int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation *info) override
Usual vtkAlgorithm method implementations.
void InitializeSeedList()
Initialize list of point ids/cell ids used to seed regions.
void DeleteSpecifiedRegion(int id)
Delete a region id to extract.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Usual vtkAlgorithm method implementations.
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
Usual vtkAlgorithm method implementations.
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
Allocate and hold a VTK object.
Superclass for algorithms that produce output of the same type as input.
concrete dataset represents vertices, lines, polygons, and triangle strips
Hold a reference to a vtkObjectBase instance.
#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