VTK
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 "vtkRenderingCoreModule.h" // For export macro
35 #include "vtkPointSetAlgorithm.h"
36 #include "vtkCoordinate.h" //to get the defines in vtkCoordinate
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);
64  { this->SetInputCoordinateSystem(VTK_DISPLAY); }
66  { this->SetInputCoordinateSystem(VTK_VIEWPORT); }
68  { this->SetInputCoordinateSystem(VTK_WORLD); }
70 
72 
77  vtkSetMacro(OutputCoordinateSystem, int);
78  vtkGetMacro(OutputCoordinateSystem, int);
80  { this->SetOutputCoordinateSystem(VTK_DISPLAY); }
82  { this->SetOutputCoordinateSystem(VTK_VIEWPORT); }
84  { this->SetOutputCoordinateSystem(VTK_WORLD); }
86 
90  vtkMTimeType GetMTime() override;
91 
93 
100  void SetViewport(vtkViewport* viewport);
101  vtkGetObjectMacro(Viewport, vtkViewport);
103 
104 protected:
107 
109 
113 
115 
116 private:
118  void operator=(const vtkTransformCoordinateSystems&) = delete;
119 };
120 
121 #endif
vtkTransformCoordinateSystems::SetInputCoordinateSystemToWorld
void SetInputCoordinateSystemToWorld()
Definition: vtkTransformCoordinateSystems.h:67
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()
Definition: vtkTransformCoordinateSystems.h:65
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkTransformCoordinateSystems::SetOutputCoordinateSystemToViewport
void SetOutputCoordinateSystemToViewport()
Definition: vtkTransformCoordinateSystems.h:81
vtkPointSetAlgorithm.h
vtkTransformCoordinateSystems::SetInputCoordinateSystemToDisplay
void SetInputCoordinateSystemToDisplay()
Definition: vtkTransformCoordinateSystems.h:63
VTK_VIEWPORT
#define VTK_VIEWPORT
Definition: vtkCoordinate.h:74
vtkTransformCoordinateSystems
transform points into different coordinate systems
Definition: vtkTransformCoordinateSystems.h:39
vtkTransformCoordinateSystems::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkCoordinate
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
Definition: vtkCoordinate.h:82
vtkTransformCoordinateSystems::SetOutputCoordinateSystemToDisplay
void SetOutputCoordinateSystemToDisplay()
Definition: vtkTransformCoordinateSystems.h:79
vtkTransformCoordinateSystems::TransformCoordinate
vtkCoordinate * TransformCoordinate
Definition: vtkTransformCoordinateSystems.h:114
vtkTransformCoordinateSystems::vtkTransformCoordinateSystems
vtkTransformCoordinateSystems()
vtkTransformCoordinateSystems::SetOutputCoordinateSystemToWorld
void SetOutputCoordinateSystemToWorld()
Definition: vtkTransformCoordinateSystems.h:83
vtkTransformCoordinateSystems::GetMTime
vtkMTimeType GetMTime() override
Return the MTime also considering the instance of vtkCoordinate.
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:48
vtkCoordinate.h
vtkTransformCoordinateSystems::OutputCoordinateSystem
int OutputCoordinateSystem
Definition: vtkTransformCoordinateSystems.h:111
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkTransformCoordinateSystems::Viewport
vtkViewport * Viewport
Definition: vtkTransformCoordinateSystems.h:112
VTK_WORLD
#define VTK_WORLD
Definition: vtkCoordinate.h:78
vtkTransformCoordinateSystems::~vtkTransformCoordinateSystems
~vtkTransformCoordinateSystems() override
vtkTransformCoordinateSystems::InputCoordinateSystem
int InputCoordinateSystem
Definition: vtkTransformCoordinateSystems.h:110
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:302
VTK_DISPLAY
#define VTK_DISPLAY
Definition: vtkCoordinate.h:72