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
39
40class vtkActor;
41class vtkProperty;
43class vtkLineSource;
44class vtkArcSource;
45class vtkFollower;
46class vtkVectorText;
48class vtkTextProperty;
49
50class VTKINTERACTIONWIDGETS_EXPORT vtkAngleRepresentation3D : public vtkAngleRepresentation
51{
52public:
57
59
63 void PrintSelf(ostream& os, vtkIndent indent);
65
69 virtual double GetAngle();
70
72
77 virtual void GetPoint1WorldPosition(double pos[3]);
78 virtual void GetCenterWorldPosition(double pos[3]);
79 virtual void GetPoint2WorldPosition(double pos[3]);
80 virtual void SetPoint1WorldPosition(double pos[3]);
81 virtual void SetPoint1DisplayPosition(double pos[3]);
82 virtual void SetCenterWorldPosition(double pos[3]);
83 virtual void SetCenterDisplayPosition(double pos[3]);
84 virtual void SetPoint2WorldPosition(double pos[3]);
85 virtual void SetPoint2DisplayPosition(double pos[3]);
86 virtual void GetPoint1DisplayPosition(double pos[3]);
87 virtual void GetCenterDisplayPosition(double pos[3]);
88 virtual void GetPoint2DisplayPosition(double pos[3]);
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
116
118
126
127protected:
130
131 // The pieces that make up the angle representations
144 double Angle;
146 double TextPosition[3];
147
148private:
149 vtkAngleRepresentation3D(const vtkAngleRepresentation3D&) VTK_DELETE_FUNCTION;
150 void operator=(const vtkAngleRepresentation3D&) VTK_DELETE_FUNCTION;
151};
152
153#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
represent the vtkAngleWidget
virtual void GetPoint2DisplayPosition(double pos[3])
virtual void ReleaseGraphicsResources(vtkWindow *w)
Methods required by vtkProp superclass.
virtual double * GetTextActorScale()
virtual void GetCenterWorldPosition(double pos[3])
virtual void GetCenterDisplayPosition(double pos[3])
virtual void GetPoint1WorldPosition(double pos[3])
Methods to Set/Get the coordinates of the two points defining this representation.
virtual void SetCenterWorldPosition(double pos[3])
virtual void SetPoint2WorldPosition(double pos[3])
void BuildRepresentation()
Method defined by vtkWidgetRepresentation superclass and needed here.
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
virtual void SetTextActorScale(double scale[3])
Scale text.
virtual void SetCenterDisplayPosition(double pos[3])
virtual void GetPoint1DisplayPosition(double pos[3])
virtual void SetPoint1DisplayPosition(double pos[3])
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
static vtkAngleRepresentation3D * New()
Instantiate class.
virtual void SetPoint1WorldPosition(double pos[3])
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void SetPoint2DisplayPosition(double pos[3])
virtual void GetPoint2WorldPosition(double pos[3])
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
virtual double GetAngle()
Satisfy the superclasses API.
represent the vtkAngleWidget
create a circular arc
Definition: vtkArcSource.h:49
a subclass of actor that always faces the camera
Definition: vtkFollower.h:47
a simple class to control print indentation
Definition: vtkIndent.h:40
create a line defined by two end points
Definition: vtkLineSource.h:43
map vtkPolyData to graphics primitives
represent surface properties of a geometric object
Definition: vtkProperty.h:65
represent text properties.
create polygonal text
Definition: vtkVectorText.h:48
abstract specification for Viewports
Definition: vtkViewport.h:48
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
@ scale
Definition: vtkX3D.h:229