VTK
|
extract data based on geometric connectivity More...
#include <vtkConnectivityFilter.h>
Inherits vtkUnstructuredGridAlgorithm.
Public Types | |
typedef vtkUnstructuredGridAlgorithm | Superclass |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkConnectivityFilter * | SafeDownCast (vtkObjectBase *o) |
static vtkConnectivityFilter * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkConnectivityFilter () | |
~vtkConnectivityFilter () | |
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
void | TraverseAndMark (vtkDataSet *input) |
Protected Attributes | |
int | ColorRegions |
int | ExtractionMode |
vtkIdList * | Seeds |
vtkIdList * | SpecifiedRegionIds |
vtkIdTypeArray * | RegionSizes |
double | ClosestPoint [3] |
int | ScalarConnectivity |
double | ScalarRange [2] |
extract data based on geometric connectivity
vtkConnectivityFilter is a filter that extracts cells that share common points and/or meet other connectivity criterion. (Cells that share vertices and meet other connectivity criterion such as scalar range are known as a region.) The filter works in one of six ways: 1) extract the largest connected region in the dataset; 2) extract specified region numbers; 3) extract all regions sharing specified point ids; 4) extract all regions sharing specified cell ids; 5) extract the region closest to the specified point; or 6) extract all regions (used to color the data by region).
vtkConnectivityFilter is generalized to handle any type of input dataset. It generates output data of type vtkUnstructuredGrid. If you know that your input type is vtkPolyData, you may wish to use vtkPolyDataConnectivityFilter.
The behavior of vtkConnectivityFilter can be modified by turning on the boolean ivar ScalarConnectivity. If this flag is on, the connectivity algorithm is modified so that cells are considered connected only if 1) they are geometrically connected (share a point) and 2) the scalar values of one of the cell's points falls in the scalar range specified. This use of ScalarConnectivity is particularly useful for volume datasets: it can be used as a simple "connected segmentation" algorithm. For example, by using a seed voxel (i.e., cell) on a known anatomical structure, connectivity will pull out all voxels "containing" the anatomical structure. These voxels can then be contoured or processed by other visualization filters.
Definition at line 74 of file vtkConnectivityFilter.h.
typedef vtkUnstructuredGridAlgorithm vtkConnectivityFilter::Superclass |
Definition at line 77 of file vtkConnectivityFilter.h.
|
protected |
|
protected |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkConnectivityFilter* vtkConnectivityFilter::NewInstance | ( | ) | const |
void vtkConnectivityFilter::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
static |
Construct with default extraction mode to extract largest regions.
|
virtual |
Turn on/off connectivity based on scalar value. If on, cells are connected only if they share points AND one of the cells scalar values falls in the scalar range specified.
|
virtual |
Turn on/off connectivity based on scalar value. If on, cells are connected only if they share points AND one of the cells scalar values falls in the scalar range specified.
|
virtual |
Turn on/off connectivity based on scalar value. If on, cells are connected only if they share points AND one of the cells scalar values falls in the scalar range specified.
|
virtual |
Turn on/off connectivity based on scalar value. If on, cells are connected only if they share points AND one of the cells scalar values falls in the scalar range specified.
|
virtual |
Set the scalar range to use to extract cells based on scalar connectivity.
void vtkConnectivityFilter::SetScalarRange | ( | double | [2] | ) |
Set the scalar range to use to extract cells based on scalar connectivity.
|
virtual |
Set the scalar range to use to extract cells based on scalar connectivity.
|
virtual |
Set the scalar range to use to extract cells based on scalar connectivity.
|
virtual |
Set the scalar range to use to extract cells based on scalar connectivity.
|
virtual |
Control the extraction of connected surfaces.
|
virtual |
Control the extraction of connected surfaces.
|
inline |
Control the extraction of connected surfaces.
Definition at line 104 of file vtkConnectivityFilter.h.
|
inline |
Control the extraction of connected surfaces.
Definition at line 106 of file vtkConnectivityFilter.h.
|
inline |
Control the extraction of connected surfaces.
Definition at line 108 of file vtkConnectivityFilter.h.
|
inline |
Control the extraction of connected surfaces.
Definition at line 110 of file vtkConnectivityFilter.h.
|
inline |
Control the extraction of connected surfaces.
Definition at line 112 of file vtkConnectivityFilter.h.
|
inline |
Control the extraction of connected surfaces.
Definition at line 114 of file vtkConnectivityFilter.h.
|
inline |
Return the method of extraction as a string.
Definition at line 198 of file vtkConnectivityFilter.h.
void vtkConnectivityFilter::InitializeSeedList | ( | ) |
Initialize list of point ids/cell ids used to seed regions.
void vtkConnectivityFilter::AddSeed | ( | vtkIdType | id | ) |
Add a seed id (point or cell id). Note: ids are 0-offset.
void vtkConnectivityFilter::DeleteSeed | ( | vtkIdType | id | ) |
Delete a seed id (point or cell id). Note: ids are 0-offset.
void vtkConnectivityFilter::InitializeSpecifiedRegionList | ( | ) |
Initialize list of region ids to extract.
void vtkConnectivityFilter::AddSpecifiedRegion | ( | int | id | ) |
Add a region id to extract. Note: ids are 0-offset.
void vtkConnectivityFilter::DeleteSpecifiedRegion | ( | int | id | ) |
Delete a region id to extract. Note: ids are 0-offset.
|
virtual |
Use to specify x-y-z point coordinates when extracting the region closest to a specified point.
|
virtual |
Use to specify x-y-z point coordinates when extracting the region closest to a specified point.
|
virtual |
Use to specify x-y-z point coordinates when extracting the region closest to a specified point.
|
virtual |
Use to specify x-y-z point coordinates when extracting the region closest to a specified point.
int vtkConnectivityFilter::GetNumberOfExtractedRegions | ( | ) |
Obtain the number of connected regions.
|
virtual |
Turn on/off the coloring of connected regions.
|
virtual |
Turn on/off the coloring of connected regions.
|
virtual |
Turn on/off the coloring of connected regions.
|
virtual |
Turn on/off the coloring of connected regions.
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
Definition at line 162 of file vtkConnectivityFilter.h.
|
protected |
Definition at line 163 of file vtkConnectivityFilter.h.
|
protected |
Definition at line 164 of file vtkConnectivityFilter.h.
|
protected |
Definition at line 165 of file vtkConnectivityFilter.h.
|
protected |
Definition at line 166 of file vtkConnectivityFilter.h.
|
protected |
Definition at line 168 of file vtkConnectivityFilter.h.
|
protected |
Definition at line 170 of file vtkConnectivityFilter.h.
|
protected |
Definition at line 171 of file vtkConnectivityFilter.h.