VTK: Filters/General/vtkAxes.h Source File

| VTK 9.3.1

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