ParaView
Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkSelectionConverter Class Reference

converts one selection type to another More...

#include <vtkSelectionConverter.h>

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

List of all members.

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)

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)
vtkDataSetLocateDataSet (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 42 of file vtkSelectionConverter.h.


Constructor & Destructor Documentation

vtkSelectionConverter::vtkSelectionConverter ( ) [protected]
vtkSelectionConverter::~vtkSelectionConverter ( ) [protected]

Member Function Documentation

static vtkSelectionConverter* vtkSelectionConverter::New ( ) [static]

Reimplemented from vtkObject.

virtual const char* vtkSelectionConverter::GetClassName ( ) [virtual]

Reimplemented from vtkObject.

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

Reimplemented from vtkObject.

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

Reimplemented from vtkObject.

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

Reimplemented from vtkObject.

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

Reimplemented from vtkObject.

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.

void vtkSelectionConverter::Convert ( vtkSelectionNode input,
vtkSelection output,
int  global_ids 
) [protected]
vtkDataSet* vtkSelectionConverter::LocateDataSet ( vtkCompositeDataIterator iter,
unsigned int  index 
) [protected]

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