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 =========================================================================*/
30 #ifndef vtkTransformCoordinateSystems_h
31 #define vtkTransformCoordinateSystems_h
32 
33 #include "vtkRenderingCoreModule.h" // For export macro
34 #include "vtkPointSetAlgorithm.h"
35 #include "vtkCoordinate.h" //to get the defines in vtkCoordinate
36 
38 {
39 public:
41 
43  void PrintSelf(ostream& os, vtkIndent indent);
45 
49 
51 
54  vtkSetMacro(InputCoordinateSystem, int);
55  vtkGetMacro(InputCoordinateSystem, int);
57  { this->SetInputCoordinateSystem(VTK_DISPLAY); }
59  { this->SetInputCoordinateSystem(VTK_VIEWPORT); }
61  { this->SetInputCoordinateSystem(VTK_WORLD); }
63 
65 
68  vtkSetMacro(OutputCoordinateSystem, int);
69  vtkGetMacro(OutputCoordinateSystem, int);
71  { this->SetOutputCoordinateSystem(VTK_DISPLAY); }
73  { this->SetOutputCoordinateSystem(VTK_VIEWPORT); }
75  { this->SetOutputCoordinateSystem(VTK_WORLD); }
77 
79  unsigned long GetMTime();
80 
82 
87  void SetViewport(vtkViewport* viewport);
90 
91 protected:
94 
96 
100 
102 
103 private:
105  void operator=(const vtkTransformCoordinateSystems&); // Not implemented.
106 };
107 
108 #endif
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkTransformCoordinateSystems::SetInputCoordinateSystemToWorld
void SetInputCoordinateSystemToWorld()
Definition: vtkTransformCoordinateSystems.h:60
vtkPointSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPointSetAlgorithm.h:43
vtkTransformCoordinateSystems::SetViewport
void SetViewport(vtkViewport *viewport)
vtkTransformCoordinateSystems::SetInputCoordinateSystemToViewport
void SetInputCoordinateSystemToViewport()
Definition: vtkTransformCoordinateSystems.h:58
vtkTransformCoordinateSystems::GetMTime
unsigned long GetMTime()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTransformCoordinateSystems::SetOutputCoordinateSystemToViewport
void SetOutputCoordinateSystemToViewport()
Definition: vtkTransformCoordinateSystems.h:72
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkPointSetAlgorithm.h
vtkTransformCoordinateSystems::SetInputCoordinateSystemToDisplay
void SetInputCoordinateSystemToDisplay()
Definition: vtkTransformCoordinateSystems.h:56
VTK_VIEWPORT
#define VTK_VIEWPORT
Definition: vtkCoordinate.h:63
vtkTransformCoordinateSystems
transform points into different coordinate systems
Definition: vtkTransformCoordinateSystems.h:38
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkRenderingCoreModule.h
vtkCoordinate
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
Definition: vtkCoordinate.h:70
vtkTransformCoordinateSystems::SetOutputCoordinateSystemToDisplay
void SetOutputCoordinateSystemToDisplay()
Definition: vtkTransformCoordinateSystems.h:70
vtkTransformCoordinateSystems::TransformCoordinate
vtkCoordinate * TransformCoordinate
Definition: vtkTransformCoordinateSystems.h:101
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkTransformCoordinateSystems::vtkTransformCoordinateSystems
vtkTransformCoordinateSystems()
vtkTransformCoordinateSystems::~vtkTransformCoordinateSystems
~vtkTransformCoordinateSystems()
vtkTransformCoordinateSystems::SetOutputCoordinateSystemToWorld
void SetOutputCoordinateSystemToWorld()
Definition: vtkTransformCoordinateSystems.h:74
vtkTransformCoordinateSystems::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkCoordinate.h
vtkTransformCoordinateSystems::OutputCoordinateSystem
int OutputCoordinateSystem
Definition: vtkTransformCoordinateSystems.h:98
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkTransformCoordinateSystems::Viewport
vtkViewport * Viewport
Definition: vtkTransformCoordinateSystems.h:99
vtkTransformCoordinateSystems::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
VTK_WORLD
#define VTK_WORLD
Definition: vtkCoordinate.h:66
vtkTransformCoordinateSystems::InputCoordinateSystem
int InputCoordinateSystem
Definition: vtkTransformCoordinateSystems.h:97
vtkTransformCoordinateSystems::New
static vtkTransformCoordinateSystems * New()
VTKRENDERINGCORE_EXPORT
#define VTKRENDERINGCORE_EXPORT
Definition: vtkRenderingCoreModule.h:15
VTK_DISPLAY
#define VTK_DISPLAY
Definition: vtkCoordinate.h:61