VTK  9.7.1
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
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:318
abstract specification for Viewports
Definition: vtkViewport.h:46
void SetOutputCoordinateSystemToViewport()
Set/get the coordinate system to which to transform the output.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, obtaining type information, and printing instances of the class...
void SetInputCoordinateSystemToDisplay()
Set/get the coordinate system in which the input is specified.
a simple class to control print indentation
Definition: vtkIndent.h:28
void SetOutputCoordinateSystemToDisplay()
Set/get the coordinate system to which to transform the output.
#define VTK_VIEWPORT
Definition: vtkCoordinate.h:62
virtual vtkMTimeType GetMTime()
Return this object's modified time.
Superclass for algorithms that process vtkPointSet input.
transform points into different coordinate systems
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems ...
Definition: vtkCoordinate.h:69
void SetOutputCoordinateSystemToWorld()
Set/get the coordinate system to which to transform the output.
static vtkPointSetAlgorithm * New()
Standard methods for instantiation, obtaining type information, and printing instances of the class...
Store zero or more vtkInformation instances.
#define VTK_WORLD
Definition: vtkCoordinate.h:66
#define VTK_DISPLAY
Definition: vtkCoordinate.h:60