Public Methods |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetScalarConnectivity (int) |
virtual int | GetScalarConnectivity () |
virtual void | ScalarConnectivityOn () |
virtual void | ScalarConnectivityOff () |
virtual void | SetScalarRange (float, float) |
void | SetScalarRange (float[2]) |
virtual float * | GetScalarRange () |
virtual void | GetScalarRange (float &, float &) |
virtual void | GetScalarRange (float[2]) |
virtual void | SetExtractionMode (int) |
virtual int | GetExtractionMode () |
void | SetExtractionModeToPointSeededRegions () |
void | SetExtractionModeToCellSeededRegions () |
void | SetExtractionModeToLargestRegion () |
void | SetExtractionModeToSpecifiedRegions () |
void | SetExtractionModeToClosestPointRegion () |
void | SetExtractionModeToAllRegions () |
const char * | GetExtractionModeAsString () |
void | InitializeSeedList () |
void | AddSeed (int id) |
void | DeleteSeed (int id) |
void | InitializeSpecifiedRegionList () |
void | AddSpecifiedRegion (int id) |
void | DeleteSpecifiedRegion (int id) |
virtual void | SetClosestPoint (float, float, float) |
virtual void | SetClosestPoint (float[3]) |
virtual float * | GetClosestPoint () |
virtual void | GetClosestPoint (float data[3]) |
int | GetNumberOfExtractedRegions () |
virtual void | SetColorRegions (int) |
virtual int | GetColorRegions () |
virtual void | ColorRegionsOn () |
virtual void | ColorRegionsOff () |
void | SetMaxRecursionDepth (int) |
int | GetMaxRecursionDepth () |
Static Public Methods |
int | IsTypeOf (const char *type) |
vtkConnectivityFilter * | SafeDownCast (vtkObject *o) |
vtkConnectivityFilter * | New () |
Protected Methods |
| vtkConnectivityFilter () |
| ~vtkConnectivityFilter () |
| vtkConnectivityFilter (const vtkConnectivityFilter &) |
void | operator= (const vtkConnectivityFilter &) |
void | Execute () |
void | TraverseAndMark () |
Protected Attributes |
int | ColorRegions |
int | ExtractionMode |
vtkIdList * | Seeds |
vtkIdList * | SpecifiedRegionIds |
vtkIntArray * | RegionSizes |
float | ClosestPoint [3] |
int | ScalarConnectivity |
float | ScalarRange [2] |
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).
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.