VTK  9.3.0
vtkAngleRepresentation3D.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
22 #ifndef vtkAngleRepresentation3D_h
23 #define vtkAngleRepresentation3D_h
24 
25 #include "vtkAngleRepresentation.h"
26 #include "vtkInteractionWidgetsModule.h" // For export macro
27 
28 VTK_ABI_NAMESPACE_BEGIN
29 class vtkActor;
30 class vtkProperty;
31 class vtkPolyDataMapper;
32 class vtkLineSource;
33 class vtkArcSource;
34 class vtkFollower;
35 class vtkVectorText;
36 class vtkPolyDataMapper;
37 class vtkTextProperty;
38 
39 class VTKINTERACTIONWIDGETS_EXPORT vtkAngleRepresentation3D : public vtkAngleRepresentation
40 {
41 public:
46 
48 
52  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
58  double GetAngle() override;
59 
61 
66  void GetPoint1WorldPosition(double pos[3]) override;
67  void GetCenterWorldPosition(double pos[3]) override;
68  void GetPoint2WorldPosition(double pos[3]) override;
69  virtual void SetPoint1WorldPosition(double pos[3]);
70  void SetPoint1DisplayPosition(double pos[3]) override;
71  virtual void SetCenterWorldPosition(double pos[3]);
72  void SetCenterDisplayPosition(double pos[3]) override;
73  virtual void SetPoint2WorldPosition(double pos[3]);
74  void SetPoint2DisplayPosition(double pos[3]) override;
75  void GetPoint1DisplayPosition(double pos[3]) override;
76  void GetCenterDisplayPosition(double pos[3]) override;
77  void GetPoint2DisplayPosition(double pos[3]) override;
79 
81 
86  vtkGetObjectMacro(Ray1, vtkActor);
87  vtkGetObjectMacro(Ray2, vtkActor);
88  vtkGetObjectMacro(Arc, vtkActor);
89  vtkGetObjectMacro(TextActor, vtkFollower);
91 
93 
96  virtual void SetTextActorScale(double scale[3]);
97  virtual double* GetTextActorScale();
99 
104  void BuildRepresentation() override;
105 
107 
115 
116 protected:
119 
120  // The pieces that make up the angle representations
133  double Angle;
135  double TextPosition[3];
136 
137 private:
139  void operator=(const vtkAngleRepresentation3D&) = delete;
140 };
141 
142 VTK_ABI_NAMESPACE_END
143 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:41
represent the vtkAngleWidget
int RenderOpaqueGeometry(vtkViewport *) override
Methods required by vtkProp superclass.
void GetPoint1WorldPosition(double pos[3]) override
Methods to Set/Get the coordinates of the two points defining this representation.
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 BuildRepresentation() override
Method defined by vtkWidgetRepresentation superclass and needed here.
virtual void SetCenterWorldPosition(double pos[3])
Methods to Set/Get the coordinates of the two points defining this representation.
void SetCenterDisplayPosition(double pos[3]) override
Methods to Set/Get the coordinates of the two points defining this representation.
virtual void SetPoint2WorldPosition(double pos[3])
Methods to Set/Get the coordinates of the two points defining this representation.
virtual double * GetTextActorScale()
Scale text.
virtual void SetTextActorScale(double scale[3])
Scale text.
void SetPoint2DisplayPosition(double pos[3]) override
Methods to Set/Get the coordinates of the two points defining this representation.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK methods.
double GetAngle() override
Satisfy the superclasses API.
~vtkAngleRepresentation3D() override
void GetCenterWorldPosition(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.
void GetPoint2DisplayPosition(double pos[3]) override
Methods to Set/Get the coordinates of the two points defining this representation.
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
Methods required by vtkProp superclass.
virtual void SetPoint1WorldPosition(double pos[3])
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.
static vtkAngleRepresentation3D * New()
Instantiate class.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Methods required by vtkProp superclass.
void ReleaseGraphicsResources(vtkWindow *w) override
Methods required by vtkProp superclass.
represent the vtkAngleWidget
create a circular arc
Definition: vtkArcSource.h:38
a subclass of actor that always faces the camera
Definition: vtkFollower.h:33
a simple class to control print indentation
Definition: vtkIndent.h:29
create a line defined by two end points
Definition: vtkLineSource.h:53
map vtkPolyData to graphics primitives
represent surface properties of a geometric object
Definition: vtkProperty.h:57
represent text properties.
create polygonal text
Definition: vtkVectorText.h:37
abstract specification for Viewports
Definition: vtkViewport.h:45
window superclass for vtkRenderWindow
Definition: vtkWindow.h:28
@ scale
Definition: vtkX3D.h:229
int vtkTypeBool
Definition: vtkABI.h:64