VTK  9.3.0
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:
25  void PrintSelf(ostream& os, vtkIndent indent) override;
26 
27  void Initialize() override;
28  void GetBounds(double* bds) VTK_SIZEHINT(6);
30 
31 protected:
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
Fast, simple class for representing and operating on 3D bounds.
Perform an operation on cells in a vtkCellMetadata instance.
std::array< double, 6 > Bounds
static vtkCellGridBoundsQuery * New()
vtkCellGridBoundsQuery()=default
void Initialize() override
Override this if your query-result state requires initialization.
void AddBounds(vtkBoundingBox &bbox)
~vtkCellGridBoundsQuery() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void GetBounds(double *bds)
Perform an operation on cells in a vtkCellMetadata instance.
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTK_SIZEHINT(...)