VTK
vtkContextTransform.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkContextItem.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 =========================================================================*/
15 
28 #ifndef __vtkContextTransform_h
29 #define __vtkContextTransform_h
30 
31 #include "vtkRenderingContext2DModule.h" // For export macro
32 #include "vtkAbstractContextItem.h"
33 #include "vtkSmartPointer.h" // Needed for SP ivars.
34 
35 class vtkTransform2D;
36 
37 class VTKRENDERINGCONTEXT2D_EXPORT vtkContextTransform : public vtkAbstractContextItem
38 {
39 public:
41  virtual void PrintSelf(ostream &os, vtkIndent indent);
42 
44  static vtkContextTransform *New();
45 
49  virtual void Update();
50 
52  virtual bool Paint(vtkContext2D *painter);
53 
56  virtual void Translate(float dx, float dy);
57 
60  virtual void Scale(float dx, float dy);
61 
63  virtual void Rotate(float angle);
64 
66  virtual vtkTransform2D* GetTransform();
67 
69  virtual vtkVector2f MapToParent(const vtkVector2f& point);
70 
73 
74 //BTX
75 protected:
78 
80 
81 private:
82  vtkContextTransform(const vtkContextTransform &); // Not implemented.
83  void operator=(const vtkContextTransform &); // Not implemented.
84 //ETX
85 };
86 
87 #endif //__vtkContextTransform_h