VTK  9.1.0
vtkAngleRepresentation3D.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkAngleRepresentation3D.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=========================================================================*/
31#ifndef vtkAngleRepresentation3D_h
32#define vtkAngleRepresentation3D_h
33
35#include "vtkInteractionWidgetsModule.h" // For export macro
36
37class vtkActor;
38class vtkProperty;
40class vtkLineSource;
41class vtkArcSource;
42class vtkFollower;
43class vtkVectorText;
45class vtkTextProperty;
46
47class VTKINTERACTIONWIDGETS_EXPORT vtkAngleRepresentation3D : public vtkAngleRepresentation
48{
49public:
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 virtual void SetPoint1WorldPosition(double pos[3]);
78 void SetPoint1DisplayPosition(double pos[3]) override;
79 virtual void SetCenterWorldPosition(double pos[3]);
80 void SetCenterDisplayPosition(double pos[3]) override;
81 virtual void SetPoint2WorldPosition(double pos[3]);
82 void SetPoint2DisplayPosition(double pos[3]) override;
83 void GetPoint1DisplayPosition(double pos[3]) override;
84 void GetCenterDisplayPosition(double pos[3]) override;
85 void GetPoint2DisplayPosition(double pos[3]) override;
87
89
94 vtkGetObjectMacro(Ray1, vtkActor);
95 vtkGetObjectMacro(Ray2, vtkActor);
96 vtkGetObjectMacro(Arc, vtkActor);
97 vtkGetObjectMacro(TextActor, vtkFollower);
99
101
104 virtual void SetTextActorScale(double scale[3]);
105 virtual double* GetTextActorScale();
107
112 void BuildRepresentation() override;
113
115
123
124protected:
127
128 // The pieces that make up the angle representations
141 double Angle;
143 double TextPosition[3];
144
145private:
147 void operator=(const vtkAngleRepresentation3D&) = delete;
148};
149
150#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:155
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.
virtual double * GetTextActorScale()
Scale text.
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 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.
static vtkAngleRepresentation3D * New()
Instantiate class.
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.
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:46
a subclass of actor that always faces the camera
Definition: vtkFollower.h:120
a simple class to control print indentation
Definition: vtkIndent.h:113
create a line defined by two end points
map vtkPolyData to graphics primitives
represent surface properties of a geometric object
Definition: vtkProperty.h:171
represent text properties.
create polygonal text
abstract specification for Viewports
Definition: vtkViewport.h:47
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39
int vtkTypeBool
Definition: vtkABI.h:69