FreeMat
|
Section: Visualization Toolkit Widget Classes
The vtkAngleRepresentation2D is a representation for the vtkAngleWidget. This representation consists of two rays and three vtkHandleRepresentations to place and manipulate the three points defining the angle representation. (Note: the three points are referred to as Point1, Center, and Point2, at the two end points (Point1 and Point2) and Center (around which the angle is measured). This particular implementation is a 2D representation, meaning that it draws in the overlay plane.
To create an instance of class vtkAngleRepresentation2D, simply invoke its constructor as follows
obj = vtkAngleRepresentation2D
The class vtkAngleRepresentation2D has several methods that can be used. They are listed below. Note that the documentation is translated automatically from the VTK sources, and may not be completely intelligible. When in doubt, consult the VTK website. In the methods listed below, obj
is an instance of the vtkAngleRepresentation2D class.
string = obj.GetClassName ()
- Standard VTK methods. int = obj.IsA (string name)
- Standard VTK methods. vtkAngleRepresentation2D = obj.NewInstance ()
- Standard VTK methods. vtkAngleRepresentation2D = obj.SafeDownCast (vtkObject o)
- Standard VTK methods. double = obj.GetAngle ()
- Satisfy the superclasses API. obj.GetPoint1WorldPosition (double pos[3])
- Methods to Set/Get the coordinates of the two points defining this representation. Note that methods are available for both display and world coordinates. obj.GetCenterWorldPosition (double pos[3])
- Methods to Set/Get the coordinates of the two points defining this representation. Note that methods are available for both display and world coordinates. obj.GetPoint2WorldPosition (double pos[3])
- Methods to Set/Get the coordinates of the two points defining this representation. Note that methods are available for both display and world coordinates. obj.SetPoint1DisplayPosition (double pos[3])
- Methods to Set/Get the coordinates of the two points defining this representation. Note that methods are available for both display and world coordinates. obj.SetCenterDisplayPosition (double pos[3])
- Methods to Set/Get the coordinates of the two points defining this representation. Note that methods are available for both display and world coordinates. obj.SetPoint2DisplayPosition (double pos[3])
- Methods to Set/Get the coordinates of the two points defining this representation. Note that methods are available for both display and world coordinates. obj.GetPoint1DisplayPosition (double pos[3])
- Methods to Set/Get the coordinates of the two points defining this representation. Note that methods are available for both display and world coordinates. obj.GetCenterDisplayPosition (double pos[3])
- Methods to Set/Get the coordinates of the two points defining this representation. Note that methods are available for both display and world coordinates. obj.GetPoint2DisplayPosition (double pos[3])
- Methods to Set/Get the coordinates of the two points defining this representation. Note that methods are available for both display and world coordinates. vtkLeaderActor2D = obj.GetRay1 ()
- Set/Get the three leaders used to create this representation. By obtaining these leaders the user can set the appropriate properties, etc. vtkLeaderActor2D = obj.GetRay2 ()
- Set/Get the three leaders used to create this representation. By obtaining these leaders the user can set the appropriate properties, etc. vtkLeaderActor2D = obj.GetArc ()
- Set/Get the three leaders used to create this representation. By obtaining these leaders the user can set the appropriate properties, etc. obj.BuildRepresentation ()
- Method defined by vtkWidgetRepresentation superclass and needed here. obj.ReleaseGraphicsResources (vtkWindow w)
- Methods required by vtkProp superclass. int = obj.RenderOverlay (vtkViewport viewport)
- Methods required by vtkProp superclass.