ParaView
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkSelectionConverter Class Reference

converts one selection type to another More...

#include <vtkSelectionConverter.h>

Inherits vtkObject.

Public Types

typedef vtkObject Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void Convert (vtkSelection *input, vtkSelection *output, int global_ids)
 Convert input selection and store it in output. More...
 

Static Public Member Functions

static vtkSelectionConverterNew ()
 
static int IsTypeOf (const char *type)
 
static vtkSelectionConverterSafeDownCast (vtkObject *o)
 

Protected Member Functions

 vtkSelectionConverter ()
 
 ~vtkSelectionConverter ()
 
void Convert (vtkSelectionNode *input, vtkSelection *output, int global_ids)
 
vtkDataSet * LocateDataSet (vtkCompositeDataIterator *iter, unsigned int index)
 

Detailed Description

converts one selection type to another

vtkSelectionConverter can be used to convert from one selection type to another. Currently, it only supports conversion from a 'surface' geometry selection to a 'volume' selection. It does this by looking for a pedigree array called vtkOriginalCellIds that says what 3D cell produced each selected 2D surface cell. The input selection must have SOURCE_ID() and ORIGINAL_SOURCE_ID() properties set. The SOURCE_ID() corresponds to the geometry filter whereas the ORIGINAL_SOURCE_ID() corresponds to the input of the geometry filter. The output selection will have SOURCE_ID() corresponding to the input of the geometry filter (what was ORIGINAL_SOURCE_ID()).

See also
vtkSelection

Definition at line 44 of file vtkSelectionConverter.h.

Member Typedef Documentation

◆ Superclass

Definition at line 48 of file vtkSelectionConverter.h.

Constructor & Destructor Documentation

◆ vtkSelectionConverter()

vtkSelectionConverter::vtkSelectionConverter ( )
protected

◆ ~vtkSelectionConverter()

vtkSelectionConverter::~vtkSelectionConverter ( )
protected

Member Function Documentation

◆ New()

static vtkSelectionConverter* vtkSelectionConverter::New ( )
static

◆ GetClassName()

virtual const char* vtkSelectionConverter::GetClassName ( )
virtual

◆ IsTypeOf()

static int vtkSelectionConverter::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual int vtkSelectionConverter::IsA ( const char *  type)
virtual

◆ SafeDownCast()

static vtkSelectionConverter* vtkSelectionConverter::SafeDownCast ( vtkObject *  o)
static

◆ PrintSelf()

void vtkSelectionConverter::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

◆ Convert() [1/2]

void vtkSelectionConverter::Convert ( vtkSelection *  input,
vtkSelection *  output,
int  global_ids 
)

Convert input selection and store it in output.

Currently, the input selection must be a geometry selection and the output is a volume selection. If global_ids is set, then the selection is converted to global ids selection.

◆ Convert() [2/2]

void vtkSelectionConverter::Convert ( vtkSelectionNode *  input,
vtkSelection *  output,
int  global_ids 
)
protected

◆ LocateDataSet()

vtkDataSet* vtkSelectionConverter::LocateDataSet ( vtkCompositeDataIterator *  iter,
unsigned int  index 
)
protected

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