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 =========================================================================*/
28 #ifndef vtkTransformCoordinateSystems_h
29 #define vtkTransformCoordinateSystems_h
30 
31 #include "vtkRenderingCoreModule.h" // For export macro
32 #include "vtkPointSetAlgorithm.h"
33 #include "vtkCoordinate.h" //to get the defines in vtkCoordinate
34 
35 class VTKRENDERINGCORE_EXPORT vtkTransformCoordinateSystems : public vtkPointSetAlgorithm
36 {
37 public:
39 
43  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
45 
51 
53 
58  vtkSetMacro(InputCoordinateSystem, int);
59  vtkGetMacro(InputCoordinateSystem, int);
61  { this->SetInputCoordinateSystem(VTK_DISPLAY); }
63  { this->SetInputCoordinateSystem(VTK_VIEWPORT); }
65  { this->SetInputCoordinateSystem(VTK_WORLD); }
67 
69 
74  vtkSetMacro(OutputCoordinateSystem, int);
75  vtkGetMacro(OutputCoordinateSystem, int);
77  { this->SetOutputCoordinateSystem(VTK_DISPLAY); }
79  { this->SetOutputCoordinateSystem(VTK_VIEWPORT); }
81  { this->SetOutputCoordinateSystem(VTK_WORLD); }
83 
87  vtkMTimeType GetMTime() VTK_OVERRIDE;
88 
90 
97  void SetViewport(vtkViewport* viewport);
98  vtkGetObjectMacro(Viewport, vtkViewport);
100 
101 protected:
103  ~vtkTransformCoordinateSystems() VTK_OVERRIDE;
104 
105  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
106 
107  int InputCoordinateSystem;
108  int OutputCoordinateSystem;
109  vtkViewport* Viewport;
110 
111  vtkCoordinate* TransformCoordinate;
112 
113 private:
114  vtkTransformCoordinateSystems(const vtkTransformCoordinateSystems&) VTK_DELETE_FUNCTION;
115  void operator=(const vtkTransformCoordinateSystems&) VTK_DELETE_FUNCTION;
116 };
117 
118 #endif
void SetInputCoordinateSystemToWorld()
Set/get the coordinate system in which the input is specified.
void SetInputCoordinateSystemToViewport()
Set/get the coordinate system in which the input is specified.
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
abstract specification for Viewports
Definition: vtkViewport.h:44
void SetOutputCoordinateSystemToViewport()
Set/get the coordinate system to which to transform the output.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetInputCoordinateSystemToDisplay()
Set/get the coordinate system in which the input is specified.
a simple class to control print indentation
Definition: vtkIndent.h:33
void SetOutputCoordinateSystemToDisplay()
Set/get the coordinate system to which to transform the output.
#define VTK_VIEWPORT
Definition: vtkCoordinate.h:66
virtual vtkMTimeType GetMTime()
Return this object's modified time.
Superclass for algorithms that produce output of the same type as input.
transform points into different coordinate systems
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems ...
Definition: vtkCoordinate.h:72
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void SetOutputCoordinateSystemToWorld()
Set/get the coordinate system to which to transform the output.
static vtkPointSetAlgorithm * New()
Store zero or more vtkInformation instances.
#define VTK_WORLD
Definition: vtkCoordinate.h:69
#define VTK_DISPLAY
Definition: vtkCoordinate.h:64