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 =========================================================================*/
34 #ifndef vtkAngleRepresentation2D_h
35 #define vtkAngleRepresentation2D_h
36 
37 #include "vtkInteractionWidgetsModule.h" // For export macro
38 #include "vtkAngleRepresentation.h"
39 
40 class vtkLeaderActor2D;
41 class vtkProperty2D;
42 
43 
44 class VTKINTERACTIONWIDGETS_EXPORT vtkAngleRepresentation2D : public vtkAngleRepresentation
45 {
46 public:
51 
53 
57  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
63  double GetAngle() override;
64 
66 
71  void GetPoint1WorldPosition(double pos[3]) override;
72  void GetCenterWorldPosition(double pos[3]) override;
73  void GetPoint2WorldPosition(double pos[3]) override;
74  void SetPoint1DisplayPosition(double pos[3]) override;
75  void SetCenterDisplayPosition(double pos[3]) override;
76  void SetPoint2DisplayPosition(double pos[3]) override;
77  void GetPoint1DisplayPosition(double pos[3]) override;
78  void GetCenterDisplayPosition(double pos[3]) override;
79  void GetPoint2DisplayPosition(double pos[3]) override;
81 
83 
88  vtkGetObjectMacro(Ray1,vtkLeaderActor2D);
89  vtkGetObjectMacro(Ray2,vtkLeaderActor2D);
90  vtkGetObjectMacro(Arc,vtkLeaderActor2D);
92 
97  void BuildRepresentation() override;
98 
100 
104  int RenderOverlay(vtkViewport *viewport) override;
106 
107 protected:
110 
111  // The pieces that make up the angle representations
115 
116 private:
118  void operator=(const vtkAngleRepresentation2D&) = delete;
119 };
120 
121 #endif
vtkAngleRepresentation2D::New
static vtkAngleRepresentation2D * New()
Instantiate class.
vtkAngleRepresentation2D::GetCenterWorldPosition
void GetCenterWorldPosition(double pos[3]) override
vtkAngleRepresentation.h
vtkAngleRepresentation2D
represent the vtkAngleWidget
Definition: vtkAngleRepresentation2D.h:45
vtkAngleRepresentation2D::~vtkAngleRepresentation2D
~vtkAngleRepresentation2D() override
vtkAngleRepresentation2D::GetCenterDisplayPosition
void GetCenterDisplayPosition(double pos[3]) override
vtkAngleRepresentation2D::Ray1
vtkLeaderActor2D * Ray1
Definition: vtkAngleRepresentation2D.h:112
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
vtkAngleRepresentation2D::Ray2
vtkLeaderActor2D * Ray2
Definition: vtkAngleRepresentation2D.h:113
vtkAngleRepresentation2D::SetPoint2DisplayPosition
void SetPoint2DisplayPosition(double pos[3]) override
vtkAngleRepresentation2D::GetPoint2DisplayPosition
void GetPoint2DisplayPosition(double pos[3]) override
vtkAngleRepresentation2D::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *w) override
Methods required by vtkProp superclass.
vtkAngleRepresentation2D::RenderOverlay
int RenderOverlay(vtkViewport *viewport) override
vtkAngleRepresentation2D::vtkAngleRepresentation2D
vtkAngleRepresentation2D()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkAngleRepresentation2D::GetAngle
double GetAngle() override
Satisfy the superclasses API.
vtkAngleRepresentation2D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:48
vtkAngleRepresentation2D::GetPoint2WorldPosition
void GetPoint2WorldPosition(double pos[3]) override
vtkAngleRepresentation2D::GetPoint1WorldPosition
void GetPoint1WorldPosition(double pos[3]) override
Methods to Set/Get the coordinates of the two points defining this representation.
vtkProperty2D
represent surface properties of a 2D image
Definition: vtkProperty2D.h:41
vtkAngleRepresentation2D::GetPoint1DisplayPosition
void GetPoint1DisplayPosition(double pos[3]) override
vtkAngleRepresentation2D::BuildRepresentation
void BuildRepresentation() override
Method defined by vtkWidgetRepresentation superclass and needed here.
vtkAngleRepresentation2D::SetPoint1DisplayPosition
void SetPoint1DisplayPosition(double pos[3]) override
vtkAngleRepresentation2D::Arc
vtkLeaderActor2D * Arc
Definition: vtkAngleRepresentation2D.h:114
vtkLeaderActor2D
create a leader with optional label and arrows
Definition: vtkLeaderActor2D.h:60
vtkAngleRepresentation
represent the vtkAngleWidget
Definition: vtkAngleRepresentation.h:40
vtkAngleRepresentation2D::SetCenterDisplayPosition
void SetCenterDisplayPosition(double pos[3]) override