VTK  9.2.6
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=========================================================================*/
40#ifndef vtkAxes_h
41#define vtkAxes_h
42
43#include "vtkFiltersGeneralModule.h" // For export macro
45
46class VTKFILTERSGENERAL_EXPORT vtkAxes : public vtkPolyDataAlgorithm
47{
48public:
49 static vtkAxes* New();
50
52 void PrintSelf(ostream& os, vtkIndent indent) override;
53
55
58 vtkSetVector3Macro(Origin, double);
59 vtkGetVectorMacro(Origin, double, 3);
61
63
66 vtkSetMacro(ScaleFactor, double);
67 vtkGetMacro(ScaleFactor, double);
69
71
74 vtkSetMacro(Symmetric, vtkTypeBool);
75 vtkGetMacro(Symmetric, vtkTypeBool);
76 vtkBooleanMacro(Symmetric, vtkTypeBool);
78
80
83 vtkSetMacro(ComputeNormals, vtkTypeBool);
84 vtkGetMacro(ComputeNormals, vtkTypeBool);
85 vtkBooleanMacro(ComputeNormals, vtkTypeBool);
87
88protected:
90 ~vtkAxes() override = default;
91
93 // This source does not know how to generate pieces yet.
94 int ComputeDivisionExtents(vtkDataObject* output, int idx, int numDivisions);
95
96 double Origin[3];
98
101
102private:
103 vtkAxes(const vtkAxes&) = delete;
104 void operator=(const vtkAxes&) = delete;
105};
106
107#endif
create an x-y-z axes
Definition vtkAxes.h:47
double ScaleFactor
Definition vtkAxes.h:97
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:99
vtkTypeBool ComputeNormals
Definition vtkAxes.h:100
general representation of visualization data
a simple class to control print indentation
Definition vtkIndent.h:49
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