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 "vtkPVVTKExtensionsExtractionModule.h" //needed for exports
32 #include "vtkSelectionAlgorithm.h"
33 
34 class vtkAbstractArray;
35 
37 {
38 public:
39  static vtkQuerySelectionSource* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
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 
86 
89  vtkSetClampMacro(NumberOfLayers, int, 0, VTK_INT_MAX);
90  vtkGetMacro(NumberOfLayers, int);
92 protected:
94  ~vtkQuerySelectionSource() override;
95 
96  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
97  vtkInformationVector* outputVector) override;
98 
99  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
100  vtkInformationVector* outputVector) override;
101 
103 
104  char* QueryString;
105 
111 
112 private:
114  void operator=(const vtkQuerySelectionSource&) = delete;
115 
116  class vtkInternals;
117  vtkInternals* Internals;
118 
119  int Inverse;
120 };
121 
122 #endif
#define VTKPVVTKEXTENSIONSEXTRACTION_EXPORT
static vtkSelectionAlgorithm * New()
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
a selection source that uses a "query" to generate the selection.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
void operator=(const vtkObjectBase &)