VTK  9.0.20210424
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 "vtkCoordinate.h" //to get the defines in vtkCoordinate
32 #include "vtkPointSetAlgorithm.h"
33 #include "vtkRenderingCoreModule.h" // For export macro
34 
35 class VTKRENDERINGCORE_EXPORT vtkTransformCoordinateSystems : public vtkPointSetAlgorithm
36 {
37 public:
39 
43  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
51 
53 
58  vtkSetMacro(InputCoordinateSystem, int);
59  vtkGetMacro(InputCoordinateSystem, int);
60  void SetInputCoordinateSystemToDisplay() { this->SetInputCoordinateSystem(VTK_DISPLAY); }
61  void SetInputCoordinateSystemToViewport() { this->SetInputCoordinateSystem(VTK_VIEWPORT); }
62  void SetInputCoordinateSystemToWorld() { this->SetInputCoordinateSystem(VTK_WORLD); }
64 
66 
71  vtkSetMacro(OutputCoordinateSystem, int);
72  vtkGetMacro(OutputCoordinateSystem, int);
73  void SetOutputCoordinateSystemToDisplay() { this->SetOutputCoordinateSystem(VTK_DISPLAY); }
74  void SetOutputCoordinateSystemToViewport() { this->SetOutputCoordinateSystem(VTK_VIEWPORT); }
75  void SetOutputCoordinateSystemToWorld() { this->SetOutputCoordinateSystem(VTK_WORLD); }
77 
81  vtkMTimeType GetMTime() override;
82 
84 
91  void SetViewport(vtkViewport* viewport);
92  vtkGetObjectMacro(Viewport, vtkViewport);
94 
95 protected:
98 
100 
104 
106 
107 private:
109  void operator=(const vtkTransformCoordinateSystems&) = delete;
110 };
111 
112 #endif
vtkTransformCoordinateSystems::SetInputCoordinateSystemToWorld
void SetInputCoordinateSystemToWorld()
Set/get the coordinate system in which the input is specified.
Definition: vtkTransformCoordinateSystems.h:62
vtkPointSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPointSetAlgorithm.h:44
vtkTransformCoordinateSystems::SetViewport
void SetViewport(vtkViewport *viewport)
In order for a successful coordinate transformation to occur, an instance of vtkViewport (e....
vtkTransformCoordinateSystems::SetInputCoordinateSystemToViewport
void SetInputCoordinateSystemToViewport()
Set/get the coordinate system in which the input is specified.
Definition: vtkTransformCoordinateSystems.h:61
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:36
vtkTransformCoordinateSystems::SetOutputCoordinateSystemToViewport
void SetOutputCoordinateSystemToViewport()
Set/get the coordinate system to which to transform the output.
Definition: vtkTransformCoordinateSystems.h:74
vtkPointSetAlgorithm.h
vtkTransformCoordinateSystems::SetInputCoordinateSystemToDisplay
void SetInputCoordinateSystemToDisplay()
Set/get the coordinate system in which the input is specified.
Definition: vtkTransformCoordinateSystems.h:60
VTK_VIEWPORT
#define VTK_VIEWPORT
Definition: vtkCoordinate.h:69
vtkTransformCoordinateSystems
transform points into different coordinate systems
Definition: vtkTransformCoordinateSystems.h:36
vtkTransformCoordinateSystems::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkCoordinate
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
Definition: vtkCoordinate.h:77
vtkTransformCoordinateSystems::SetOutputCoordinateSystemToDisplay
void SetOutputCoordinateSystemToDisplay()
Set/get the coordinate system to which to transform the output.
Definition: vtkTransformCoordinateSystems.h:73
vtkTransformCoordinateSystems::TransformCoordinate
vtkCoordinate * TransformCoordinate
Definition: vtkTransformCoordinateSystems.h:105
vtkTransformCoordinateSystems::vtkTransformCoordinateSystems
vtkTransformCoordinateSystems()
vtkTransformCoordinateSystems::SetOutputCoordinateSystemToWorld
void SetOutputCoordinateSystemToWorld()
Set/get the coordinate system to which to transform the output.
Definition: vtkTransformCoordinateSystems.h:75
vtkTransformCoordinateSystems::GetMTime
vtkMTimeType GetMTime() override
Return the MTime also considering the instance of vtkCoordinate.
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:45
vtkCoordinate.h
vtkTransformCoordinateSystems::OutputCoordinateSystem
int OutputCoordinateSystem
Definition: vtkTransformCoordinateSystems.h:102
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:74
vtkTransformCoordinateSystems::Viewport
vtkViewport * Viewport
Definition: vtkTransformCoordinateSystems.h:103
VTK_WORLD
#define VTK_WORLD
Definition: vtkCoordinate.h:73
vtkTransformCoordinateSystems::~vtkTransformCoordinateSystems
~vtkTransformCoordinateSystems() override
vtkTransformCoordinateSystems::InputCoordinateSystem
int InputCoordinateSystem
Definition: vtkTransformCoordinateSystems.h:101
vtkTransformCoordinateSystems::New
static vtkTransformCoordinateSystems * New()
Instantiate this class.
vtkTransformCoordinateSystems::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293
VTK_DISPLAY
#define VTK_DISPLAY
Definition: vtkCoordinate.h:67