56#ifndef vtkConnectivityFilter_h
57#define vtkConnectivityFilter_h
59#include "vtkFiltersCoreModule.h"
62#define VTK_EXTRACT_POINT_SEEDED_REGIONS 1
63#define VTK_EXTRACT_CELL_SEEDED_REGIONS 2
64#define VTK_EXTRACT_SPECIFIED_REGIONS 3
65#define VTK_EXTRACT_LARGEST_REGION 4
66#define VTK_EXTRACT_ALL_REGIONS 5
67#define VTK_EXTRACT_CLOSEST_POINT_REGION 6
93 vtkGetMacro(ScalarConnectivity,
int);
101 vtkSetVector2Macro(ScalarRange,
double);
102 vtkGetVector2Macro(ScalarRange,
double);
109 vtkSetClampMacro(ExtractionMode,
int,
111 vtkGetMacro(ExtractionMode,
int);
124 const char *GetExtractionModeAsString();
162 vtkSetVector3Macro(ClosestPoint,
double);
163 vtkGetVectorMacro(ClosestPoint,
double,3);
176 vtkGetMacro(ColorRegions,
int);
187 vtkGetMacro(OutputPointsPrecision,
int);
200 int OutputPointsPrecision;
205 double ClosestPoint[3];
207 int ScalarConnectivity;
208 double ScalarRange[2];
241 return "ExtractPointSeededRegions";
245 return "ExtractCellSeededRegions";
249 return "ExtractSpecifiedRegions";
253 return "ExtractAllRegions";
257 return "ExtractClosestPointRegion";
261 return "ExtractLargestRegion";
extract data based on geometric connectivity
~vtkConnectivityFilter() override
void SetExtractionModeToClosestPointRegion()
void SetExtractionModeToLargestRegion()
void AddSpecifiedRegion(int id)
Add a region id to extract.
static vtkConnectivityFilter * New()
Construct with default extraction mode to extract largest regions.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void DeleteSeed(vtkIdType id)
Delete a seed id (point or cell id).
void SetExtractionModeToCellSeededRegions()
void AddSeed(vtkIdType id)
Add a seed id (point or cell id).
void InitializeSeedList()
Initialize list of point ids/cell ids used to seed regions.
void DeleteSpecifiedRegion(int id)
Delete a region id to extract.
void SetExtractionModeToPointSeededRegions()
void SetExtractionModeToAllRegions()
void InitializeSpecifiedRegionList()
Initialize list of region ids to extract.
void SetExtractionModeToSpecifiedRegions()
int GetNumberOfExtractedRegions()
Obtain the number of connected regions.
abstract superclass for arrays of numeric data
abstract class to specify dataset behavior
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
Superclass for algorithms that produce only unstructured grid as output.
#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
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.