Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

vtkPolyDataConnectivityFilter Class Reference

extract polygonal data based on geometric connectivity. More...

#include <vtkPolyDataConnectivityFilter.h>

Inheritance diagram for vtkPolyDataConnectivityFilter:

Inheritance graph
Collaboration diagram for vtkPolyDataConnectivityFilter:

Collaboration graph
List of all members.

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 data[])
virtual float * GetScalarRange ()
virtual void GetScalarRange (float data[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)
vtkPolyDataConnectivityFilter * SafeDownCast (vtkObject *o)
vtkPolyDataConnectivityFilter * New ()

Protected Methods

 vtkPolyDataConnectivityFilter ()
 ~vtkPolyDataConnectivityFilter ()
 vtkPolyDataConnectivityFilter (const vtkPolyDataConnectivityFilter &)
void operator= (const vtkPolyDataConnectivityFilter &)
void Execute ()
void TraverseAndMark ()

Protected Attributes

int ColorRegions
int ExtractionMode
float ClosestPoint [3]
int ScalarConnectivity
float ScalarRange [2]

Detailed Description

extract polygonal data based on geometric connectivity.

2000/12/10 20:08:47

vtkPolyDataConnectivityFilter is a filter that extracts cells that share common points and/or satisfy a scalar threshold criterion. (Such a group of cells is called 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 regions).

This filter is specialized for polygonal data. This means it runs a bit faster and is easier to construct visualization networks that process polygonal data.

The behavior of vtkPolyDataConnectivityFilter 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 selecting cells for later processing.

See also:
vtkPolyDataConnectivityFilter (examples)

Definition at line 85 of file vtkPolyDataConnectivityFilter.h.

Constructor & Destructor Documentation

vtkPolyDataConnectivityFilter::vtkPolyDataConnectivityFilter   [protected]

vtkPolyDataConnectivityFilter::~vtkPolyDataConnectivityFilter   [protected]

vtkPolyDataConnectivityFilter::vtkPolyDataConnectivityFilter const vtkPolyDataConnectivityFilter &    [inline, protected]

Definition at line 169 of file vtkPolyDataConnectivityFilter.h.

Member Function Documentation

virtual const char* vtkPolyDataConnectivityFilter::GetClassName   [virtual]

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataToPolyDataFilter.

int vtkPolyDataConnectivityFilter::IsTypeOf const char *    type [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataToPolyDataFilter.

virtual int vtkPolyDataConnectivityFilter::IsA const char *    type [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataToPolyDataFilter.

vtkPolyDataConnectivityFilter* vtkPolyDataConnectivityFilter::SafeDownCast vtkObject   o [static]

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataToPolyDataFilter.

void vtkPolyDataConnectivityFilter::PrintSelf ostream &    os,
vtkIndent    indent

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkSource.

vtkPolyDataConnectivityFilter* vtkPolyDataConnectivityFilter::New   [static]

Construct with default extraction mode to extract largest regions.

Reimplemented from vtkPolyDataSource.

virtual void vtkPolyDataConnectivityFilter::SetScalarConnectivity int    [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 int vtkPolyDataConnectivityFilter::GetScalarConnectivity   [virtual]

virtual void vtkPolyDataConnectivityFilter::ScalarConnectivityOn   [virtual]

virtual void vtkPolyDataConnectivityFilter::ScalarConnectivityOff   [virtual]

virtual void vtkPolyDataConnectivityFilter::SetScalarRange float    data[] [virtual]

Set the scalar range to use to extract cells based on scalar connectivity.

virtual float* vtkPolyDataConnectivityFilter::GetScalarRange   [virtual]

virtual void vtkPolyDataConnectivityFilter::GetScalarRange float    data[2] [virtual]

virtual void vtkPolyDataConnectivityFilter::SetExtractionMode int    [virtual]

Control the extraction of connected surfaces.

virtual int vtkPolyDataConnectivityFilter::GetExtractionMode   [virtual]

void vtkPolyDataConnectivityFilter::SetExtractionModeToPointSeededRegions   [inline]

Definition at line 111 of file vtkPolyDataConnectivityFilter.h.

void vtkPolyDataConnectivityFilter::SetExtractionModeToCellSeededRegions   [inline]

Definition at line 113 of file vtkPolyDataConnectivityFilter.h.

void vtkPolyDataConnectivityFilter::SetExtractionModeToLargestRegion   [inline]

Definition at line 115 of file vtkPolyDataConnectivityFilter.h.

void vtkPolyDataConnectivityFilter::SetExtractionModeToSpecifiedRegions   [inline]

Definition at line 117 of file vtkPolyDataConnectivityFilter.h.

void vtkPolyDataConnectivityFilter::SetExtractionModeToClosestPointRegion   [inline]

Definition at line 119 of file vtkPolyDataConnectivityFilter.h.

void vtkPolyDataConnectivityFilter::SetExtractionModeToAllRegions   [inline]

Definition at line 121 of file vtkPolyDataConnectivityFilter.h.

const char * vtkPolyDataConnectivityFilter::GetExtractionModeAsString void    [inline]

Return the method of extraction as a string.

Definition at line 207 of file vtkPolyDataConnectivityFilter.h.

void vtkPolyDataConnectivityFilter::InitializeSeedList  

Initialize list of point ids/cell ids used to seed regions.

void vtkPolyDataConnectivityFilter::AddSeed int    id

Add a seed id (point or cell id). Note: ids are 0-offset.

void vtkPolyDataConnectivityFilter::DeleteSeed int    id

Delete a seed id (point or cell id). Note: ids are 0-offset.

void vtkPolyDataConnectivityFilter::InitializeSpecifiedRegionList  

Initialize list of region ids to extract.

void vtkPolyDataConnectivityFilter::AddSpecifiedRegion int    id

Add a region id to extract. Note: ids are 0-offset.

void vtkPolyDataConnectivityFilter::DeleteSpecifiedRegion int    id

Delete a region id to extract. Note: ids are 0-offset.

virtual void vtkPolyDataConnectivityFilter::SetClosestPoint float   ,
float   ,

Use to specify x-y-z point coordinates when extracting the region closest to a specified point.

virtual void vtkPolyDataConnectivityFilter::SetClosestPoint float   [3] [virtual]

virtual float* vtkPolyDataConnectivityFilter::GetClosestPoint   [virtual]

virtual void vtkPolyDataConnectivityFilter::GetClosestPoint float    data[3] [virtual]

int vtkPolyDataConnectivityFilter::GetNumberOfExtractedRegions  

Obtain the number of connected regions.

virtual void vtkPolyDataConnectivityFilter::SetColorRegions int    [virtual]

Turn on/off the coloring of connected regions.

virtual int vtkPolyDataConnectivityFilter::GetColorRegions   [virtual]

virtual void vtkPolyDataConnectivityFilter::ColorRegionsOn   [virtual]

virtual void vtkPolyDataConnectivityFilter::ColorRegionsOff   [virtual]

void vtkPolyDataConnectivityFilter::SetMaxRecursionDepth int    [inline]

FOR LEGACY COMPATIBILITY ONLY, DO NOT USE. The connectivity extraction algorithm works recursively. In some systems the stack depth is limited. This methods specifies the maximum recursion depth.

Definition at line 160 of file vtkPolyDataConnectivityFilter.h.

int vtkPolyDataConnectivityFilter::GetMaxRecursionDepth   [inline]

Definition at line 162 of file vtkPolyDataConnectivityFilter.h.

void vtkPolyDataConnectivityFilter::operator= const vtkPolyDataConnectivityFilter &    [inline, protected]

Definition at line 170 of file vtkPolyDataConnectivityFilter.h.

void vtkPolyDataConnectivityFilter::Execute   [protected, virtual]

Reimplemented from vtkSource.

void vtkPolyDataConnectivityFilter::TraverseAndMark   [protected]

Member Data Documentation

int vtkPolyDataConnectivityFilter::ColorRegions [protected]

Definition at line 175 of file vtkPolyDataConnectivityFilter.h.

int vtkPolyDataConnectivityFilter::ExtractionMode [protected]

Definition at line 176 of file vtkPolyDataConnectivityFilter.h.

vtkIdList* vtkPolyDataConnectivityFilter::Seeds [protected]

Definition at line 177 of file vtkPolyDataConnectivityFilter.h.

vtkIdList* vtkPolyDataConnectivityFilter::SpecifiedRegionIds [protected]

Definition at line 178 of file vtkPolyDataConnectivityFilter.h.

vtkIntArray* vtkPolyDataConnectivityFilter::RegionSizes [protected]

Definition at line 179 of file vtkPolyDataConnectivityFilter.h.

float vtkPolyDataConnectivityFilter::ClosestPoint[3] [protected]

Definition at line 181 of file vtkPolyDataConnectivityFilter.h.

int vtkPolyDataConnectivityFilter::ScalarConnectivity [protected]

Definition at line 183 of file vtkPolyDataConnectivityFilter.h.

float vtkPolyDataConnectivityFilter::ScalarRange[2] [protected]

Definition at line 184 of file vtkPolyDataConnectivityFilter.h.

The documentation for this class was generated from the following file:
Generated on Wed Nov 21 12:57:39 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001