VTK
vtkAngleRepresentation2D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAngleRepresentation2D.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 =========================================================================*/
36 #ifndef __vtkAngleRepresentation2D_h
37 #define __vtkAngleRepresentation2D_h
38 
39 #include "vtkAngleRepresentation.h"
40 
41 class vtkLeaderActor2D;
42 class vtkProperty2D;
43 
44 
46 {
47 public:
49  static vtkAngleRepresentation2D *New();
50 
52 
54  void PrintSelf(ostream& os, vtkIndent indent);
56 
58  virtual double GetAngle();
59 
61 
64  virtual void GetPoint1WorldPosition(double pos[3]);
65  virtual void GetCenterWorldPosition(double pos[3]);
66  virtual void GetPoint2WorldPosition(double pos[3]);
67  virtual void SetPoint1DisplayPosition(double pos[3]);
68  virtual void SetCenterDisplayPosition(double pos[3]);
69  virtual void SetPoint2DisplayPosition(double pos[3]);
70  virtual void GetPoint1DisplayPosition(double pos[3]);
71  virtual void GetCenterDisplayPosition(double pos[3]);
72  virtual void GetPoint2DisplayPosition(double pos[3]);
74 
76 
79  vtkGetObjectMacro(Ray1,vtkLeaderActor2D);
80  vtkGetObjectMacro(Ray2,vtkLeaderActor2D);
81  vtkGetObjectMacro(Arc,vtkLeaderActor2D);
83 
85  void BuildRepresentation();
86 
88 
89  virtual void ReleaseGraphicsResources(vtkWindow *w);
90  virtual int RenderOverlay(vtkViewport *viewport);
92 
93 protected:
96 
97  // The pieces that make up the angle representations
101 
102 private:
103  vtkAngleRepresentation2D(const vtkAngleRepresentation2D&); //Not implemented
104  void operator=(const vtkAngleRepresentation2D&); //Not implemented
105 };
106 
107 #endif