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 
35 
37 {
38 public:
39  static vtkRotationFilter *New();
41  void PrintSelf(ostream &os, vtkIndent indent);
42 
43 //BTX
45  {
46  USE_X = 0,
47  USE_Y = 1,
48  USE_Z = 2
49  };
50 //ETX
51 
53 
54  vtkSetClampMacro(Axis, int, 0, 2);
55  vtkGetMacro(Axis, int);
56  void SetAxisToX() { this->SetAxis(USE_X); };
57  void SetAxisToY() { this->SetAxis(USE_Y); };
58  void SetAxisToZ() { this->SetAxis(USE_Z); };
60 
62 
63  vtkSetMacro(Angle, double);
64  vtkGetMacro(Angle, double);
66 
68 
69  vtkSetVector3Macro(Center,double);
70  vtkGetVector3Macro(Center,double);
72 
74 
77  vtkSetMacro(NumberOfCopies, int);
78  vtkGetMacro(NumberOfCopies, int);
80 
82 
84  vtkSetMacro(CopyInput, int);
85  vtkGetMacro(CopyInput, int);
86  vtkBooleanMacro(CopyInput, int);
88 
89 
90 protected:
93 
96 
97  int Axis;
98  double Angle;
99  double Center[3];
102 
103 private:
104  vtkRotationFilter(const vtkRotationFilter&); // Not implemented
105  void operator=(const vtkRotationFilter&); // Not implemented
106 };
107 
108 #endif
109 
110 
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_GRAPHICS_EXPORT
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:37
void PrintSelf(ostream &os, vtkIndent indent)
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.