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:
53  static vtkAngleRepresentation2D *New();
54 
56 
60  void PrintSelf(ostream& os, vtkIndent indent) override;
62 
66  double GetAngle() override;
67 
69 
74  void GetPoint1WorldPosition(double pos[3]) override;
75  void GetCenterWorldPosition(double pos[3]) override;
76  void GetPoint2WorldPosition(double pos[3]) override;
77  void SetPoint1DisplayPosition(double pos[3]) override;
78  void SetCenterDisplayPosition(double pos[3]) override;
79  void SetPoint2DisplayPosition(double pos[3]) override;
80  void GetPoint1DisplayPosition(double pos[3]) override;
81  void GetCenterDisplayPosition(double pos[3]) override;
82  void GetPoint2DisplayPosition(double pos[3]) override;
84 
86 
91  vtkGetObjectMacro(Ray1,vtkLeaderActor2D);
92  vtkGetObjectMacro(Ray2,vtkLeaderActor2D);
93  vtkGetObjectMacro(Arc,vtkLeaderActor2D);
95 
100  void BuildRepresentation() override;
101 
103 
106  void ReleaseGraphicsResources(vtkWindow *w) override;
107  int RenderOverlay(vtkViewport *viewport) override;
109 
110 protected:
112  ~vtkAngleRepresentation2D() override;
113 
114  // The pieces that make up the angle representations
118 
119 private:
121  void operator=(const vtkAngleRepresentation2D&) = delete;
122 };
123 
124 #endif
virtual void SetPoint1DisplayPosition(double pos[3])=0
Methods to Set/Get the coordinates of the three points defining this representation.
virtual void GetPoint1DisplayPosition(double pos[3])=0
Methods to Set/Get the coordinates of the three points defining this representation.
abstract specification for Viewports
Definition: vtkViewport.h:47
virtual void GetPoint2DisplayPosition(double pos[3])=0
Methods to Set/Get the coordinates of the three points defining this representation.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
virtual void GetPoint1WorldPosition(double pos[3])=0
Methods to Set/Get the coordinates of the three points defining this representation.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual void GetCenterWorldPosition(double pos[3])=0
Methods to Set/Get the coordinates of the three points defining this representation.
virtual void SetCenterDisplayPosition(double pos[3])=0
Methods to Set/Get the coordinates of the three points defining this representation.
create a leader with optional label and arrows
virtual void SetPoint2DisplayPosition(double pos[3])=0
Methods to Set/Get the coordinates of the three points defining this representation.
represent the vtkAngleWidget
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK methods.
virtual void GetCenterDisplayPosition(double pos[3])=0
Methods to Set/Get the coordinates of the three points defining this representation.
int RenderOverlay(vtkViewport *vtkNotUsed(viewport)) override
virtual double GetAngle()=0
This representation and all subclasses must keep an angle (in degrees) consistent with the state of t...
represent the vtkAngleWidget
represent surface properties of a 2D image
Definition: vtkProperty2D.h:40
virtual void GetPoint2WorldPosition(double pos[3])=0
Methods to Set/Get the coordinates of the three points defining this representation.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
void BuildRepresentation() override
These are methods that satisfy vtkWidgetRepresentation's API.