VTK  9.3.20240916
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
21#include "vtkFiltersCellGridModule.h" // For export macro
22#include "vtkNew.h" // for ivar
23
24VTK_ABI_NAMESPACE_BEGIN
26
27class VTKFILTERSCELLGRID_EXPORT vtkCellGridElevation : public vtkCellGridAlgorithm
28{
29public:
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
73protected:
75 ~vtkCellGridElevation() override = default;
76
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
87private:
89 void operator=(const vtkCellGridElevation&) = delete;
90};
91
92VTK_ABI_NAMESPACE_END
93#endif // vtkCellGridElevation_h
Superclass for algorithms that produce only polydata as output.
A cell-grid query for creating an "elevation" field.
Adds a cell attribute representing elevation.
vtkCellGridElevation()=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *ouInfo) override
This is called by the superclass.
vtkNew< vtkCellGridElevationQuery > Request
~vtkCellGridElevation() override=default
static vtkCellGridElevation * New()
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Allocate and hold a VTK object.
Definition vtkNew.h:167