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 "vtkInteractionWidgetsModule.h" // For export macro
40 #include "vtkAngleRepresentation.h"
41 
42 class vtkLeaderActor2D;
43 class vtkProperty2D;
44 
45 
47 {
48 public:
50  static vtkAngleRepresentation2D *New();
51 
53 
55  void PrintSelf(ostream& os, vtkIndent indent);
57 
59  virtual double GetAngle();
60 
62 
65  virtual void GetPoint1WorldPosition(double pos[3]);
66  virtual void GetCenterWorldPosition(double pos[3]);
67  virtual void GetPoint2WorldPosition(double pos[3]);
68  virtual void SetPoint1DisplayPosition(double pos[3]);
69  virtual void SetCenterDisplayPosition(double pos[3]);
70  virtual void SetPoint2DisplayPosition(double pos[3]);
71  virtual void GetPoint1DisplayPosition(double pos[3]);
72  virtual void GetCenterDisplayPosition(double pos[3]);
73  virtual void GetPoint2DisplayPosition(double pos[3]);
75 
77 
80  vtkGetObjectMacro(Ray1,vtkLeaderActor2D);
81  vtkGetObjectMacro(Ray2,vtkLeaderActor2D);
82  vtkGetObjectMacro(Arc,vtkLeaderActor2D);
84 
86  void BuildRepresentation();
87 
89 
90  virtual void ReleaseGraphicsResources(vtkWindow *w);
91  virtual int RenderOverlay(vtkViewport *viewport);
93 
94 protected:
97 
98  // The pieces that make up the angle representations
102 
103 private:
104  vtkAngleRepresentation2D(const vtkAngleRepresentation2D&); //Not implemented
105  void operator=(const vtkAngleRepresentation2D&); //Not implemented
106 };
107 
108 #endif
virtual int RenderOverlay(vtkViewport *vtkNotUsed(viewport))
virtual void SetPoint1DisplayPosition(double pos[3])=0
virtual void GetPoint1DisplayPosition(double pos[3])=0
abstract specification for Viewports
Definition: vtkViewport.h:46
virtual void ReleaseGraphicsResources(vtkWindow *)
virtual void GetPoint2DisplayPosition(double pos[3])=0
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
#define VTKINTERACTIONWIDGETS_EXPORT
virtual void GetPoint1WorldPosition(double pos[3])=0
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void GetCenterWorldPosition(double pos[3])=0
virtual void SetCenterDisplayPosition(double pos[3])=0
void PrintSelf(ostream &os, vtkIndent indent)
create a leader with optional label and arrows
virtual void SetPoint2DisplayPosition(double pos[3])=0
represent the vtkAngleWidget
virtual void GetCenterDisplayPosition(double pos[3])=0
virtual void BuildRepresentation()
virtual double GetAngle()=0
represent the vtkAngleWidget
represent surface properties of a 2D image
Definition: vtkProperty2D.h:39
virtual void GetPoint2WorldPosition(double pos[3])=0
static vtkObject * New()