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