BFSConnectivityFilter
Introduction
vtkBFSConnectivityFilter - Use BFS to find connected regions and extract regions After searching for connected regions, set extractionMode(All, Largest, smallest) or (Custom) and extractionIndex to extract the required connected regions. The input output of the filter is polygonal data.
Methods
extend
Method used to decorate a given object (publicAPI+model) with vtkBFSConnectivityFilter characteristics.
| Argument | Type | Required | Description |
|---|---|---|---|
publicAPI | Yes | object on which methods will be bounds (public) | |
model | Yes | object on which data structure will be bounds (protected) | |
initialValues | IBFSConnectivityFilterInitialValues | No | (default: {}) |
getExtractionIndex
Get the extractionIndex.
getExtractionMode
Get the ExtractionMode.
getRegionsCount
Get the count of regions.
newInstance
Method used to create a new instance of vtkBFSConnectivityFilter
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | IBFSConnectivityFilterInitialValues | No | for pre-setting some of its content |
requestData
| Argument | Type | Required | Description |
|---|---|---|---|
inData | Yes | ||
outData | Yes |
setExtractionIndex
Set the index to extract regions. should be 0 ~ regionsCount-1.
| Argument | Type | Required | Description |
|---|---|---|---|
extractionIndex | Number | Yes |
setExtractionMode
Set the extractionMode to extract the required connected regions
| Argument | Type | Required | Description |
|---|---|---|---|
extractionMode | ExtractionMode | Yes |
setRegionsCount
| Argument | Type | Required | Description |
|---|---|---|---|
regionsCount | Number | Yes |