VTK  9.7.1
vtkCellGridElevationQuery.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
8 #ifndef vtkCellGridElevationQuery_h
9 #define vtkCellGridElevationQuery_h
10 
11 #include "vtkCellGridQuery.h"
12 #include "vtkFiltersCellGridModule.h" // For export macro.
13 #include "vtkNew.h" // For ivar.
14 
15 #include <array>
16 #include <string>
17 
18 VTK_ABI_NAMESPACE_BEGIN
19 
20 class vtkCellAttribute;
21 
31 class VTKFILTERSCELLGRID_EXPORT vtkCellGridElevationQuery : public vtkCellGridQuery
32 {
33 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
38  bool Initialize() override;
39  bool Finalize() override;
40 
42  double Shock{ 0. };
43  int NumberOfAxes{ 1 };
44  std::array<double, 3> Origin{ { 0., 0., 0. } };
45  std::array<double, 3> Axis{ { 0., 0., 1. } };
46  std::array<double, 2> Range{ { 1., 0. } };
48 
49 protected:
50  vtkCellGridElevationQuery() = default;
51  ~vtkCellGridElevationQuery() override = default;
52 
53 private:
55  void operator=(const vtkCellGridElevationQuery&) = delete;
56 };
57 
58 VTK_ABI_NAMESPACE_END
59 #endif // vtkCellGridElevationQuery_h
Perform an operation on cells in a vtkCellMetadata instance.
auto Range(IterablePtr iterable, Options &&...opts) -> typename detail::IterableTraits< typename detail::StripPointers< IterablePtr >::type >::RangeType
Generate an iterable STL proxy object for a VTK container.
Definition: vtkRange.h:74
virtual bool Finalize()
Override this if your query-result state requires finalization.
A cell-grid query for creating an "elevation" field.
a simple class to control print indentation
Definition: vtkIndent.h:28
A function defined over the physical domain of a vtkCellGrid.
vtkNew< vtkCellAttribute > Elevation
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual bool Initialize()
Override this if your query-result state requires initialization.