ParaView
vtkSelectionConverter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSelectionConverter.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
33 #ifndef vtkSelectionConverter_h
34 #define vtkSelectionConverter_h
35 
36 #include "vtkObject.h"
37 #include "vtkPVVTKExtensionsRenderingModule.h" // needed for export macro
38 
39 class vtkSelection;
40 class vtkSelectionNode;
41 class vtkCompositeDataIterator;
42 class vtkDataSet;
43 
44 class VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkSelectionConverter : public vtkObject
45 {
46 public:
47  static vtkSelectionConverter* New();
48  vtkTypeMacro(vtkSelectionConverter, vtkObject);
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
58  void Convert(vtkSelection* input, vtkSelection* output, int global_ids);
59 
60 protected:
63 
64  void Convert(vtkSelectionNode* input, vtkSelection* output, int global_ids);
65 
66  vtkDataSet* LocateDataSet(vtkCompositeDataIterator* iter, unsigned int index);
67 
68 private:
69  vtkSelectionConverter(const vtkSelectionConverter&) VTK_DELETE_FUNCTION;
70  void operator=(const vtkSelectionConverter&) VTK_DELETE_FUNCTION;
71 
72  class vtkKeyType;
73 };
74 
75 #endif
converts one selection type to another