VTK  9.0.20201030
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 =========================================================================*/
31 #ifndef vtkAngleRepresentation2D_h
32 #define vtkAngleRepresentation2D_h
33 
34 #include "vtkAngleRepresentation.h"
35 #include "vtkInteractionWidgetsModule.h" // For export macro
36 
37 class vtkLeaderActor2D;
38 class vtkProperty2D;
39 
40 class VTKINTERACTIONWIDGETS_EXPORT vtkAngleRepresentation2D : public vtkAngleRepresentation
41 {
42 public:
46  static vtkAngleRepresentation2D* New();
47 
49 
53  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
59  double GetAngle() override;
60 
62 
67  void GetPoint1WorldPosition(double pos[3]) override;
68  void GetCenterWorldPosition(double pos[3]) override;
69  void GetPoint2WorldPosition(double pos[3]) override;
70  void SetPoint1DisplayPosition(double pos[3]) override;
71  void SetCenterDisplayPosition(double pos[3]) override;
72  void SetPoint2DisplayPosition(double pos[3]) override;
73  void GetPoint1DisplayPosition(double pos[3]) override;
74  void GetCenterDisplayPosition(double pos[3]) override;
75  void GetPoint2DisplayPosition(double pos[3]) override;
77 
79 
84  vtkGetObjectMacro(Ray1, vtkLeaderActor2D);
85  vtkGetObjectMacro(Ray2, vtkLeaderActor2D);
86  vtkGetObjectMacro(Arc, vtkLeaderActor2D);
88 
93  void BuildRepresentation() override;
94 
96 
99  void ReleaseGraphicsResources(vtkWindow* w) override;
100  int RenderOverlay(vtkViewport* viewport) override;
102 
103 protected:
105  ~vtkAngleRepresentation2D() override;
106 
107  // The pieces that make up the angle representations
111 
112 private:
114  void operator=(const vtkAngleRepresentation2D&) = delete;
115 };
116 
117 #endif
vtkAngleRepresentation::GetCenterDisplayPosition
virtual void GetCenterDisplayPosition(double pos[3])=0
vtkAngleRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAngleRepresentation.h
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkAngleRepresentation::SetPoint2DisplayPosition
virtual void SetPoint2DisplayPosition(double pos[3])=0
vtkAngleRepresentation2D
represent the vtkAngleWidget
Definition: vtkAngleRepresentation2D.h:40
vtkAngleRepresentation::BuildRepresentation
void BuildRepresentation() override
These are methods that satisfy vtkWidgetRepresentation's API.
vtkAngleRepresentation::GetAngle
virtual double GetAngle()=0
This representation and all subclasses must keep an angle (in degrees) consistent with the state of t...
vtkAngleRepresentation2D::Ray1
vtkLeaderActor2D * Ray1
Definition: vtkAngleRepresentation2D.h:108
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
vtkAngleRepresentation2D::Ray2
vtkLeaderActor2D * Ray2
Definition: vtkAngleRepresentation2D.h:109
vtkWidgetRepresentation::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkWidgetRepresentation.h:213
vtkAngleRepresentation::GetPoint2WorldPosition
virtual void GetPoint2WorldPosition(double pos[3])=0
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:44
vtkProperty2D
represent surface properties of a 2D image
Definition: vtkProperty2D.h:37
vtkAngleRepresentation::SetPoint1DisplayPosition
virtual void SetPoint1DisplayPosition(double pos[3])=0
vtkWidgetRepresentation::RenderOverlay
int RenderOverlay(vtkViewport *vtkNotUsed(viewport)) override
Definition: vtkWidgetRepresentation.h:214
vtkAngleRepresentation::GetPoint1DisplayPosition
virtual void GetPoint1DisplayPosition(double pos[3])=0
vtkAngleRepresentation::GetPoint2DisplayPosition
virtual void GetPoint2DisplayPosition(double pos[3])=0
vtkAngleRepresentation::GetCenterWorldPosition
virtual void GetCenterWorldPosition(double pos[3])=0
vtkAngleRepresentation2D::Arc
vtkLeaderActor2D * Arc
Definition: vtkAngleRepresentation2D.h:110
vtkLeaderActor2D
create a leader with optional label and arrows
Definition: vtkLeaderActor2D.h:56
vtkAngleRepresentation::SetCenterDisplayPosition
virtual void SetCenterDisplayPosition(double pos[3])=0
vtkAngleRepresentation
represent the vtkAngleWidget
Definition: vtkAngleRepresentation.h:38
vtkAngleRepresentation::GetPoint1WorldPosition
virtual void GetPoint1WorldPosition(double pos[3])=0
Methods to Set/Get the coordinates of the three points defining this representation.