VTK  9.3.0
vtkAxes.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
28 #ifndef vtkAxes_h
29 #define vtkAxes_h
30 
31 #include "vtkFiltersGeneralModule.h" // For export macro
32 #include "vtkPolyDataAlgorithm.h"
33 
34 VTK_ABI_NAMESPACE_BEGIN
35 class VTKFILTERSGENERAL_EXPORT vtkAxes : public vtkPolyDataAlgorithm
36 {
37 public:
38  static vtkAxes* New();
39 
40  vtkTypeMacro(vtkAxes, vtkPolyDataAlgorithm);
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
47  vtkSetVector3Macro(Origin, double);
48  vtkGetVectorMacro(Origin, double, 3);
50 
52 
55  vtkSetMacro(ScaleFactor, double);
56  vtkGetMacro(ScaleFactor, double);
58 
60 
63  vtkSetMacro(Symmetric, vtkTypeBool);
64  vtkGetMacro(Symmetric, vtkTypeBool);
65  vtkBooleanMacro(Symmetric, vtkTypeBool);
67 
69 
72  vtkSetMacro(ComputeNormals, vtkTypeBool);
73  vtkGetMacro(ComputeNormals, vtkTypeBool);
74  vtkBooleanMacro(ComputeNormals, vtkTypeBool);
76 
77 protected:
79  ~vtkAxes() override = default;
80 
82  // This source does not know how to generate pieces yet.
83  int ComputeDivisionExtents(vtkDataObject* output, int idx, int numDivisions);
84 
85  double Origin[3];
86  double ScaleFactor;
87 
90 
91 private:
92  vtkAxes(const vtkAxes&) = delete;
93  void operator=(const vtkAxes&) = delete;
94 };
95 
96 VTK_ABI_NAMESPACE_END
97 #endif
create an x-y-z axes
Definition: vtkAxes.h:36
double ScaleFactor
Definition: vtkAxes.h:86
static vtkAxes * New()
~vtkAxes() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int ComputeDivisionExtents(vtkDataObject *output, int idx, int numDivisions)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTypeBool Symmetric
Definition: vtkAxes.h:88
vtkTypeBool ComputeNormals
Definition: vtkAxes.h:89
general representation of visualization data
Definition: vtkDataObject.h:64
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
int vtkTypeBool
Definition: vtkABI.h:64