VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkPolyDataConnectivityFilter Class Reference

extract polygonal data based on geometric connectivity More...

#include <vtkPolyDataConnectivityFilter.h>

Inheritance diagram for vtkPolyDataConnectivityFilter:
Inheritance graph
[legend]
Collaboration diagram for vtkPolyDataConnectivityFilter:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkPolyDataAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkPolyDataConnectivityFilterNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
void InitializeSeedList ()
void AddSeed (int id)
void DeleteSeed (int id)
void InitializeSpecifiedRegionList ()
void AddSpecifiedRegion (int id)
void DeleteSpecifiedRegion (int id)
int GetNumberOfExtractedRegions ()
virtual vtkIdTypeArrayGetRegionSizes ()
virtual void SetScalarConnectivity (int)
virtual int GetScalarConnectivity ()
virtual void ScalarConnectivityOn ()
virtual void ScalarConnectivityOff ()
virtual void SetFullScalarConnectivity (int)
virtual int GetFullScalarConnectivity ()
virtual void FullScalarConnectivityOn ()
virtual void FullScalarConnectivityOff ()
virtual void SetScalarRange (double, double)
void SetScalarRange (double[2])
virtual doubleGetScalarRange ()
virtual void GetScalarRange (double &, double &)
virtual void GetScalarRange (double[2])
virtual void SetExtractionMode (int)
virtual int GetExtractionMode ()
void SetExtractionModeToPointSeededRegions ()
void SetExtractionModeToCellSeededRegions ()
void SetExtractionModeToLargestRegion ()
void SetExtractionModeToSpecifiedRegions ()
void SetExtractionModeToClosestPointRegion ()
void SetExtractionModeToAllRegions ()
const char * GetExtractionModeAsString ()
virtual void SetClosestPoint (double, double, double)
virtual void SetClosestPoint (double[3])
virtual doubleGetClosestPoint ()
virtual void GetClosestPoint (double data[3])
virtual void SetColorRegions (int)
virtual int GetColorRegions ()
virtual void ColorRegionsOn ()
virtual void ColorRegionsOff ()
virtual void SetMarkVisitedPointIds (int)
virtual int GetMarkVisitedPointIds ()
virtual void MarkVisitedPointIdsOn ()
virtual void MarkVisitedPointIdsOff ()
virtual vtkIdListGetVisitedPointIds ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static
vtkPolyDataConnectivityFilter
SafeDownCast (vtkObjectBase *o)
static
vtkPolyDataConnectivityFilter
New ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkPolyDataConnectivityFilter ()
 ~vtkPolyDataConnectivityFilter ()
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int IsScalarConnected (vtkIdType cellId)
void TraverseAndMark ()

Protected Attributes

int ColorRegions
int ExtractionMode
vtkIdListSeeds
vtkIdListSpecifiedRegionIds
vtkIdTypeArrayRegionSizes
double ClosestPoint [3]
int ScalarConnectivity
int FullScalarConnectivity
double ScalarRange [2]
vtkDataArrayCellScalars
vtkIdListNeighborCellPointIds
vtkIdTypeVisited
vtkIdTypePointMap
vtkDataArrayNewScalars
vtkIdType RegionNumber
vtkIdType PointNumber
vtkIdType NumCellsInRegion
vtkDataArrayInScalars
vtkPolyDataMesh
vtkIdListWave
vtkIdListWave2
vtkIdListPointIds
vtkIdListCellIds
vtkIdListVisitedPointIds
int MarkVisitedPointIds

Detailed Description

extract polygonal data based on geometric connectivity

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 (most points) 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 the cell's points falls in the scalar range specified. If ScalarConnectivity and FullScalarConnectivity is ON, all the cell's points must lie in the scalar range specified for the cell to qualify as being connected. If FullScalarConnectivity is OFF, any one of the cell's points may lie in the user specified scalar range for the cell to qualify as being connected.

This use of ScalarConnectivity is particularly useful for selecting cells for later processing.

See also:
vtkConnectivityFilter
Tests:
vtkPolyDataConnectivityFilter (Tests)

Definition at line 69 of file vtkPolyDataConnectivityFilter.h.


Member Typedef Documentation

Reimplemented from vtkPolyDataAlgorithm.

Definition at line 72 of file vtkPolyDataConnectivityFilter.h.


Constructor & Destructor Documentation


Member Function Documentation

static int vtkPolyDataConnectivityFilter::IsTypeOf ( const char *  name) [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 vtkPolyDataAlgorithm.

virtual int vtkPolyDataConnectivityFilter::IsA ( const char *  name) [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 vtkPolyDataAlgorithm.

Reimplemented from vtkPolyDataAlgorithm.

virtual vtkObjectBase* vtkPolyDataConnectivityFilter::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkPolyDataAlgorithm.

Reimplemented from vtkPolyDataAlgorithm.

void vtkPolyDataConnectivityFilter::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

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 vtkPolyDataAlgorithm.

Obtain the array containing the region sizes of the extracted regions

Construct with default extraction mode to extract largest regions.

Reimplemented from vtkPolyDataAlgorithm.

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.

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.

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.

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.

Turn on/off the use of Fully connected scalar connectivity. This is off by default. The flag is used only if ScalarConnectivity is on. If FullScalarConnectivity is ON, all the cell's points must lie in the scalar range specified for the cell to qualify as being connected. If FullScalarConnectivity is OFF, any one of the cell's points may lie in the user specified scalar range for the cell to qualify as being connected.

Turn on/off the use of Fully connected scalar connectivity. This is off by default. The flag is used only if ScalarConnectivity is on. If FullScalarConnectivity is ON, all the cell's points must lie in the scalar range specified for the cell to qualify as being connected. If FullScalarConnectivity is OFF, any one of the cell's points may lie in the user specified scalar range for the cell to qualify as being connected.

Turn on/off the use of Fully connected scalar connectivity. This is off by default. The flag is used only if ScalarConnectivity is on. If FullScalarConnectivity is ON, all the cell's points must lie in the scalar range specified for the cell to qualify as being connected. If FullScalarConnectivity is OFF, any one of the cell's points may lie in the user specified scalar range for the cell to qualify as being connected.

Turn on/off the use of Fully connected scalar connectivity. This is off by default. The flag is used only if ScalarConnectivity is on. If FullScalarConnectivity is ON, all the cell's points must lie in the scalar range specified for the cell to qualify as being connected. If FullScalarConnectivity is OFF, any one of the cell's points may lie in the user specified scalar range for the cell to qualify as being connected.

virtual void vtkPolyDataConnectivityFilter::SetScalarRange ( double  ,
double   
) [virtual]

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

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

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

virtual void vtkPolyDataConnectivityFilter::GetScalarRange ( double ,
double  
) [virtual]

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

virtual void vtkPolyDataConnectivityFilter::GetScalarRange ( double  [2]) [virtual]

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

Control the extraction of connected surfaces.

Control the extraction of connected surfaces.

Control the extraction of connected surfaces.

Definition at line 118 of file vtkPolyDataConnectivityFilter.h.

Control the extraction of connected surfaces.

Definition at line 120 of file vtkPolyDataConnectivityFilter.h.

Control the extraction of connected surfaces.

Definition at line 122 of file vtkPolyDataConnectivityFilter.h.

Control the extraction of connected surfaces.

Definition at line 124 of file vtkPolyDataConnectivityFilter.h.

Control the extraction of connected surfaces.

Definition at line 126 of file vtkPolyDataConnectivityFilter.h.

Control the extraction of connected surfaces.

Definition at line 128 of file vtkPolyDataConnectivityFilter.h.

Return the method of extraction as a string.

Definition at line 233 of file vtkPolyDataConnectivityFilter.h.

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

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

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

Initialize list of region ids to extract.

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

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

virtual void vtkPolyDataConnectivityFilter::SetClosestPoint ( double  ,
double  ,
double   
) [virtual]

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

virtual void vtkPolyDataConnectivityFilter::SetClosestPoint ( double  [3]) [virtual]

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

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

virtual void vtkPolyDataConnectivityFilter::GetClosestPoint ( double  data[3]) [virtual]

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

Obtain the number of connected regions.

Turn on/off the coloring of connected regions.

Turn on/off the coloring of connected regions.

Turn on/off the coloring of connected regions.

Turn on/off the coloring of connected regions.

Mark visited point ids ? It may be useful to extract the visited point ids for use by a downstream filter. Default is OFF.

Mark visited point ids ? It may be useful to extract the visited point ids for use by a downstream filter. Default is OFF.

Mark visited point ids ? It may be useful to extract the visited point ids for use by a downstream filter. Default is OFF.

Mark visited point ids ? It may be useful to extract the visited point ids for use by a downstream filter. Default is OFF.

Get the visited point ids. This is valid only if MarkVisitedPointIds has been set.

int vtkPolyDataConnectivityFilter::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkPolyDataAlgorithm.


Member Data Documentation

Definition at line 189 of file vtkPolyDataConnectivityFilter.h.

Definition at line 190 of file vtkPolyDataConnectivityFilter.h.

Definition at line 191 of file vtkPolyDataConnectivityFilter.h.

Definition at line 192 of file vtkPolyDataConnectivityFilter.h.

Definition at line 193 of file vtkPolyDataConnectivityFilter.h.

Definition at line 195 of file vtkPolyDataConnectivityFilter.h.

Definition at line 197 of file vtkPolyDataConnectivityFilter.h.

Definition at line 198 of file vtkPolyDataConnectivityFilter.h.

Definition at line 203 of file vtkPolyDataConnectivityFilter.h.

Definition at line 208 of file vtkPolyDataConnectivityFilter.h.

Definition at line 209 of file vtkPolyDataConnectivityFilter.h.

Definition at line 210 of file vtkPolyDataConnectivityFilter.h.

Definition at line 211 of file vtkPolyDataConnectivityFilter.h.

Definition at line 212 of file vtkPolyDataConnectivityFilter.h.

Definition at line 213 of file vtkPolyDataConnectivityFilter.h.

Definition at line 214 of file vtkPolyDataConnectivityFilter.h.

Definition at line 215 of file vtkPolyDataConnectivityFilter.h.

Definition at line 216 of file vtkPolyDataConnectivityFilter.h.

Definition at line 217 of file vtkPolyDataConnectivityFilter.h.

Definition at line 218 of file vtkPolyDataConnectivityFilter.h.

Definition at line 219 of file vtkPolyDataConnectivityFilter.h.

Definition at line 220 of file vtkPolyDataConnectivityFilter.h.

Definition at line 221 of file vtkPolyDataConnectivityFilter.h.

Definition at line 222 of file vtkPolyDataConnectivityFilter.h.

Definition at line 224 of file vtkPolyDataConnectivityFilter.h.


The documentation for this class was generated from the following file: