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 =========================================================================*/
29 #ifndef vtkRotationFilter_h
30 #define vtkRotationFilter_h
31 
32 #include "vtkFiltersGeneralModule.h" // For export macro
34 
35 class VTKFILTERSGENERAL_EXPORT vtkRotationFilter : public vtkUnstructuredGridAlgorithm
36 {
37 public:
38  static vtkRotationFilter *New();
40  void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE;
41 
43  {
44  USE_X = 0,
45  USE_Y = 1,
46  USE_Z = 2
47  };
48 
50 
53  vtkSetClampMacro(Axis, int, 0, 2);
54  vtkGetMacro(Axis, int);
55  void SetAxisToX() { this->SetAxis(USE_X); };
56  void SetAxisToY() { this->SetAxis(USE_Y); };
57  void SetAxisToZ() { this->SetAxis(USE_Z); };
59 
61 
64  vtkSetMacro(Angle, double);
65  vtkGetMacro(Angle, double);
67 
69 
72  vtkSetVector3Macro(Center,double);
73  vtkGetVector3Macro(Center,double);
75 
77 
82  vtkSetMacro(NumberOfCopies, int);
83  vtkGetMacro(NumberOfCopies, int);
85 
87 
91  vtkSetMacro(CopyInput, int);
92  vtkGetMacro(CopyInput, int);
93  vtkBooleanMacro(CopyInput, int);
95 
96 
97 protected:
99  ~vtkRotationFilter() VTK_OVERRIDE;
100 
101  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
102  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
103 
104  int Axis;
105  double Angle;
106  double Center[3];
107  int NumberOfCopies;
108  int CopyInput;
109 
110 private:
111  vtkRotationFilter(const vtkRotationFilter&) VTK_DELETE_FUNCTION;
112  void operator=(const vtkRotationFilter&) VTK_DELETE_FUNCTION;
113 };
114 
115 #endif
116 
117 
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:33
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.