VTK  9.3.20240918
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
11#ifndef vtkCellGridBoundsQuery_h
12#define vtkCellGridBoundsQuery_h
13
14#include "vtkCellGridQuery.h"
15
16#include <array> // For Bounds ivar.
17
18VTK_ABI_NAMESPACE_BEGIN
19class vtkBoundingBox;
20
21class VTKCOMMONDATAMODEL_EXPORT vtkCellGridBoundsQuery : public vtkCellGridQuery
22{
23public:
26 void PrintSelf(ostream& os, vtkIndent indent) override;
27
28 bool Initialize() override;
29 void GetBounds(double* bds) VTK_SIZEHINT(6);
31
32protected:
34 ~vtkCellGridBoundsQuery() override = default;
35
36 std::array<double, 6> Bounds;
37
38private:
40 void operator=(const vtkCellGridBoundsQuery&) = delete;
41};
42
43VTK_ABI_NAMESPACE_END
44#endif // vtkCellGridBoundsQuery_h
Fast, simple class for representing and operating on 3D bounds.
Compute the geometric bounds of a cell-grid.
static vtkCellGridBoundsQuery * New()
std::array< double, 6 > Bounds
vtkCellGridBoundsQuery()=default
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)
bool Initialize() override
Override this if your query-result state requires initialization.
Perform an operation on cells in a vtkCellMetadata instance.
a simple class to control print indentation
Definition vtkIndent.h:108
#define VTK_SIZEHINT(...)