 |
VTK
9.1.0
|
Go to the documentation of this file.
82 #ifndef vtkPolyDataEdgeConnectivityFilter_h
83 #define vtkPolyDataEdgeConnectivityFilter_h
85 #include "vtkFiltersCoreModule.h"
89 #define VTK_EXTRACT_POINT_SEEDED_REGIONS 1
90 #define VTK_EXTRACT_CELL_SEEDED_REGIONS 2
91 #define VTK_EXTRACT_SPECIFIED_REGIONS 3
92 #define VTK_EXTRACT_LARGEST_REGION 4
93 #define VTK_EXTRACT_ALL_REGIONS 5
94 #define VTK_EXTRACT_CLOSEST_POINT_REGION 6
95 #define VTK_EXTRACT_LARGE_REGIONS 7
121 vtkGetMacro(ExtractionMode,
int);
141 const char* GetExtractionModeAsString();
177 vtkSetVector2Macro(BarrierEdgeLength,
double);
178 vtkGetVector2Macro(BarrierEdgeLength,
double);
196 vtkSetVector2Macro(ScalarRange,
double);
197 vtkGetVector2Macro(ScalarRange,
double);
248 vtkSetVector3Macro(ClosestPoint,
double);
249 vtkGetVectorMacro(ClosestPoint,
double, 3);
255 RegionGrowingOff = 0,
271 vtkSetClampMacro(RegionGrowing,
int, RegionGrowingOff, SmallRegions);
272 vtkGetMacro(RegionGrowing,
int);
291 vtkSetClampMacro(LargeRegionThreshold,
double, 0.0, 1.0);
292 vtkGetMacro(LargeRegionThreshold,
double);
334 vtkSetMacro(OutputPointsPrecision,
int);
335 vtkGetMacro(OutputPointsPrecision,
int);
354 double BarrierEdgeLength[2];
356 double ScalarRange[2];
360 double ClosestPoint[3];
417 return "ExtractPointSeededRegions";
421 return "ExtractCellSeededRegions";
425 return "ExtractSpecifiedRegions";
429 return "ExtractAllRegions";
433 return "ExtractClosestPointRegion";
437 return "ExtractLargeRegions";
441 return "ExtractLargestRegion";
std::vector< vtkIdType > Wave2
static vtkPolyDataEdgeConnectivityFilter * New()
Standard methods to instantiate, get type information, and print the object.
void SetExtractionModeToLargeRegions()
Control the extraction of connected surfaces.
#define VTK_EXTRACT_CELL_SEEDED_REGIONS
void SetRegionGrowingToSmallRegions()
Specify a strategy for region growing.
vtkSmartPointer< vtkDataArray > InScalars
std::vector< vtkIdType > PointMap
vtkSmartPointer< vtkEdgeTable > Barriers
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
#define VTK_EXTRACT_CLOSEST_POINT_REGION
void GrowLargeRegionsOn()
Specify a strategy for region growing.
void SetExtractionModeToSpecifiedRegions()
Control the extraction of connected surfaces.
int GetNumberOfExtractedRegions()
Obtain the number of connected regions found.
bool IsBarrierEdge(vtkIdType p0, vtkIdType p1)
int IsScalarConnected(vtkIdType cellId, vtkIdType neiId)
#define VTK_EXTRACT_LARGEST_REGION
vtkIdType NumCellsInRegion
abstract superclass for arrays of numeric data
vtkIdType FindNumberOfExtractedRegions()
double LargeRegionThreshold
segment polygonal mesh based on shared edge connectivity
std::vector< double > RegionAreas
void SetSourceData(vtkPolyData *)
Specify the source vtkPolyData object used to specify barrier edges (this is an optional connection....
keep track of edges (edge is pair of integer id's)
const char * GetExtractionModeAsString()
Return the method of extraction as a string.
void InitializeSeedList()
Initialize list of point ids/cell ids used to seed regions.
vtkTypeBool CellRegionAreas
vtkIdType NumberOfRegions
std::vector< vtkIdType > RegionIds
void SetRegionGrowingToLargeRegions()
Specify a strategy for region growing.
void GrowLargeRegionsOff()
Specify a strategy for region growing.
void SetExtractionModeToAllRegions()
Control the extraction of connected surfaces.
dynamic, self-adjusting array of char
vtkSmartPointer< vtkIdList > PointIds
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods to instantiate, get type information, and print the object.
vtkSmartPointer< vtkIdTypeArray > RegionSizes
void DeleteSpecifiedRegion(int id)
Delete a region id to extract.
double GetTotalArea()
Obtain the total area of all regions combined.
vtkPolyDataEdgeConnectivityFilter()
double ComputeRegionAreas()
~vtkPolyDataEdgeConnectivityFilter() override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
a simple class to control print indentation
#define VTK_EXTRACT_ALL_REGIONS
void SetExtractionModeToClosestPointRegion()
Control the extraction of connected surfaces.
void GetConnectedNeighbors(vtkIdType cellId, vtkIdType npts, const vtkIdType *pts, vtkIdList *neis)
list of point or cell ids
vtkTypeBool ScalarConnectivity
void SetRegionGrowingOff()
Specify a strategy for region growing.
void AddSpecifiedRegion(int id)
Add a region id to extract.
vtkPolyData * GetSource()
Specify the source vtkPolyData object used to specify barrier edges (this is an optional connection....
void DeleteSeed(int id)
Delete a seed id (point or cell id).
#define VTK_EXTRACT_LARGE_REGIONS
void GrowSmallRegionsOff()
Specify a strategy for region growing.
vtkSmartPointer< vtkIdList > CellEdgeNeighbors
void SetExtractionModeToPointSeededRegions()
Control the extraction of connected surfaces.
void AddSeed(int id)
Add a seed id (point or cell id).
dynamic, self-adjusting array of vtkIdType
#define VTK_EXTRACT_SPECIFIED_REGIONS
std::vector< vtkIdType > Seeds
vtkSmartPointer< vtkIdList > CellNeighbors
void InitializeSpecifiedRegionList()
Initialize list of region ids to extract.
Proxy object to connect input/output ports.
void SetExtractionModeToLargestRegion()
Control the extraction of connected surfaces.
std::vector< vtkIdType > Wave
#define VTK_EXTRACT_POINT_SEEDED_REGIONS
concrete dataset represents vertices, lines, polygons, and triangle strips
void ExchangeRegions(vtkIdType currentRegionId, vtkIdType neiId, vtkIdType neiRegId)
int GetNumberOfSpecifiedRegions()
Get number of specified regions.
void SetExtractionModeToCellSeededRegions()
Control the extraction of connected surfaces.
void SetSourceConnection(vtkAlgorithmOutput *algOutput)
Specify the source vtkPolyData object used to specify barrier edges (this is an optional connection....
int AssimilateCell(vtkIdType cellId, vtkIdType npts, const vtkIdType *pts)
int OutputPointsPrecision
std::vector< vtkIdType > SpecifiedRegionIds
void GrowSmallRegionsOn()
Specify a strategy for region growing.
std::vector< double > CellAreas
std::vector< char > RegionClassification
vtkSmartPointer< vtkPolyData > Mesh
vtkIdType NumberOfExtractedRegions
vtkSmartPointer< vtkIdList > CellIds
Superclass for algorithms that produce only polydata as output.