VTK
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 =========================================================================*/
34 #ifndef vtkAngleRepresentation3D_h
35 #define vtkAngleRepresentation3D_h
36 
37 #include "vtkInteractionWidgetsModule.h" // For export macro
38 #include "vtkAngleRepresentation.h"
39 
40 class vtkActor;
41 class vtkProperty;
42 class vtkPolyDataMapper;
43 class vtkLineSource;
44 class vtkArcSource;
45 class vtkFollower;
46 class vtkVectorText;
47 class vtkPolyDataMapper;
48 class vtkTextProperty;
49 
50 class VTKINTERACTIONWIDGETS_EXPORT vtkAngleRepresentation3D : public vtkAngleRepresentation
51 {
52 public:
57 
59 
63  void PrintSelf(ostream& os, vtkIndent indent) override;
65 
69  double GetAngle() override;
70 
72 
77  void GetPoint1WorldPosition(double pos[3]) override;
78  void GetCenterWorldPosition(double pos[3]) override;
79  void GetPoint2WorldPosition(double pos[3]) override;
80  virtual void SetPoint1WorldPosition(double pos[3]);
81  void SetPoint1DisplayPosition(double pos[3]) override;
82  virtual void SetCenterWorldPosition(double pos[3]);
83  void SetCenterDisplayPosition(double pos[3]) override;
84  virtual void SetPoint2WorldPosition(double pos[3]);
85  void SetPoint2DisplayPosition(double pos[3]) override;
86  void GetPoint1DisplayPosition(double pos[3]) override;
87  void GetCenterDisplayPosition(double pos[3]) override;
88  void GetPoint2DisplayPosition(double pos[3]) override;
90 
92 
97  vtkGetObjectMacro(Ray1,vtkActor);
98  vtkGetObjectMacro(Ray2,vtkActor);
99  vtkGetObjectMacro(Arc,vtkActor);
100  vtkGetObjectMacro(TextActor,vtkFollower);
102 
104 
107  virtual void SetTextActorScale( double scale[3] );
108  virtual double * GetTextActorScale();
110 
115  void BuildRepresentation() override;
116 
118 
126 
127 protected:
130 
131  // The pieces that make up the angle representations
144  double Angle;
146  double TextPosition[3];
147 
148 private:
150  void operator=(const vtkAngleRepresentation3D&) = delete;
151 };
152 
153 #endif
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:43
vtkFollower
a subclass of actor that always faces the camera
Definition: vtkFollower.h:47
vtkAngleRepresentation3D::TextMapper
vtkPolyDataMapper * TextMapper
Definition: vtkAngleRepresentation3D.h:142
vtkAngleRepresentation3D::GetCenterDisplayPosition
void GetCenterDisplayPosition(double pos[3]) override
vtkX3D::scale
@ scale
Definition: vtkX3D.h:229
vtkAngleRepresentation3D::Ray2
vtkActor * Ray2
Definition: vtkAngleRepresentation3D.h:139
vtkAngleRepresentation3D::RenderOpaqueGeometry
int RenderOpaqueGeometry(vtkViewport *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkAngleRepresentation3D::New
static vtkAngleRepresentation3D * New()
Instantiate class.
vtkAngleRepresentation.h
vtkAngleRepresentation3D::SetPoint2WorldPosition
virtual void SetPoint2WorldPosition(double pos[3])
vtkAngleRepresentation3D::HasTranslucentPolygonalGeometry
vtkTypeBool HasTranslucentPolygonalGeometry() override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkAngleRepresentation3D::ArcSource
vtkArcSource * ArcSource
Definition: vtkAngleRepresentation3D.h:134
vtkAngleRepresentation3D::SetPoint1DisplayPosition
void SetPoint1DisplayPosition(double pos[3]) override
vtkAngleRepresentation3D::Line1Source
vtkLineSource * Line1Source
Definition: vtkAngleRepresentation3D.h:132
vtkAngleRepresentation3D::~vtkAngleRepresentation3D
~vtkAngleRepresentation3D() override
vtkAngleRepresentation3D::RenderTranslucentPolygonalGeometry
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
vtkAngleRepresentation3D::Line1Mapper
vtkPolyDataMapper * Line1Mapper
Definition: vtkAngleRepresentation3D.h:135
vtkVectorText
create polygonal text
Definition: vtkVectorText.h:48
vtkArcSource
create a circular arc
Definition: vtkArcSource.h:49
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
vtkAngleRepresentation3D::SetPoint2DisplayPosition
void SetPoint2DisplayPosition(double pos[3]) override
vtkAngleRepresentation3D::ArcMapper
vtkPolyDataMapper * ArcMapper
Definition: vtkAngleRepresentation3D.h:137
vtkAngleRepresentation3D::vtkAngleRepresentation3D
vtkAngleRepresentation3D()
vtkAngleRepresentation3D::ScaleInitialized
bool ScaleInitialized
Definition: vtkAngleRepresentation3D.h:145
vtkAngleRepresentation3D::GetPoint2DisplayPosition
void GetPoint2DisplayPosition(double pos[3]) override
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkAngleRepresentation3D::TextActor
vtkFollower * TextActor
Definition: vtkAngleRepresentation3D.h:141
vtkAngleRepresentation3D::Angle
double Angle
Definition: vtkAngleRepresentation3D.h:144
vtkAngleRepresentation3D::SetCenterDisplayPosition
void SetCenterDisplayPosition(double pos[3]) override
vtkLineSource
create a line defined by two end points
Definition: vtkLineSource.h:43
vtkAngleRepresentation3D::Line2Source
vtkLineSource * Line2Source
Definition: vtkAngleRepresentation3D.h:133
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:48
vtkAngleRepresentation3D
represent the vtkAngleWidget
Definition: vtkAngleRepresentation3D.h:51
vtkAngleRepresentation3D::SetTextActorScale
virtual void SetTextActorScale(double scale[3])
Scale text.
vtkAngleRepresentation3D::GetPoint1WorldPosition
void GetPoint1WorldPosition(double pos[3]) override
Methods to Set/Get the coordinates of the two points defining this representation.
vtkTextProperty
represent text properties.
Definition: vtkTextProperty.h:40
vtkAngleRepresentation3D::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *w) override
Methods required by vtkProp superclass.
vtkAngleRepresentation3D::SetPoint1WorldPosition
virtual void SetPoint1WorldPosition(double pos[3])
vtkAngleRepresentation3D::Ray1
vtkActor * Ray1
Definition: vtkAngleRepresentation3D.h:138
vtkAngleRepresentation3D::Arc
vtkActor * Arc
Definition: vtkAngleRepresentation3D.h:140
vtkAngleRepresentation3D::BuildRepresentation
void BuildRepresentation() override
Method defined by vtkWidgetRepresentation superclass and needed here.
vtkAngleRepresentation3D::Line2Mapper
vtkPolyDataMapper * Line2Mapper
Definition: vtkAngleRepresentation3D.h:136
vtkProperty
represent surface properties of a geometric object
Definition: vtkProperty.h:67
vtkAngleRepresentation3D::SetCenterWorldPosition
virtual void SetCenterWorldPosition(double pos[3])
vtkAngleRepresentation3D::GetAngle
double GetAngle() override
Satisfy the superclasses API.
vtkAngleRepresentation3D::GetPoint2WorldPosition
void GetPoint2WorldPosition(double pos[3]) override
vtkAngleRepresentation3D::GetCenterWorldPosition
void GetCenterWorldPosition(double pos[3]) override
vtkAngleRepresentation3D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAngleRepresentation3D::TextInput
vtkVectorText * TextInput
Definition: vtkAngleRepresentation3D.h:143
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkAngleRepresentation3D::GetPoint1DisplayPosition
void GetPoint1DisplayPosition(double pos[3]) override
vtkAngleRepresentation3D::GetTextActorScale
virtual double * GetTextActorScale()
vtkAngleRepresentation
represent the vtkAngleWidget
Definition: vtkAngleRepresentation.h:40