ParaView
vtkQuerySelectionSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkQuerySelectionSource.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 =========================================================================*/
28 #ifndef vtkQuerySelectionSource_h
29 #define vtkQuerySelectionSource_h
30 
31 #include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
32 #include "vtkSelectionAlgorithm.h"
33 
34 class vtkAbstractArray;
35 
36 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkQuerySelectionSource : public vtkSelectionAlgorithm
37 {
38 public:
39  static vtkQuerySelectionSource* New();
40  vtkTypeMacro(vtkQuerySelectionSource, vtkSelectionAlgorithm);
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
47  vtkSetStringMacro(QueryString);
48  vtkGetStringMacro(QueryString);
50 
52  vtkSetMacro(CompositeIndex, int);
53  vtkGetMacro(CompositeIndex, int);
55 
56  vtkSetMacro(HierarchicalLevel, int);
57  vtkGetMacro(HierarchicalLevel, int);
58 
59  vtkSetMacro(HierarchicalIndex, int);
60  vtkGetMacro(HierarchicalIndex, int);
61 
62  vtkSetMacro(ProcessID, int);
63  vtkGetMacro(ProcessID, int);
64 
65  // Possible values are as defined by
66  // vtkSelectionNode::SelectionField.
67  vtkSetMacro(FieldType, int);
68  vtkGetMacro(FieldType, int);
69 
75  const char* GetUserFriendlyText();
76 
78 
81  vtkSetMacro(Inverse, int);
82  vtkGetMacro(Inverse, int);
84 
85 protected:
88 
89  virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
90  vtkInformationVector* outputVector);
91 
92  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
93  vtkInformationVector* outputVector);
94 
95  int FieldType;
96 
97  char* QueryString;
98 
103 
104 private:
105  vtkQuerySelectionSource(const vtkQuerySelectionSource&) VTK_DELETE_FUNCTION;
106  void operator=(const vtkQuerySelectionSource&) VTK_DELETE_FUNCTION;
107 
108  class vtkInternals;
109  vtkInternals* Internals;
110 
111  int Inverse;
112 };
113 
114 #endif
a selection source that uses a "query" to generate the selection.