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 =========================================================================*/
37 #ifndef vtkAngleRepresentation2D_h
38 #define vtkAngleRepresentation2D_h
39 
40 #include "vtkInteractionWidgetsModule.h" // For export macro
41 #include "vtkAngleRepresentation.h"
42 
43 class vtkLeaderActor2D;
44 class vtkProperty2D;
45 
46 
47 class VTKINTERACTIONWIDGETS_EXPORT vtkAngleRepresentation2D : public vtkAngleRepresentation
48 {
49 public:
54 
56 
60  void PrintSelf(ostream& os, vtkIndent indent);
62 
66  virtual double GetAngle();
67 
69 
74  virtual void GetPoint1WorldPosition(double pos[3]);
75  virtual void GetCenterWorldPosition(double pos[3]);
76  virtual void GetPoint2WorldPosition(double pos[3]);
77  virtual void SetPoint1DisplayPosition(double pos[3]);
78  virtual void SetCenterDisplayPosition(double pos[3]);
79  virtual void SetPoint2DisplayPosition(double pos[3]);
80  virtual void GetPoint1DisplayPosition(double pos[3]);
81  virtual void GetCenterDisplayPosition(double pos[3]);
82  virtual void GetPoint2DisplayPosition(double pos[3]);
84 
86 
91  vtkGetObjectMacro(Ray1,vtkLeaderActor2D);
92  vtkGetObjectMacro(Ray2,vtkLeaderActor2D);
93  vtkGetObjectMacro(Arc,vtkLeaderActor2D);
95 
101 
103 
107  virtual int RenderOverlay(vtkViewport *viewport);
109 
110 protected:
113 
114  // The pieces that make up the angle representations
118 
119 private:
120  vtkAngleRepresentation2D(const vtkAngleRepresentation2D&) VTK_DELETE_FUNCTION;
121  void operator=(const vtkAngleRepresentation2D&) VTK_DELETE_FUNCTION;
122 };
123 
124 #endif
vtkAngleRepresentation2D::New
static vtkAngleRepresentation2D * New()
Instantiate class.
vtkAngleRepresentation2D::GetPoint2DisplayPosition
virtual void GetPoint2DisplayPosition(double pos[3])
vtkAngleRepresentation.h
vtkAngleRepresentation2D::GetCenterWorldPosition
virtual void GetCenterWorldPosition(double pos[3])
vtkAngleRepresentation2D
represent the vtkAngleWidget
Definition: vtkAngleRepresentation2D.h:48
vtkAngleRepresentation2D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkAngleRepresentation2D::SetPoint1DisplayPosition
virtual void SetPoint1DisplayPosition(double pos[3])
vtkAngleRepresentation2D::Ray1
vtkLeaderActor2D * Ray1
Definition: vtkAngleRepresentation2D.h:115
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkAngleRepresentation2D::Ray2
vtkLeaderActor2D * Ray2
Definition: vtkAngleRepresentation2D.h:116
vtkAngleRepresentation2D::SetPoint2DisplayPosition
virtual void SetPoint2DisplayPosition(double pos[3])
vtkAngleRepresentation2D::GetAngle
virtual double GetAngle()
Satisfy the superclasses API.
vtkAngleRepresentation2D::SetCenterDisplayPosition
virtual void SetCenterDisplayPosition(double pos[3])
vtkAngleRepresentation2D::vtkAngleRepresentation2D
vtkAngleRepresentation2D()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkAngleRepresentation2D::RenderOverlay
virtual int RenderOverlay(vtkViewport *viewport)
vtkAngleRepresentation2D::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *w)
Methods required by vtkProp superclass.
vtkAngleRepresentation2D::GetPoint1DisplayPosition
virtual void GetPoint1DisplayPosition(double pos[3])
vtkAngleRepresentation2D::GetPoint1WorldPosition
virtual void GetPoint1WorldPosition(double pos[3])
Methods to Set/Get the coordinates of the two points defining this representation.
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:48
vtkProperty2D
represent surface properties of a 2D image
Definition: vtkProperty2D.h:41
vtkAngleRepresentation2D::~vtkAngleRepresentation2D
~vtkAngleRepresentation2D()
vtkAngleRepresentation2D::Arc
vtkLeaderActor2D * Arc
Definition: vtkAngleRepresentation2D.h:117
vtkAngleRepresentation2D::GetCenterDisplayPosition
virtual void GetCenterDisplayPosition(double pos[3])
vtkAngleRepresentation2D::GetPoint2WorldPosition
virtual void GetPoint2WorldPosition(double pos[3])
vtkAngleRepresentation2D::BuildRepresentation
void BuildRepresentation()
Method defined by vtkWidgetRepresentation superclass and needed here.
vtkLeaderActor2D
create a leader with optional label and arrows
Definition: vtkLeaderActor2D.h:60
vtkAngleRepresentation
represent the vtkAngleWidget
Definition: vtkAngleRepresentation.h:40