VTK  9.4.20241108
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
24VTK_ABI_NAMESPACE_BEGIN
25
26class VTKCOMMONDATAMODEL_EXPORT vtkCellGridQuery : public vtkObject
27{
28public:
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
58protected:
59 vtkCellGridQuery() = default;
60 ~vtkCellGridQuery() override = default;
61
62 int Pass{ -1 };
63
64private:
65 vtkCellGridQuery(const vtkCellGridQuery&) = delete;
66 void operator=(const vtkCellGridQuery&) = delete;
67};
68
69VTK_ABI_NAMESPACE_END
70#endif // vtkCellGridQuery_h
Perform an operation on cells in a vtkCellMetadata instance.
virtual void StartPass()
Mark the start of a pass through each cell type.
virtual bool IsAnotherPassRequired()
Override this if your query allows responders to execute in multiple phases.
virtual bool Initialize()
Override this if your query-result state requires initialization.
~vtkCellGridQuery() override=default
vtkCellGridQuery()=default
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:108
abstract base class for most VTK objects
Definition vtkObject.h:162