VTK  9.3.1
vtkCellGridBoundsQuery.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
10 #ifndef vtkCellGridBoundsQuery_h
11 #define vtkCellGridBoundsQuery_h
12 
13 #include "vtkCellGridQuery.h"
14 
15 #include <array> // For Bounds ivar.
16 
17 VTK_ABI_NAMESPACE_BEGIN
18 class vtkBoundingBox;
19 
20 class VTKCOMMONDATAMODEL_EXPORT vtkCellGridBoundsQuery : public vtkCellGridQuery
21 {
22 public:
23  static vtkCellGridBoundsQuery* New();
25  void PrintSelf(ostream& os, vtkIndent indent) override;
26 
27  void Initialize() override;
28  void GetBounds(double* bds) VTK_SIZEHINT(6);
29  void AddBounds(vtkBoundingBox& bbox);
30 
31 protected:
32  vtkCellGridBoundsQuery() = default;
33  ~vtkCellGridBoundsQuery() override = default;
34 
35  std::array<double, 6> Bounds;
36 
37 private:
39  void operator=(const vtkCellGridBoundsQuery&) = delete;
40 };
41 
42 VTK_ABI_NAMESPACE_END
43 #endif // vtkCellGridBoundsQuery_h
Perform an operation on cells in a vtkCellMetadata instance.
void GetBounds(T a, double bds[6])
Perform an operation on cells in a vtkCellMetadata instance.
a simple class to control print indentation
Definition: vtkIndent.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_SIZEHINT(...)
virtual void Initialize()
Override this if your query-result state requires initialization.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
std::array< double, 6 > Bounds
Fast, simple class for representing and operating on 3D bounds.