VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkCellDistanceSelector Class Reference

select neighbor cells up to a distance More...

#include <vtkCellDistanceSelector.h>

Inherits vtkSelectionAlgorithm.

Public Types

typedef vtkSelectionAlgorithm Superclass
 
enum  InputPorts { INPUT_MESH = 0, INPUT_SELECTION = 1 }
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkCellDistanceSelectorNewInstance () const
 
virtual void PrintSelf (ostream &os, vtkIndent indent)
 
void SetInputMeshConnection (vtkAlgorithmOutput *in)
 
void SetInputMesh (vtkDataObject *obj)
 
void SetInputSelectionConnection (vtkAlgorithmOutput *in)
 
void SetInputSelection (vtkSelection *obj)
 
virtual void SetDistance (int)
 
virtual int GetDistance ()
 
virtual void SetIncludeSeed (int)
 
virtual int GetIncludeSeed ()
 
virtual void IncludeSeedOn ()
 
virtual void IncludeSeedOff ()
 
virtual void SetAddIntermediate (int)
 
virtual int GetAddIntermediate ()
 
virtual void AddIntermediateOn ()
 
virtual void AddIntermediateOff ()
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkCellDistanceSelectorSafeDownCast (vtkObjectBase *o)
 
static vtkCellDistanceSelectorNew ()
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkCellDistanceSelector ()
 
virtual ~vtkCellDistanceSelector ()
 
void AddSelectionNode (vtkSelection *output, vtkSmartPointer< vtkDataArray > outIndices, int partNumber, int d)
 
virtual int FillInputPortInformation (int port, vtkInformation *info)
 
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 

Protected Attributes

int Distance
 
int IncludeSeed
 
int AddIntermediate
 

Detailed Description

select neighbor cells up to a distance

Grows a selection, selecting neighbor cells, up to a user defined topological distance

This filter grows an input selection by iteratively selecting neighbor cells (a neighbor cell is a cell that shares a vertex/edge/face), up to a given topological distance to the selected neighborhood (number of times we add neighbor cells). This filter takes a vtkSelection and a vtkCompositeDataSet as inputs. It outputs a vtkSelection identifying all the selected cells.

Thanks:
This file has been initially developed in the frame of CEA's Love visualization software development
CEA/DIF - Commissariat a l'Energie Atomique, Centre DAM Ile-De-France
BP12, F-91297 Arpajon, France.
Modified and integrated into VTK, Kitware SAS 2012 Implementation by Thierry Carrard and Philippe Pebay
Tests:
vtkCellDistanceSelector (Tests)

Definition at line 52 of file vtkCellDistanceSelector.h.

Member Typedef Documentation

typedef vtkSelectionAlgorithm vtkCellDistanceSelector::Superclass

Definition at line 55 of file vtkCellDistanceSelector.h.

Member Enumeration Documentation

enumeration values to specify input port types

Enumerator
INPUT_MESH 

Port 0 is for input mesh.

INPUT_SELECTION 

Port 1 is for input selection.

Definition at line 63 of file vtkCellDistanceSelector.h.

Constructor & Destructor Documentation

vtkCellDistanceSelector::vtkCellDistanceSelector ( )
protected
virtual vtkCellDistanceSelector::~vtkCellDistanceSelector ( )
protectedvirtual

Member Function Documentation

static int vtkCellDistanceSelector::IsTypeOf ( const char *  type)
static
virtual int vtkCellDistanceSelector::IsA ( const char *  type)
virtual
static vtkCellDistanceSelector* vtkCellDistanceSelector::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkCellDistanceSelector::NewInstanceInternal ( ) const
protectedvirtual
vtkCellDistanceSelector* vtkCellDistanceSelector::NewInstance ( ) const
virtual void vtkCellDistanceSelector::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual
static vtkCellDistanceSelector* vtkCellDistanceSelector::New ( )
static
void vtkCellDistanceSelector::SetInputMeshConnection ( vtkAlgorithmOutput *  in)
inline

A convenience method to set the data object input connection to the producer output

Definition at line 73 of file vtkCellDistanceSelector.h.

void vtkCellDistanceSelector::SetInputMesh ( vtkDataObject *  obj)
inline

A convenience method to set the input data object

Definition at line 79 of file vtkCellDistanceSelector.h.

void vtkCellDistanceSelector::SetInputSelectionConnection ( vtkAlgorithmOutput *  in)
inline

A convenience method to set the selection input connection to the producer output

Definition at line 86 of file vtkCellDistanceSelector.h.

void vtkCellDistanceSelector::SetInputSelection ( vtkSelection *  obj)
inline

A convenience method to set the input selection

Definition at line 92 of file vtkCellDistanceSelector.h.

virtual void vtkCellDistanceSelector::SetDistance ( int  )
virtual

Tells how far (in term of topological distance) away from seed cells to expand the selection

virtual int vtkCellDistanceSelector::GetDistance ( )
virtual

Tells how far (in term of topological distance) away from seed cells to expand the selection

virtual void vtkCellDistanceSelector::SetIncludeSeed ( int  )
virtual

If set, seed cells passed with SetSeedCells will be included in the final selection

virtual int vtkCellDistanceSelector::GetIncludeSeed ( )
virtual

If set, seed cells passed with SetSeedCells will be included in the final selection

virtual void vtkCellDistanceSelector::IncludeSeedOn ( )
virtual

If set, seed cells passed with SetSeedCells will be included in the final selection

virtual void vtkCellDistanceSelector::IncludeSeedOff ( )
virtual

If set, seed cells passed with SetSeedCells will be included in the final selection

virtual void vtkCellDistanceSelector::SetAddIntermediate ( int  )
virtual

If set, intermediate cells (between seed cells and the selection boundary) will be included in the final selection

virtual int vtkCellDistanceSelector::GetAddIntermediate ( )
virtual

If set, intermediate cells (between seed cells and the selection boundary) will be included in the final selection

virtual void vtkCellDistanceSelector::AddIntermediateOn ( )
virtual

If set, intermediate cells (between seed cells and the selection boundary) will be included in the final selection

virtual void vtkCellDistanceSelector::AddIntermediateOff ( )
virtual

If set, intermediate cells (between seed cells and the selection boundary) will be included in the final selection

void vtkCellDistanceSelector::AddSelectionNode ( vtkSelection *  output,
vtkSmartPointer< vtkDataArray >  outIndices,
int  partNumber,
int  d 
)
protected
virtual int vtkCellDistanceSelector::FillInputPortInformation ( int  port,
vtkInformation *  info 
)
protectedvirtual
virtual int vtkCellDistanceSelector::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protectedvirtual

Member Data Documentation

int vtkCellDistanceSelector::Distance
protected

Tological radius from seed cells to be used to select cells Default: 1

Definition at line 130 of file vtkCellDistanceSelector.h.

int vtkCellDistanceSelector::IncludeSeed
protected

Decide whether seed cells are included in selection Default: 1

Definition at line 133 of file vtkCellDistanceSelector.h.

int vtkCellDistanceSelector::AddIntermediate
protected

Decide whether at distance between 1 and Distance-1 are included in selection Default: 1

Definition at line 137 of file vtkCellDistanceSelector.h.


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