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=========================================================================*/
140#ifndef vtkAxes_h
141#define vtkAxes_h
142
143#include "vtkFiltersGeneralModule.h" // For export macro
144#include "vtkPolyDataAlgorithm.h"
145
146class VTKFILTERSGENERAL_EXPORT vtkAxes : public vtkPolyDataAlgorithm
147{
148public:
149 static vtkAxes* New();
150
152 void PrintSelf(ostream& os, vtkIndent indent) override;
153
155
158 vtkSetVector3Macro(Origin, double);
159 vtkGetVectorMacro(Origin, double, 3);
161
163
166 vtkSetMacro(ScaleFactor, double);
167 vtkGetMacro(ScaleFactor, double);
169
171
174 vtkSetMacro(Symmetric, vtkTypeBool);
175 vtkGetMacro(Symmetric, vtkTypeBool);
176 vtkBooleanMacro(Symmetric, vtkTypeBool);
178
180
183 vtkSetMacro(ComputeNormals, vtkTypeBool);
184 vtkGetMacro(ComputeNormals, vtkTypeBool);
185 vtkBooleanMacro(ComputeNormals, vtkTypeBool);
187
188protected:
190 ~vtkAxes() override = default;
191
193 // This source does not know how to generate pieces yet.
194 int ComputeDivisionExtents(vtkDataObject* output, int idx, int numDivisions);
195
196 double Origin[3];
198
201
202private:
203 vtkAxes(const vtkAxes&) = delete;
204 void operator=(const vtkAxes&) = delete;
205};
206
207#endif
create an x-y-z axes
Definition: vtkAxes.h:147
double ScaleFactor
Definition: vtkAxes.h:197
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:199
vtkTypeBool ComputeNormals
Definition: vtkAxes.h:200
general representation of visualization data
a simple class to control print indentation
Definition: vtkIndent.h:119
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