VTK  9.3.20240329
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
128 #ifndef vtkAxes_h
129 #define vtkAxes_h
130 
131 #include "vtkFiltersGeneralModule.h" // For export macro
132 #include "vtkPolyDataAlgorithm.h"
133 
134 VTK_ABI_NAMESPACE_BEGIN
135 class VTKFILTERSGENERAL_EXPORT vtkAxes : public vtkPolyDataAlgorithm
136 {
137 public:
138  static vtkAxes* New();
139 
141  void PrintSelf(ostream& os, vtkIndent indent) override;
142 
144 
147  vtkSetVector3Macro(Origin, double);
148  vtkGetVectorMacro(Origin, double, 3);
150 
152 
155  vtkSetMacro(ScaleFactor, double);
156  vtkGetMacro(ScaleFactor, double);
158 
160 
163  vtkSetMacro(Symmetric, vtkTypeBool);
164  vtkGetMacro(Symmetric, vtkTypeBool);
165  vtkBooleanMacro(Symmetric, vtkTypeBool);
167 
169 
172  vtkSetMacro(ComputeNormals, vtkTypeBool);
173  vtkGetMacro(ComputeNormals, vtkTypeBool);
174  vtkBooleanMacro(ComputeNormals, vtkTypeBool);
176 
177 protected:
179  ~vtkAxes() override = default;
180 
182  // This source does not know how to generate pieces yet.
183  int ComputeDivisionExtents(vtkDataObject* output, int idx, int numDivisions);
184 
185  double Origin[3];
186  double ScaleFactor;
187 
190 
191 private:
192  vtkAxes(const vtkAxes&) = delete;
193  void operator=(const vtkAxes&) = delete;
194 };
195 
196 VTK_ABI_NAMESPACE_END
197 #endif
create an x-y-z axes
Definition: vtkAxes.h:136
double ScaleFactor
Definition: vtkAxes.h:186
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:188
vtkTypeBool ComputeNormals
Definition: vtkAxes.h:189
general representation of visualization data
a simple class to control print indentation
Definition: vtkIndent.h:108
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