VTK
vtkRotationFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRotationFilter.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 =========================================================================*/
32 #ifndef vtkRotationFilter_h
33 #define vtkRotationFilter_h
34 
35 #include "vtkFiltersGeneralModule.h" // For export macro
37 
38 class VTKFILTERSGENERAL_EXPORT vtkRotationFilter : public vtkUnstructuredGridAlgorithm
39 {
40 public:
41  static vtkRotationFilter *New();
43  void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE;
44 
46  {
47  USE_X = 0,
48  USE_Y = 1,
49  USE_Z = 2
50  };
51 
53 
56  vtkSetClampMacro(Axis, int, 0, 2);
57  vtkGetMacro(Axis, int);
58  void SetAxisToX() { this->SetAxis(USE_X); };
59  void SetAxisToY() { this->SetAxis(USE_Y); };
60  void SetAxisToZ() { this->SetAxis(USE_Z); };
62 
64 
67  vtkSetMacro(Angle, double);
68  vtkGetMacro(Angle, double);
70 
72 
75  vtkSetVector3Macro(Center,double);
76  vtkGetVector3Macro(Center,double);
78 
80 
85  vtkSetMacro(NumberOfCopies, int);
86  vtkGetMacro(NumberOfCopies, int);
88 
90 
94  vtkSetMacro(CopyInput, int);
95  vtkGetMacro(CopyInput, int);
96  vtkBooleanMacro(CopyInput, int);
98 
99 
100 protected:
102  ~vtkRotationFilter() VTK_OVERRIDE;
103 
104  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
105  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
106 
107  int Axis;
108  double Angle;
109  double Center[3];
110  int NumberOfCopies;
111  int CopyInput;
112 
113 private:
114  vtkRotationFilter(const vtkRotationFilter&) VTK_DELETE_FUNCTION;
115  void operator=(const vtkRotationFilter&) VTK_DELETE_FUNCTION;
116 };
117 
118 #endif
119 
120 
Store vtkAlgorithm input/output information.
void SetAxisToX()
Set the axis of rotation to use.
static vtkUnstructuredGridAlgorithm * New()
void SetAxisToZ()
Set the axis of rotation to use.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
Duplicates a data set by rotation about an axis.
Superclass for algorithms that produce only unstructured grid as output.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void SetAxisToY()
Set the axis of rotation to use.