VTK  9.1.0
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=========================================================================*/
40#ifndef vtkAngleRepresentation2D_h
41#define vtkAngleRepresentation2D_h
42
44#include "vtkInteractionWidgetsModule.h" // For export macro
45
47class vtkProperty2D;
48
49class VTKINTERACTIONWIDGETS_EXPORT vtkAngleRepresentation2D : public vtkAngleRepresentation
50{
51public:
56
58
62 void PrintSelf(ostream& os, vtkIndent indent) override;
64
68 double GetAngle() override;
69
71
76 void GetPoint1WorldPosition(double pos[3]) override;
77 void GetCenterWorldPosition(double pos[3]) override;
78 void GetPoint2WorldPosition(double pos[3]) override;
79 void SetPoint1DisplayPosition(double pos[3]) override;
80 void SetCenterDisplayPosition(double pos[3]) override;
81 void SetPoint2DisplayPosition(double pos[3]) override;
82 void GetPoint1DisplayPosition(double pos[3]) override;
83 void GetCenterDisplayPosition(double pos[3]) override;
84 void GetPoint2DisplayPosition(double pos[3]) override;
86
88
93 vtkGetObjectMacro(Ray1, vtkLeaderActor2D);
94 vtkGetObjectMacro(Ray2, vtkLeaderActor2D);
95 vtkGetObjectMacro(Arc, vtkLeaderActor2D);
97
102 void BuildRepresentation() override;
103
105
109 int RenderOverlay(vtkViewport* viewport) override;
111
112protected:
115
116 // The pieces that make up the angle representations
120
121private:
123 void operator=(const vtkAngleRepresentation2D&) = delete;
124};
125
126#endif
represent the vtkAngleWidget
void GetPoint1WorldPosition(double pos[3]) override
Methods to Set/Get the coordinates of the two points defining this representation.
void GetCenterWorldPosition(double pos[3]) override
Methods to Set/Get the coordinates of the two points defining this representation.
void GetPoint2DisplayPosition(double pos[3]) override
Methods to Set/Get the coordinates of the two points defining this representation.
void GetPoint1DisplayPosition(double pos[3]) override
Methods to Set/Get the coordinates of the two points defining this representation.
void BuildRepresentation() override
Method defined by vtkWidgetRepresentation superclass and needed here.
static vtkAngleRepresentation2D * New()
Instantiate class.
int RenderOverlay(vtkViewport *viewport) override
Methods required by vtkProp superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK methods.
void SetCenterDisplayPosition(double pos[3]) override
Methods to Set/Get the coordinates of the two points defining this representation.
void GetPoint2WorldPosition(double pos[3]) override
Methods to Set/Get the coordinates of the two points defining this representation.
~vtkAngleRepresentation2D() override
double GetAngle() override
Satisfy the superclasses API.
void ReleaseGraphicsResources(vtkWindow *w) override
Methods required by vtkProp superclass.
void GetCenterDisplayPosition(double pos[3]) override
Methods to Set/Get the coordinates of the two points defining this representation.
void SetPoint1DisplayPosition(double pos[3]) override
Methods to Set/Get the coordinates of the two points defining this representation.
void SetPoint2DisplayPosition(double pos[3]) override
Methods to Set/Get the coordinates of the two points defining this representation.
represent the vtkAngleWidget
a simple class to control print indentation
Definition: vtkIndent.h:43
create a leader with optional label and arrows
represent surface properties of a 2D image
Definition: vtkProperty2D.h:47
abstract specification for Viewports
Definition: vtkViewport.h:56
window superclass for vtkRenderWindow
Definition: vtkWindow.h:45