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 =========================================================================*/
28 #ifndef vtkTransformCoordinateSystems_h
29 #define vtkTransformCoordinateSystems_h
30 
31 #include "vtkRenderingCoreModule.h" // For export macro
32 #include "vtkPointSetAlgorithm.h"
33 #include "vtkCoordinate.h" //to get the defines in vtkCoordinate
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);
61  { this->SetInputCoordinateSystem(VTK_DISPLAY); }
63  { this->SetInputCoordinateSystem(VTK_VIEWPORT); }
65  { this->SetInputCoordinateSystem(VTK_WORLD); }
67 
69 
74  vtkSetMacro(OutputCoordinateSystem, int);
75  vtkGetMacro(OutputCoordinateSystem, int);
77  { this->SetOutputCoordinateSystem(VTK_DISPLAY); }
79  { this->SetOutputCoordinateSystem(VTK_VIEWPORT); }
81  { this->SetOutputCoordinateSystem(VTK_WORLD); }
83 
87  vtkMTimeType GetMTime() override;
88 
90 
97  void SetViewport(vtkViewport* viewport);
98  vtkGetObjectMacro(Viewport, vtkViewport);
100 
101 protected:
103  ~vtkTransformCoordinateSystems() override;
104 
106 
110 
112 
113 private:
115  void operator=(const vtkTransformCoordinateSystems&) = delete;
116 };
117 
118 #endif
vtkTransformCoordinateSystems::SetInputCoordinateSystemToWorld
void SetInputCoordinateSystemToWorld()
Definition: vtkTransformCoordinateSystems.h:64
vtkPointSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPointSetAlgorithm.h:43
vtkTransformCoordinateSystems::SetInputCoordinateSystemToViewport
void SetInputCoordinateSystemToViewport()
Definition: vtkTransformCoordinateSystems.h:62
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkTransformCoordinateSystems::SetOutputCoordinateSystemToViewport
void SetOutputCoordinateSystemToViewport()
Definition: vtkTransformCoordinateSystems.h:78
vtkPointSetAlgorithm.h
vtkTransformCoordinateSystems::SetInputCoordinateSystemToDisplay
void SetInputCoordinateSystemToDisplay()
Definition: vtkTransformCoordinateSystems.h:60
vtkPointSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkPointSetAlgorithm.h:132
VTK_VIEWPORT
#define VTK_VIEWPORT
Definition: vtkCoordinate.h:68
vtkPointSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkTransformCoordinateSystems
transform points into different coordinate systems
Definition: vtkTransformCoordinateSystems.h:35
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkCoordinate
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
Definition: vtkCoordinate.h:75
vtkTransformCoordinateSystems::SetOutputCoordinateSystemToDisplay
void SetOutputCoordinateSystemToDisplay()
Definition: vtkTransformCoordinateSystems.h:76
vtkTransformCoordinateSystems::TransformCoordinate
vtkCoordinate * TransformCoordinate
Definition: vtkTransformCoordinateSystems.h:111
vtkTransformCoordinateSystems::SetOutputCoordinateSystemToWorld
void SetOutputCoordinateSystemToWorld()
Definition: vtkTransformCoordinateSystems.h:80
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:44
vtkCoordinate.h
vtkTransformCoordinateSystems::OutputCoordinateSystem
int OutputCoordinateSystem
Definition: vtkTransformCoordinateSystems.h:108
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkTransformCoordinateSystems::Viewport
vtkViewport * Viewport
Definition: vtkTransformCoordinateSystems.h:109
VTK_WORLD
#define VTK_WORLD
Definition: vtkCoordinate.h:72
vtkTransformCoordinateSystems::InputCoordinateSystem
int InputCoordinateSystem
Definition: vtkTransformCoordinateSystems.h:107
vtkPointSetAlgorithm::New
static vtkPointSetAlgorithm * New()
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
VTK_DISPLAY
#define VTK_DISPLAY
Definition: vtkCoordinate.h:66