 |
VTK
9.1.0
|
Go to the documentation of this file.
149 #ifndef vtkPolyDataConnectivityFilter_h
150 #define vtkPolyDataConnectivityFilter_h
152 #include "vtkFiltersCoreModule.h"
155 #define VTK_EXTRACT_POINT_SEEDED_REGIONS 1
156 #define VTK_EXTRACT_CELL_SEEDED_REGIONS 2
157 #define VTK_EXTRACT_SPECIFIED_REGIONS 3
158 #define VTK_EXTRACT_LARGEST_REGION 4
159 #define VTK_EXTRACT_ALL_REGIONS 5
160 #define VTK_EXTRACT_CLOSEST_POINT_REGION 6
215 vtkSetVector2Macro(ScalarRange,
double);
216 vtkGetVector2Macro(ScalarRange,
double);
225 vtkGetMacro(ExtractionMode,
int);
244 const char* GetExtractionModeAsString();
282 vtkSetVector3Macro(ClosestPoint,
double);
283 vtkGetVectorMacro(ClosestPoint,
double, 3);
325 vtkSetMacro(OutputPointsPrecision,
int);
326 vtkGetMacro(OutputPointsPrecision,
int);
342 double ClosestPoint[3];
350 double ScalarRange[2];
386 return "ExtractPointSeededRegions";
390 return "ExtractCellSeededRegions";
394 return "ExtractSpecifiedRegions";
398 return "ExtractAllRegions";
402 return "ExtractClosestPointRegion";
406 return "ExtractLargestRegion";
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int GetNumberOfExtractedRegions()
Obtain the number of connected regions.
void SetExtractionModeToSpecifiedRegions()
Control the extraction of connected surfaces.
vtkTypeBool FullScalarConnectivity
int OutputPointsPrecision
void DeleteSeed(int id)
Delete a seed id (point or cell id).
std::vector< vtkIdType > Wave
~vtkPolyDataConnectivityFilter() override
extract polygonal data based on geometric connectivity
vtkIdList * NeighborCellPointIds
void InitializeSpecifiedRegionList()
Initialize list of region ids to extract.
int IsScalarConnected(vtkIdType cellId)
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
std::vector< vtkIdType > Wave2
void InitializeSeedList()
Initialize list of point ids/cell ids used to seed regions.
const char * GetExtractionModeAsString()
Return the method of extraction as a string.
#define VTK_EXTRACT_CLOSEST_POINT_REGION
void DeleteSpecifiedRegion(int id)
Delete a region id to extract.
vtkIdTypeArray * RegionSizes
#define VTK_EXTRACT_LARGEST_REGION
void SetExtractionModeToClosestPointRegion()
Control the extraction of connected surfaces.
void SetExtractionModeToPointSeededRegions()
Control the extraction of connected surfaces.
vtkIdList * VisitedPointIds
vtkDataArray * NewScalars
a simple class to control print indentation
vtkPolyDataConnectivityFilter()
list of point or cell ids
vtkTypeBool MarkVisitedPointIds
vtkDataArray * CellScalars
void SetExtractionModeToLargestRegion()
Control the extraction of connected surfaces.
#define VTK_EXTRACT_ALL_REGIONS
dynamic, self-adjusting array of vtkIdType
#define VTK_EXTRACT_POINT_SEEDED_REGIONS
vtkTypeBool ScalarConnectivity
void AddSpecifiedRegion(int id)
Add a region id to extract.
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkIdType NumCellsInRegion
void AddSeed(int id)
Add a seed id (point or cell id).
void SetExtractionModeToAllRegions()
Control the extraction of connected surfaces.
#define VTK_EXTRACT_SPECIFIED_REGIONS
vtkIdList * SpecifiedRegionIds
#define VTK_EXTRACT_CELL_SEEDED_REGIONS
void SetExtractionModeToCellSeededRegions()
Control the extraction of connected surfaces.
static vtkPolyDataConnectivityFilter * New()
Construct with default extraction mode to extract largest regions.
Superclass for algorithms that produce only polydata as output.