VTK  9.3.0
vtkTransformCoordinateSystems.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
19 #ifndef vtkTransformCoordinateSystems_h
20 #define vtkTransformCoordinateSystems_h
21 
22 #include "vtkCoordinate.h" //to get the defines in vtkCoordinate
23 #include "vtkPointSetAlgorithm.h"
24 #include "vtkRenderingCoreModule.h" // For export macro
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class VTKRENDERINGCORE_EXPORT vtkTransformCoordinateSystems : public vtkPointSetAlgorithm
28 {
29 public:
31 
35  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
43 
45 
50  vtkSetMacro(InputCoordinateSystem, int);
51  vtkGetMacro(InputCoordinateSystem, int);
52  void SetInputCoordinateSystemToDisplay() { this->SetInputCoordinateSystem(VTK_DISPLAY); }
53  void SetInputCoordinateSystemToViewport() { this->SetInputCoordinateSystem(VTK_VIEWPORT); }
54  void SetInputCoordinateSystemToWorld() { this->SetInputCoordinateSystem(VTK_WORLD); }
56 
58 
63  vtkSetMacro(OutputCoordinateSystem, int);
64  vtkGetMacro(OutputCoordinateSystem, int);
65  void SetOutputCoordinateSystemToDisplay() { this->SetOutputCoordinateSystem(VTK_DISPLAY); }
66  void SetOutputCoordinateSystemToViewport() { this->SetOutputCoordinateSystem(VTK_VIEWPORT); }
67  void SetOutputCoordinateSystemToWorld() { this->SetOutputCoordinateSystem(VTK_WORLD); }
69 
73  vtkMTimeType GetMTime() override;
74 
76 
83  void SetViewport(vtkViewport* viewport);
84  vtkGetObjectMacro(Viewport, vtkViewport);
86 
87 protected:
90 
92 
96 
98 
99 private:
101  void operator=(const vtkTransformCoordinateSystems&) = delete;
102 };
103 
104 VTK_ABI_NAMESPACE_END
105 #endif
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
Definition: vtkCoordinate.h:78
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.
transform points into different coordinate systems
void SetInputCoordinateSystemToViewport()
Set/get the coordinate system in which the input is specified.
vtkMTimeType GetMTime() override
Return the MTime also considering the instance of vtkCoordinate.
void SetViewport(vtkViewport *viewport)
In order for a successful coordinate transformation to occur, an instance of vtkViewport (e....
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
void SetOutputCoordinateSystemToWorld()
Set/get the coordinate system to which to transform the output.
void SetInputCoordinateSystemToDisplay()
Set/get the coordinate system in which the input is specified.
~vtkTransformCoordinateSystems() override
void SetOutputCoordinateSystemToViewport()
Set/get the coordinate system to which to transform the output.
void SetOutputCoordinateSystemToDisplay()
Set/get the coordinate system to which to transform the output.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkTransformCoordinateSystems * New()
Instantiate this class.
void SetInputCoordinateSystemToWorld()
Set/get the coordinate system in which the input is specified.
abstract specification for Viewports
Definition: vtkViewport.h:54
#define VTK_DISPLAY
Definition: vtkCoordinate.h:68
#define VTK_WORLD
Definition: vtkCoordinate.h:74
#define VTK_VIEWPORT
Definition: vtkCoordinate.h:70
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270