Go to the documentation of this file.
52 #ifndef vtkConnectivityFilter_h
53 #define vtkConnectivityFilter_h
55 #include "vtkFiltersCoreModule.h"
58 #define VTK_EXTRACT_POINT_SEEDED_REGIONS 1
59 #define VTK_EXTRACT_CELL_SEEDED_REGIONS 2
60 #define VTK_EXTRACT_SPECIFIED_REGIONS 3
61 #define VTK_EXTRACT_LARGEST_REGION 4
62 #define VTK_EXTRACT_ALL_REGIONS 5
63 #define VTK_EXTRACT_CLOSEST_POINT_REGION 6
99 vtkSetVector2Macro(ScalarRange,
double);
100 vtkGetVector2Macro(ScalarRange,
double);
107 vtkSetClampMacro(ExtractionMode,
int,
109 vtkGetMacro(ExtractionMode,
int);
122 const char *GetExtractionModeAsString();
128 void InitializeSeedList();
143 void InitializeSpecifiedRegionList();
148 void AddSpecifiedRegion(
int id);
153 void DeleteSpecifiedRegion(
int id);
160 vtkSetVector3Macro(ClosestPoint,
double);
161 vtkGetVectorMacro(ClosestPoint,
double,3);
167 int GetNumberOfExtractedRegions();
184 vtkSetMacro(OutputPointsPrecision,
int);
185 vtkGetMacro(OutputPointsPrecision,
int);
208 double ClosestPoint[3];
211 double ScalarRange[2];
244 return "ExtractPointSeededRegions";
248 return "ExtractCellSeededRegions";
252 return "ExtractSpecifiedRegions";
256 return "ExtractAllRegions";
260 return "ExtractClosestPointRegion";
264 return "ExtractLargestRegion";
const char * GetExtractionModeAsString()
Return the method of extraction as a string.
vtkIdTypeArray * RegionSizes
vtkIdList * SpecifiedRegionIds
Superclass for algorithms that produce output of the same type as input.
dynamic, self-adjusting array of float
extract data based on geometric connectivity
#define VTK_EXTRACT_LARGEST_REGION
void SetExtractionModeToCellSeededRegions()
abstract superclass for arrays of numeric data
#define VTK_EXTRACT_SPECIFIED_REGIONS
vtkTypeBool ScalarConnectivity
int OutputPointsPrecision
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
#define VTK_EXTRACT_CLOSEST_POINT_REGION
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
#define VTK_EXTRACT_CELL_SEEDED_REGIONS
a simple class to control print indentation
dynamic, self-adjusting array of int
list of point or cell ids
void SetExtractionModeToSpecifiedRegions()
#define VTK_EXTRACT_POINT_SEEDED_REGIONS
abstract class to specify dataset behavior
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
dynamic, self-adjusting array of vtkIdType
void SetExtractionModeToAllRegions()
void SetExtractionModeToClosestPointRegion()
concrete dataset represents vertices, lines, polygons, and triangle strips
#define VTK_EXTRACT_ALL_REGIONS
void SetExtractionModeToLargestRegion()
static vtkPointSetAlgorithm * New()
void SetExtractionModeToPointSeededRegions()
int ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
see vtkAlgorithm for details
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.