VTK
vtkTransformCoordinateSystems.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTransformCoordinateSystems.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 =========================================================================*/
30 #ifndef __vtkTransformCoordinateSystems_h
31 #define __vtkTransformCoordinateSystems_h
32 
33 #include "vtkRenderingCoreModule.h" // For export macro
34 #include "vtkPointSetAlgorithm.h"
35 #include "vtkCoordinate.h" //to get the defines in vtkCoordinate
36 
37 class VTKRENDERINGCORE_EXPORT vtkTransformCoordinateSystems : public vtkPointSetAlgorithm
38 {
39 public:
41 
43  void PrintSelf(ostream& os, vtkIndent indent);
45 
49 
51 
54  vtkSetMacro(InputCoordinateSystem, int);
55  vtkGetMacro(InputCoordinateSystem, int);
56  void SetInputCoordinateSystemToDisplay()
57  {this->SetInputCoordinateSystem(VTK_DISPLAY);}
58  void SetInputCoordinateSystemToViewport()
59  {this->SetInputCoordinateSystem(VTK_VIEWPORT);}
60  void SetInputCoordinateSystemToWorld()
61  {this->SetInputCoordinateSystem(VTK_WORLD);}
63 
65 
68  vtkSetMacro(OutputCoordinateSystem, int);
69  vtkGetMacro(OutputCoordinateSystem, int);
70  void SetOutputCoordinateSystemToDisplay()
71  {this->SetOutputCoordinateSystem(VTK_DISPLAY);}
72  void SetOutputCoordinateSystemToViewport()
73  {this->SetOutputCoordinateSystem(VTK_VIEWPORT);}
74  void SetOutputCoordinateSystemToWorld()
75  {this->SetOutputCoordinateSystem(VTK_WORLD);}
77 
79  unsigned long GetMTime();
80 
82 
87  void SetViewport(vtkViewport *viewport);
88  vtkGetObjectMacro(Viewport,vtkViewport);
90 
91 protected:
94 
96 
100 
102 
103 private:
105  void operator=(const vtkTransformCoordinateSystems&); // Not implemented.
106 };
107 
108 #endif