Convert a selection from one type to another.
More...
#include <vtkConvertSelection.h>
Inherits vtkSelectionAlgorithm.
|
static vtkConvertSelection * | New () |
|
static int | IsTypeOf (const char *type) |
|
static vtkConvertSelection * | SafeDownCast (vtkObjectBase *o) |
|
|
static vtkSelection * | ToIndexSelection (vtkSelection *input, vtkDataObject *data) |
|
static vtkSelection * | ToGlobalIdSelection (vtkSelection *input, vtkDataObject *data) |
|
static vtkSelection * | ToPedigreeIdSelection (vtkSelection *input, vtkDataObject *data) |
|
static vtkSelection * | ToValueSelection (vtkSelection *input, vtkDataObject *data, const char *arrayName) |
|
static vtkSelection * | ToValueSelection (vtkSelection *input, vtkDataObject *data, vtkStringArray *arrayNames) |
|
|
static void | GetSelectedItems (vtkSelection *input, vtkDataObject *data, int fieldType, vtkIdTypeArray *indices) |
|
|
static void | GetSelectedVertices (vtkSelection *input, vtkGraph *data, vtkIdTypeArray *indices) |
|
static void | GetSelectedEdges (vtkSelection *input, vtkGraph *data, vtkIdTypeArray *indices) |
|
static void | GetSelectedPoints (vtkSelection *input, vtkDataSet *data, vtkIdTypeArray *indices) |
|
static void | GetSelectedCells (vtkSelection *input, vtkDataSet *data, vtkIdTypeArray *indices) |
|
static void | GetSelectedRows (vtkSelection *input, vtkTable *data, vtkIdTypeArray *indices) |
|
|
static vtkSelection * | ToSelectionType (vtkSelection *input, vtkDataObject *data, int type, vtkStringArray *arrayNames=0, int inputFieldType=-1) |
|
|
virtual vtkObjectBase * | NewInstanceInternal () const |
|
| vtkConvertSelection () |
|
| ~vtkConvertSelection () |
|
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
|
int | Convert (vtkSelection *input, vtkDataObject *data, vtkSelection *output) |
|
int | ConvertCompositeDataSet (vtkSelection *input, vtkCompositeDataSet *data, vtkSelection *output) |
|
int | ConvertToIndexSelection (vtkSelectionNode *input, vtkDataSet *data, vtkSelectionNode *output) |
|
int | SelectTableFromTable (vtkTable *selTable, vtkTable *dataTable, vtkIdTypeArray *indices) |
|
int | ConvertToBlockSelection (vtkSelection *input, vtkCompositeDataSet *data, vtkSelection *output) |
|
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
|
Convert a selection from one type to another.
vtkConvertSelection converts an input selection from one type to another in the context of a data object being selected. The first input is the selection, while the second input is the data object that the selection relates to.
- See Also
- vtkSelection vtkSelectionNode vtkExtractSelection vtkExtractSelectedGraph
- Events:
- vtkCommand::ProgressEvent
- Examples:
- vtkConvertSelection (Examples)
- Tests:
- vtkConvertSelection (Tests)
Definition at line 56 of file vtkConvertSelection.h.
vtkConvertSelection::vtkConvertSelection |
( |
| ) |
|
|
protected |
vtkConvertSelection::~vtkConvertSelection |
( |
| ) |
|
|
protected |
static int vtkConvertSelection::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkConvertSelection::IsA |
( |
const char * |
type | ) |
|
|
virtual |
virtual vtkObjectBase* vtkConvertSelection::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
void vtkConvertSelection::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
void vtkConvertSelection::SetDataObjectConnection |
( |
vtkAlgorithmOutput * |
in | ) |
|
A convenience method for setting the second input (i.e. the data object).
virtual void vtkConvertSelection::SetInputFieldType |
( |
int |
| ) |
|
|
virtual |
The input field type. If this is set to a number other than -1, ignores the input selection field type and instead assumes that all selection nodes have the field type specified. This should be one of the constants defined in vtkSelectionNode.h. Default is -1.
virtual int vtkConvertSelection::GetInputFieldType |
( |
| ) |
|
|
virtual |
The input field type. If this is set to a number other than -1, ignores the input selection field type and instead assumes that all selection nodes have the field type specified. This should be one of the constants defined in vtkSelectionNode.h. Default is -1.
virtual void vtkConvertSelection::SetOutputType |
( |
int |
| ) |
|
|
virtual |
The output selection content type. This should be one of the constants defined in vtkSelectionNode.h.
virtual int vtkConvertSelection::GetOutputType |
( |
| ) |
|
|
virtual |
The output selection content type. This should be one of the constants defined in vtkSelectionNode.h.
virtual void vtkConvertSelection::SetArrayName |
( |
const char * |
| ) |
|
|
virtual |
The output array name for value or threshold selections.
virtual const char* vtkConvertSelection::GetArrayName |
( |
| ) |
|
|
virtual |
The output array name for value or threshold selections.
virtual void vtkConvertSelection::SetArrayNames |
( |
vtkStringArray * |
| ) |
|
|
virtual |
The output array names for value selection.
virtual vtkStringArray* vtkConvertSelection::GetArrayNames |
( |
| ) |
|
|
virtual |
The output array names for value selection.
void vtkConvertSelection::AddArrayName |
( |
const char * |
| ) |
|
Convenience methods used by UI
void vtkConvertSelection::ClearArrayNames |
( |
| ) |
|
Convenience methods used by UI
virtual void vtkConvertSelection::SetMatchAnyValues |
( |
bool |
| ) |
|
|
virtual |
When on, creates a separate selection node for each array. Defaults to OFF.
virtual bool vtkConvertSelection::GetMatchAnyValues |
( |
| ) |
|
|
virtual |
When on, creates a separate selection node for each array. Defaults to OFF.
virtual void vtkConvertSelection::MatchAnyValuesOn |
( |
| ) |
|
|
virtual |
When on, creates a separate selection node for each array. Defaults to OFF.
virtual void vtkConvertSelection::MatchAnyValuesOff |
( |
| ) |
|
|
virtual |
When on, creates a separate selection node for each array. Defaults to OFF.
Set/get a selection extractor used in some conversions to obtain IDs.
Set/get a selection extractor used in some conversions to obtain IDs.
static vtkSelection* vtkConvertSelection::ToIndexSelection |
( |
vtkSelection * |
input, |
|
|
vtkDataObject * |
data |
|
) |
| |
|
static |
Static methods for easily converting between selection types. NOTE: The returned selection pointer IS reference counted, so be sure to Delete() it when you are done with it.
static vtkSelection* vtkConvertSelection::ToGlobalIdSelection |
( |
vtkSelection * |
input, |
|
|
vtkDataObject * |
data |
|
) |
| |
|
static |
Static methods for easily converting between selection types. NOTE: The returned selection pointer IS reference counted, so be sure to Delete() it when you are done with it.
static vtkSelection* vtkConvertSelection::ToPedigreeIdSelection |
( |
vtkSelection * |
input, |
|
|
vtkDataObject * |
data |
|
) |
| |
|
static |
Static methods for easily converting between selection types. NOTE: The returned selection pointer IS reference counted, so be sure to Delete() it when you are done with it.
static vtkSelection* vtkConvertSelection::ToValueSelection |
( |
vtkSelection * |
input, |
|
|
vtkDataObject * |
data, |
|
|
const char * |
arrayName |
|
) |
| |
|
static |
Static methods for easily converting between selection types. NOTE: The returned selection pointer IS reference counted, so be sure to Delete() it when you are done with it.
static vtkSelection* vtkConvertSelection::ToValueSelection |
( |
vtkSelection * |
input, |
|
|
vtkDataObject * |
data, |
|
|
vtkStringArray * |
arrayNames |
|
) |
| |
|
static |
Static methods for easily converting between selection types. NOTE: The returned selection pointer IS reference counted, so be sure to Delete() it when you are done with it.
static void vtkConvertSelection::GetSelectedItems |
( |
vtkSelection * |
input, |
|
|
vtkDataObject * |
data, |
|
|
int |
fieldType, |
|
|
vtkIdTypeArray * |
indices |
|
) |
| |
|
static |
Static generic method for obtaining selected items from a data object. Other static methods (e.g. GetSelectedVertices) call this one.
static void vtkConvertSelection::GetSelectedVertices |
( |
vtkSelection * |
input, |
|
|
vtkGraph * |
data, |
|
|
vtkIdTypeArray * |
indices |
|
) |
| |
|
static |
Static methods for easily obtaining selected items from a data object. The array argument will be filled with the selected items.
static void vtkConvertSelection::GetSelectedEdges |
( |
vtkSelection * |
input, |
|
|
vtkGraph * |
data, |
|
|
vtkIdTypeArray * |
indices |
|
) |
| |
|
static |
Static methods for easily obtaining selected items from a data object. The array argument will be filled with the selected items.
static void vtkConvertSelection::GetSelectedPoints |
( |
vtkSelection * |
input, |
|
|
vtkDataSet * |
data, |
|
|
vtkIdTypeArray * |
indices |
|
) |
| |
|
static |
Static methods for easily obtaining selected items from a data object. The array argument will be filled with the selected items.
static void vtkConvertSelection::GetSelectedCells |
( |
vtkSelection * |
input, |
|
|
vtkDataSet * |
data, |
|
|
vtkIdTypeArray * |
indices |
|
) |
| |
|
static |
Static methods for easily obtaining selected items from a data object. The array argument will be filled with the selected items.
static void vtkConvertSelection::GetSelectedRows |
( |
vtkSelection * |
input, |
|
|
vtkTable * |
data, |
|
|
vtkIdTypeArray * |
indices |
|
) |
| |
|
static |
Static methods for easily obtaining selected items from a data object. The array argument will be filled with the selected items.
static vtkSelection* vtkConvertSelection::ToSelectionType |
( |
vtkSelection * |
input, |
|
|
vtkDataObject * |
data, |
|
|
int |
type, |
|
|
vtkStringArray * |
arrayNames = 0 , |
|
|
int |
inputFieldType = -1 |
|
) |
| |
|
static |
A generic static method for converting selection types. The type should be an integer constant defined in vtkSelectionNode.h.
virtual int vtkConvertSelection::RequestData |
( |
vtkInformation * |
, |
|
|
vtkInformationVector ** |
, |
|
|
vtkInformationVector * |
|
|
) |
| |
|
protectedvirtual |
int vtkConvertSelection::Convert |
( |
vtkSelection * |
input, |
|
|
vtkDataObject * |
data, |
|
|
vtkSelection * |
output |
|
) |
| |
|
protected |
int vtkConvertSelection::ConvertCompositeDataSet |
( |
vtkSelection * |
input, |
|
|
vtkCompositeDataSet * |
data, |
|
|
vtkSelection * |
output |
|
) |
| |
|
protected |
int vtkConvertSelection::ConvertToIndexSelection |
( |
vtkSelectionNode * |
input, |
|
|
vtkDataSet * |
data, |
|
|
vtkSelectionNode * |
output |
|
) |
| |
|
protected |
int vtkConvertSelection::SelectTableFromTable |
( |
vtkTable * |
selTable, |
|
|
vtkTable * |
dataTable, |
|
|
vtkIdTypeArray * |
indices |
|
) |
| |
|
protected |
int vtkConvertSelection::ConvertToBlockSelection |
( |
vtkSelection * |
input, |
|
|
vtkCompositeDataSet * |
data, |
|
|
vtkSelection * |
output |
|
) |
| |
|
protected |
virtual int vtkConvertSelection::FillInputPortInformation |
( |
int |
port, |
|
|
vtkInformation * |
info |
|
) |
| |
|
protectedvirtual |
int vtkConvertSelection::OutputType |
|
protected |
int vtkConvertSelection::InputFieldType |
|
protected |
vtkStringArray* vtkConvertSelection::ArrayNames |
|
protected |
bool vtkConvertSelection::MatchAnyValues |
|
protected |
The documentation for this class was generated from the following file: