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 =========================================================================*/
31 #ifndef vtkRotationFilter_h
32 #define vtkRotationFilter_h
33 
34 #include "vtkFiltersGeneralModule.h" // For export macro
36 
38 {
39 public:
40  static vtkRotationFilter *New();
42  void PrintSelf(ostream &os, vtkIndent indent);
43 
44 //BTX
46  {
47  USE_X = 0,
48  USE_Y = 1,
49  USE_Z = 2
50  };
51 //ETX
52 
54 
55  vtkSetClampMacro(Axis, int, 0, 2);
56  vtkGetMacro(Axis, int);
57  void SetAxisToX() { this->SetAxis(USE_X); };
58  void SetAxisToY() { this->SetAxis(USE_Y); };
59  void SetAxisToZ() { this->SetAxis(USE_Z); };
61 
63 
64  vtkSetMacro(Angle, double);
65  vtkGetMacro(Angle, double);
67 
69 
70  vtkSetVector3Macro(Center,double);
71  vtkGetVector3Macro(Center,double);
73 
75 
78  vtkSetMacro(NumberOfCopies, int);
79  vtkGetMacro(NumberOfCopies, int);
81 
83 
85  vtkSetMacro(CopyInput, int);
86  vtkGetMacro(CopyInput, int);
87  vtkBooleanMacro(CopyInput, int);
89 
90 
91 protected:
94 
97 
98  int Axis;
99  double Angle;
100  double Center[3];
103 
104 private:
105  vtkRotationFilter(const vtkRotationFilter&); // Not implemented
106  void operator=(const vtkRotationFilter&); // Not implemented
107 };
108 
109 #endif
110 
111 
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store vtkAlgorithm input/output information.
static vtkUnstructuredGridAlgorithm * New()
virtual int FillInputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKFILTERSGENERAL_EXPORT
Duplicates a data set by rotation about an axis.
Superclass for algorithms that produce only unstructured grid as output.
Store zero or more vtkInformation instances.