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:
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 
91 
93 
94  virtual void SetTextActorScale( double scale[3] );
95  virtual double * GetTextActorScale();
97 
100 
102 
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
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:42
vtkAngleRepresentation3D::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
vtkAngleRepresentation3D::~vtkAngleRepresentation3D
~vtkAngleRepresentation3D()
vtkFollower
a subclass of actor that always faces the camera
Definition: vtkFollower.h:46
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkAngleRepresentation3D::GetCenterDisplayPosition
virtual void GetCenterDisplayPosition(double pos[3])
vtkAngleRepresentation3D::TextMapper
vtkPolyDataMapper * TextMapper
Definition: vtkAngleRepresentation3D.h:124
vtkAngleRepresentation3D::SetPoint2DisplayPosition
virtual void SetPoint2DisplayPosition(double pos[3])
vtkAngleRepresentation3D::Ray2
vtkActor * Ray2
Definition: vtkAngleRepresentation3D.h:121
vtkAngleRepresentation3D::New
static vtkAngleRepresentation3D * New()
vtkAngleRepresentation3D::SetCenterDisplayPosition
virtual void SetCenterDisplayPosition(double pos[3])
vtkAngleRepresentation.h
vtkAngleRepresentation3D::SetPoint2WorldPosition
virtual void SetPoint2WorldPosition(double pos[3])
vtkAngleRepresentation3D::ArcSource
vtkArcSource * ArcSource
Definition: vtkAngleRepresentation3D.h:116
vtkAngleRepresentation3D::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *)
vtkgl::scale
GLenum GLenum GLenum GLenum GLenum scale
Definition: vtkgl.h:15942
vtkAngleRepresentation3D::Line1Source
vtkLineSource * Line1Source
Definition: vtkAngleRepresentation3D.h:114
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkInteractionWidgetsModule.h
vtkAngleRepresentation3D::Line1Mapper
vtkPolyDataMapper * Line1Mapper
Definition: vtkAngleRepresentation3D.h:117
vtkVectorText
create polygonal text
Definition: vtkVectorText.h:47
vtkArcSource
create an arc between two end points
Definition: vtkArcSource.h:42
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkAngleRepresentation3D::ArcMapper
vtkPolyDataMapper * ArcMapper
Definition: vtkAngleRepresentation3D.h:119
vtkAngleRepresentation3D::vtkAngleRepresentation3D
vtkAngleRepresentation3D()
vtkAngleRepresentation3D::ScaleInitialized
bool ScaleInitialized
Definition: vtkAngleRepresentation3D.h:127
vtkAngleRepresentation3D::GetPoint1WorldPosition
virtual void GetPoint1WorldPosition(double pos[3])
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
vtkAngleRepresentation3D::SetPoint1DisplayPosition
virtual void SetPoint1DisplayPosition(double pos[3])
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkAngleRepresentation3D::TextActor
vtkFollower * TextActor
Definition: vtkAngleRepresentation3D.h:123
vtkAngleRepresentation3D::Angle
double Angle
Definition: vtkAngleRepresentation3D.h:126
vtkAngleRepresentation3D::GetPoint2DisplayPosition
virtual void GetPoint2DisplayPosition(double pos[3])
vtkLineSource
create a line defined by two end points
Definition: vtkLineSource.h:42
vtkAngleRepresentation3D::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
vtkAngleRepresentation3D::Line2Source
vtkLineSource * Line2Source
Definition: vtkAngleRepresentation3D.h:115
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkAngleRepresentation3D
represent the vtkAngleWidget
Definition: vtkAngleRepresentation3D.h:50
vtkAngleRepresentation3D::SetTextActorScale
virtual void SetTextActorScale(double scale[3])
vtkTextProperty
represent text properties.
Definition: vtkTextProperty.h:39
vtkAngleRepresentation3D::GetAngle
virtual double GetAngle()
vtkAngleRepresentation3D::SetPoint1WorldPosition
virtual void SetPoint1WorldPosition(double pos[3])
vtkAngleRepresentation3D::GetCenterWorldPosition
virtual void GetCenterWorldPosition(double pos[3])
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition: vtkInteractionWidgetsModule.h:15
vtkAngleRepresentation3D::Ray1
vtkActor * Ray1
Definition: vtkAngleRepresentation3D.h:120
vtkAngleRepresentation3D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkAngleRepresentation3D::GetPoint1DisplayPosition
virtual void GetPoint1DisplayPosition(double pos[3])
vtkAngleRepresentation3D::Arc
vtkActor * Arc
Definition: vtkAngleRepresentation3D.h:122
vtkAngleRepresentation3D::Line2Mapper
vtkPolyDataMapper * Line2Mapper
Definition: vtkAngleRepresentation3D.h:118
vtkProperty
represent surface properties of a geometric object
Definition: vtkProperty.h:64
vtkAngleRepresentation3D::SetCenterWorldPosition
virtual void SetCenterWorldPosition(double pos[3])
vtkgl::w
GLubyte GLubyte GLubyte GLubyte w
Definition: vtkgl.h:12054
vtkAngleRepresentation3D::GetPoint2WorldPosition
virtual void GetPoint2WorldPosition(double pos[3])
vtkAngleRepresentation3D::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *w)
vtkAngleRepresentation3D::TextInput
vtkVectorText * TextInput
Definition: vtkAngleRepresentation3D.h:125
vtkAngleRepresentation3D::BuildRepresentation
void BuildRepresentation()
vtkAngleRepresentation3D::GetTextActorScale
virtual double * GetTextActorScale()
vtkAngleRepresentation
represent the vtkAngleWidget
Definition: vtkAngleRepresentation.h:39