51#ifndef vtkConnectedPointsFilter_h
52#define vtkConnectedPointsFilter_h
54#include "vtkFiltersPointsModule.h"
58#define VTK_EXTRACT_POINT_SEEDED_REGIONS 1
59#define VTK_EXTRACT_SPECIFIED_REGIONS 3
60#define VTK_EXTRACT_LARGEST_REGION 4
61#define VTK_EXTRACT_ALL_REGIONS 5
62#define VTK_EXTRACT_CLOSEST_POINT_REGION 6
88 vtkGetMacro(Radius,
double);
97 vtkGetMacro(ExtractionMode,
int);
112 const char* GetExtractionModeAsString();
120 vtkSetVector3Macro(ClosestPoint,
double);
121 vtkGetVectorMacro(ClosestPoint,
double, 3);
161 vtkSetMacro(AlignedNormals,
int);
162 vtkGetMacro(AlignedNormals,
int);
163 vtkBooleanMacro(AlignedNormals,
int);
172 vtkSetClampMacro(NormalAngle,
double, 0.0001, 90.0);
173 vtkGetMacro(NormalAngle,
double);
182 vtkSetMacro(ScalarConnectivity,
int);
183 vtkGetMacro(ScalarConnectivity,
int);
184 vtkBooleanMacro(ScalarConnectivity,
int);
191 vtkSetVector2Macro(ScalarRange,
double);
192 vtkGetVector2Macro(ScalarRange,
double);
232 double ClosestPoint[3];
241 double ScalarRange[2];
272 return "ExtractPointSeededRegions";
276 return "ExtractSpecifiedRegions";
280 return "ExtractAllRegions";
284 return "ExtractClosestPointRegion";
288 return "ExtractLargestRegion";
abstract class to quickly locate points in 3-space
extract / segment points based on geometric connectivity
void SetExtractionModeToClosestPointRegion()
Control the extraction of connected regions.
void TraverseAndMark(vtkPoints *inPts, vtkDataArray *inScalars, float *normals, vtkIdType *labels)
vtkAbstractPointLocator * Locator
void SetExtractionModeToPointSeededRegions()
Control the extraction of connected regions.
void SetLocator(vtkAbstractPointLocator *locator)
Specify a point locator.
static vtkConnectedPointsFilter * New()
Construct with default extraction mode to extract the largest region.
void InitializeSpecifiedRegionList()
Initialize list of region ids to extract.
void DeleteSeed(vtkIdType id)
Delete a point seed id.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void DeleteSpecifiedRegion(vtkIdType id)
Delete a region id to extract.
int GetNumberOfExtractedRegions()
Obtain the number of connected regions.
void SetExtractionModeToSpecifiedRegions()
Control the extraction of connected regions.
~vtkConnectedPointsFilter() override
vtkIdList * SpecifiedRegionIds
void AddSpecifiedRegion(vtkIdType id)
Add a non-negative region id to extract.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetExtractionModeToAllRegions()
Control the extraction of connected regions.
vtkConnectedPointsFilter()
void AddSeed(vtkIdType id)
Add a non-negative point seed id.
void SetExtractionModeToLargestRegion()
Control the extraction of connected regions.
const char * GetExtractionModeAsString()
Return the method of extraction as a string.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void InitializeSeedList()
Initialize list of point ids ids used to seed regions.
abstract superclass for arrays of numeric data
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
represent and manipulate 3D points
Superclass for algorithms that produce only polydata as output.
#define VTK_EXTRACT_CLOSEST_POINT_REGION
#define VTK_EXTRACT_POINT_SEEDED_REGIONS
#define VTK_EXTRACT_ALL_REGIONS
#define VTK_EXTRACT_SPECIFIED_REGIONS
#define VTK_EXTRACT_LARGEST_REGION