VTK  9.2.6
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 =========================================================================*/
31 #ifndef vtkTransformCoordinateSystems_h
32 #define vtkTransformCoordinateSystems_h
33 
34 #include "vtkCoordinate.h" //to get the defines in vtkCoordinate
35 #include "vtkPointSetAlgorithm.h"
36 #include "vtkRenderingCoreModule.h" // For export macro
37 
38 class VTKRENDERINGCORE_EXPORT vtkTransformCoordinateSystems : public vtkPointSetAlgorithm
39 {
40 public:
42 
46  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
54 
56 
61  vtkSetMacro(InputCoordinateSystem, int);
62  vtkGetMacro(InputCoordinateSystem, int);
63  void SetInputCoordinateSystemToDisplay() { this->SetInputCoordinateSystem(VTK_DISPLAY); }
64  void SetInputCoordinateSystemToViewport() { this->SetInputCoordinateSystem(VTK_VIEWPORT); }
65  void SetInputCoordinateSystemToWorld() { this->SetInputCoordinateSystem(VTK_WORLD); }
67 
69 
74  vtkSetMacro(OutputCoordinateSystem, int);
75  vtkGetMacro(OutputCoordinateSystem, int);
76  void SetOutputCoordinateSystemToDisplay() { this->SetOutputCoordinateSystem(VTK_DISPLAY); }
77  void SetOutputCoordinateSystemToViewport() { this->SetOutputCoordinateSystem(VTK_VIEWPORT); }
78  void SetOutputCoordinateSystemToWorld() { this->SetOutputCoordinateSystem(VTK_WORLD); }
80 
84  vtkMTimeType GetMTime() override;
85 
87 
94  void SetViewport(vtkViewport* viewport);
95  vtkGetObjectMacro(Viewport, vtkViewport);
97 
98 protected:
100  ~vtkTransformCoordinateSystems() override;
101 
103 
107 
109 
110 private:
112  void operator=(const vtkTransformCoordinateSystems&) = delete;
113 };
114 
115 #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.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
abstract specification for Viewports
Definition: vtkViewport.h:55
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:39
void SetOutputCoordinateSystemToDisplay()
Set/get the coordinate system to which to transform the output.
#define VTK_VIEWPORT
Definition: vtkCoordinate.h:72
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:79
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:76
#define VTK_DISPLAY
Definition: vtkCoordinate.h:70