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 =========================================================================*/
33 #ifndef vtkAngleRepresentation3D_h
34 #define vtkAngleRepresentation3D_h
35 
36 #include "vtkInteractionWidgetsModule.h" // For export macro
37 #include "vtkAngleRepresentation.h"
38 
39 class vtkActor;
40 class vtkProperty;
41 class vtkPolyDataMapper;
42 class vtkLineSource;
43 class vtkArcSource;
44 class vtkFollower;
45 class vtkVectorText;
46 class vtkPolyDataMapper;
47 class vtkTextProperty;
48 
50 {
51 public:
53  static vtkAngleRepresentation3D *New();
54 
56 
58  void PrintSelf(ostream& os, vtkIndent indent);
60 
62  virtual double GetAngle();
63 
65 
68  virtual void GetPoint1WorldPosition(double pos[3]);
69  virtual void GetCenterWorldPosition(double pos[3]);
70  virtual void GetPoint2WorldPosition(double pos[3]);
71  virtual void SetPoint1WorldPosition(double pos[3]);
72  virtual void SetPoint1DisplayPosition(double pos[3]);
73  virtual void SetCenterWorldPosition(double pos[3]);
74  virtual void SetCenterDisplayPosition(double pos[3]);
75  virtual void SetPoint2WorldPosition(double pos[3]);
76  virtual void SetPoint2DisplayPosition(double pos[3]);
77  virtual void GetPoint1DisplayPosition(double pos[3]);
78  virtual void GetCenterDisplayPosition(double pos[3]);
79  virtual void GetPoint2DisplayPosition(double pos[3]);
81 
83 
86  vtkGetObjectMacro(Ray1,vtkActor);
87  vtkGetObjectMacro(Ray2,vtkActor);
88  vtkGetObjectMacro(Arc,vtkActor);
89  vtkGetObjectMacro(TextActor,vtkFollower);
91 
93 
94  virtual void SetTextActorScale( double scale[3] );
95  virtual double * GetTextActorScale();
97 
99  void BuildRepresentation();
100 
102 
103  virtual void ReleaseGraphicsResources(vtkWindow *w);
104  virtual int RenderOpaqueGeometry(vtkViewport*);
106  virtual int HasTranslucentPolygonalGeometry();
108 
109 protected:
112 
113  // The pieces that make up the angle representations
126  double Angle;
128  double TextPosition[3];
129 
130 private:
131  vtkAngleRepresentation3D(const vtkAngleRepresentation3D&); //Not implemented
132  void operator=(const vtkAngleRepresentation3D&); //Not implemented
133 };
134 
135 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
virtual void SetPoint1DisplayPosition(double pos[3])=0
virtual void GetPoint1DisplayPosition(double pos[3])=0
abstract specification for Viewports
Definition: vtkViewport.h:46
represent surface properties of a geometric object
Definition: vtkProperty.h:63
represent the vtkAngleWidget
virtual void ReleaseGraphicsResources(vtkWindow *)
virtual void GetPoint2DisplayPosition(double pos[3])=0
create a circular arc between two end points
Definition: vtkArcSource.h:42
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
#define VTKINTERACTIONWIDGETS_EXPORT
virtual void GetPoint1WorldPosition(double pos[3])=0
virtual int HasTranslucentPolygonalGeometry()
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void GetCenterWorldPosition(double pos[3])=0
virtual void SetCenterDisplayPosition(double pos[3])=0
void PrintSelf(ostream &os, vtkIndent indent)
virtual void SetPoint2DisplayPosition(double pos[3])=0
represent the vtkAngleWidget
virtual void GetCenterDisplayPosition(double pos[3])=0
represent text properties.
create a line defined by two end points
Definition: vtkLineSource.h:41
map vtkPolyData to graphics primitives
virtual int RenderOpaqueGeometry(vtkViewport *vtkNotUsed(viewport))
a subclass of actor that always faces the camera
Definition: vtkFollower.h:45
virtual void BuildRepresentation()
virtual double GetAngle()=0
virtual void GetPoint2WorldPosition(double pos[3])=0
static vtkObject * New()
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *vtkNotUsed(viewport))
create polygonal text
Definition: vtkVectorText.h:46