VTK  9.4.20241222
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
24#include "vtkRenderingCoreModule.h" // For export macro
25
26VTK_ABI_NAMESPACE_BEGIN
27class VTKRENDERINGCORE_EXPORT vtkTransformCoordinateSystems : public vtkPointSetAlgorithm
28{
29public:
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
74
76
83 void SetViewport(vtkViewport* viewport);
84 vtkGetObjectMacro(Viewport, vtkViewport);
86
87protected:
90
92
96
98
99private:
101 void operator=(const vtkTransformCoordinateSystems&) = delete;
102};
103
104VTK_ABI_NAMESPACE_END
105#endif
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
a simple class to control print indentation
Definition vtkIndent.h:108
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.
static vtkTransformCoordinateSystems * New()
Instantiate this class.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetInputCoordinateSystemToWorld()
Set/get the coordinate system in which the input is specified.
abstract specification for Viewports
Definition vtkViewport.h:65
#define VTK_DISPLAY
#define VTK_WORLD
#define VTK_VIEWPORT
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270