VTK  9.7.1
vtkCellGridElevation.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
17 #ifndef vtkCellGridElevation_h
18 #define vtkCellGridElevation_h
19 
20 #include "vtkCellGridAlgorithm.h"
21 #include "vtkFiltersCellGridModule.h" // For export macro
22 #include "vtkNew.h" // for ivar
23 
24 VTK_ABI_NAMESPACE_BEGIN
26 
27 class VTKFILTERSCELLGRID_EXPORT vtkCellGridElevation : public vtkCellGridAlgorithm
28 {
29 public:
30  static vtkCellGridElevation* New();
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
37  vtkSetStringMacro(AttributeName);
38  vtkGetStringMacro(AttributeName);
39 
41  vtkSetVector3Macro(Origin, double);
42  vtkGetVector3Macro(Origin, double);
43 
57  vtkSetClampMacro(NumberOfAxes, int, 1, 3);
58  vtkGetMacro(NumberOfAxes, int);
59 
62  vtkSetVector3Macro(Axis, double);
63  vtkGetVector3Macro(Axis, double);
64 
70  vtkSetMacro(Shock, double);
71  vtkGetMacro(Shock, double);
72 
73 protected:
74  vtkCellGridElevation() = default;
75  ~vtkCellGridElevation() override = default;
76 
77  int RequestData(
78  vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* ouInfo) override;
79 
81  double Origin[3] = { 0., 0., 0 };
82  double Axis[3] = { 0., 0., 1. };
83  double Shock{ 0. };
84  int NumberOfAxes{ 1 };
85  char* AttributeName{ nullptr };
86 
87 private:
89  void operator=(const vtkCellGridElevation&) = delete;
90 };
91 
92 VTK_ABI_NAMESPACE_END
93 #endif // vtkCellGridElevation_h
Store vtkAlgorithm input/output information.
static vtkCellGridAlgorithm * New()
Adds a cell attribute representing elevation.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Superclass for algorithms that produce only polydata as output.
A cell-grid query for creating an "elevation" field.
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.
Store zero or more vtkInformation instances.
vtkNew< vtkCellGridElevationQuery > Request