VTK  9.1.0
vtkAxes.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkAxes.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
34#ifndef vtkAxes_h
35#define vtkAxes_h
36
37#include "vtkFiltersGeneralModule.h" // For export macro
39
40class VTKFILTERSGENERAL_EXPORT vtkAxes : public vtkPolyDataAlgorithm
41{
42public:
43 static vtkAxes* New();
44
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
49
52 vtkSetVector3Macro(Origin, double);
53 vtkGetVectorMacro(Origin, double, 3);
55
57
60 vtkSetMacro(ScaleFactor, double);
61 vtkGetMacro(ScaleFactor, double);
63
65
68 vtkSetMacro(Symmetric, vtkTypeBool);
69 vtkGetMacro(Symmetric, vtkTypeBool);
70 vtkBooleanMacro(Symmetric, vtkTypeBool);
72
74
77 vtkSetMacro(ComputeNormals, vtkTypeBool);
78 vtkGetMacro(ComputeNormals, vtkTypeBool);
79 vtkBooleanMacro(ComputeNormals, vtkTypeBool);
81
82protected:
84 ~vtkAxes() override = default;
85
87 // This source does not know how to generate pieces yet.
88 int ComputeDivisionExtents(vtkDataObject* output, int idx, int numDivisions);
89
90 double Origin[3];
92
95
96private:
97 vtkAxes(const vtkAxes&) = delete;
98 void operator=(const vtkAxes&) = delete;
99};
100
101#endif
create an x-y-z axes
Definition: vtkAxes.h:41
double ScaleFactor
Definition: vtkAxes.h:91
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:93
vtkTypeBool ComputeNormals
Definition: vtkAxes.h:94
general representation of visualization data
Definition: vtkDataObject.h:69
a simple class to control print indentation
Definition: vtkIndent.h:43
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:69