140#ifndef vtkPolyDataConnectivityFilter_h
141#define vtkPolyDataConnectivityFilter_h
143#include "vtkFiltersCoreModule.h"
146#define VTK_EXTRACT_POINT_SEEDED_REGIONS 1
147#define VTK_EXTRACT_CELL_SEEDED_REGIONS 2
148#define VTK_EXTRACT_SPECIFIED_REGIONS 3
149#define VTK_EXTRACT_LARGEST_REGION 4
150#define VTK_EXTRACT_ALL_REGIONS 5
151#define VTK_EXTRACT_CLOSEST_POINT_REGION 6
153VTK_ABI_NAMESPACE_BEGIN
207 vtkSetVector2Macro(ScalarRange,
double);
208 vtkGetVector2Macro(ScalarRange,
double);
217 vtkGetMacro(ExtractionMode,
int);
236 const char* GetExtractionModeAsString();
274 vtkSetVector3Macro(ClosestPoint,
double);
275 vtkGetVectorMacro(ClosestPoint,
double, 3);
317 vtkSetMacro(OutputPointsPrecision,
int);
318 vtkGetMacro(OutputPointsPrecision,
int);
334 double ClosestPoint[3];
342 double ScalarRange[2];
378 return "ExtractPointSeededRegions";
382 return "ExtractCellSeededRegions";
386 return "ExtractSpecifiedRegions";
390 return "ExtractAllRegions";
394 return "ExtractClosestPointRegion";
398 return "ExtractLargestRegion";
abstract superclass for arrays of numeric data
list of point or cell ids
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Superclass for algorithms that produce only polydata as output.
extract polygonal data based on geometric connectivity
std::vector< vtkIdType > Wave2
vtkDataArray * NewScalars
vtkPolyDataConnectivityFilter()
void SetExtractionModeToAllRegions()
Control the extraction of connected surfaces.
vtkTypeBool FullScalarConnectivity
vtkTypeBool ScalarConnectivity
void InitializeSpecifiedRegionList()
Initialize list of region ids to extract.
vtkIdTypeArray * RegionSizes
const char * GetExtractionModeAsString()
Return the method of extraction as a string.
void InitializeSeedList()
Initialize list of point ids/cell ids used to seed regions.
std::vector< vtkIdType > Wave
~vtkPolyDataConnectivityFilter() override
static vtkPolyDataConnectivityFilter * New()
Construct with default extraction mode to extract largest regions.
vtkTypeBool MarkVisitedPointIds
void SetExtractionModeToLargestRegion()
Control the extraction of connected surfaces.
vtkDataArray * CellScalars
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void DeleteSpecifiedRegion(int id)
Delete 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 SetExtractionModeToClosestPointRegion()
Control the extraction of connected surfaces.
int IsScalarConnected(vtkIdType cellId)
int GetNumberOfExtractedRegions()
Obtain the number of connected regions.
void DeleteSeed(int id)
Delete a seed id (point or cell id).
vtkIdList * NeighborCellPointIds
vtkIdList * SpecifiedRegionIds
vtkIdList * VisitedPointIds
void AddSpecifiedRegion(int id)
Add a region id to extract.
int OutputPointsPrecision
void SetExtractionModeToPointSeededRegions()
Control the extraction of connected surfaces.
void SetExtractionModeToSpecifiedRegions()
Control the extraction of connected surfaces.
void SetExtractionModeToCellSeededRegions()
Control the extraction of connected surfaces.
void AddSeed(int id)
Add a seed id (point or cell id).
vtkIdType NumCellsInRegion
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
#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