VTK  9.7.1
vtkCellGridQuery.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
18 #ifndef vtkCellGridQuery_h
19 #define vtkCellGridQuery_h
20 
21 #include "vtkCommonDataModelModule.h" // For export macro
22 #include "vtkObject.h"
23 
24 VTK_ABI_NAMESPACE_BEGIN
25 
26 class VTKCOMMONDATAMODEL_EXPORT vtkCellGridQuery : public vtkObject
27 {
28 public:
29  vtkTypeMacro(vtkCellGridQuery, vtkObject);
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
39  virtual bool Initialize();
40 
46  virtual void StartPass();
47 
49  vtkGetMacro(Pass, int);
50 
53  virtual bool IsAnotherPassRequired() { return false; }
54 
56  virtual bool Finalize() { return true; }
57 
58 protected:
59  vtkCellGridQuery() = default;
60  ~vtkCellGridQuery() override = default;
61 
62  int Pass{ -1 };
63 
64 private:
65  vtkCellGridQuery(const vtkCellGridQuery&) = delete;
66  void operator=(const vtkCellGridQuery&) = delete;
67 };
68 
69 VTK_ABI_NAMESPACE_END
70 #endif // vtkCellGridQuery_h
Perform an operation on cells in a vtkCellMetadata instance.
abstract base class for most VTK objects
Definition: vtkObject.h:52
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual bool Finalize()
Override this if your query-result state requires finalization.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual bool IsAnotherPassRequired()
Override this if your query allows responders to execute in multiple phases.