ActiViz .NET  5.8.0
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Private Member Functions | Static Private Member Functions
Kitware.VTK.vtkAngleWidget Class Reference

vtkAngleWidget - measure the angle between two rays (defined by three points) More...

Inheritance diagram for Kitware.VTK.vtkAngleWidget:
[legend]
Collaboration diagram for Kitware.VTK.vtkAngleWidget:
[legend]

List of all members.

Public Types

enum  Define_WrapperEnum { Define = 1, Manipulate = 2, Start = 0 }
 Enum defining the state of the widget. By default the widget is in Start mode, and expects to be interactively placed. While placing the points the widget transitions to Define state. Once placed, the widget enters the Manipulate state. More...

Public Member Functions

 vtkAngleWidget (IntPtr rawCppThis, bool callDisposalMethod, bool strong)
 Automatically generated constructor - called from generated code. DO NOT call directly.
 vtkAngleWidget ()
 Instantiate this class.
override void CreateDefaultRepresentation ()
 Create the default widget representation if one is not set.
vtkAngleRepresentation GetAngleRepresentation ()
 Return the representation as a vtkAngleRepresentation.
virtual int GetWidgetState ()
 Return the current widget state.
override int IsA (string type)
 Standard methods for a VTK class.
int IsAngleValid ()
 A flag indicates whether the angle is valid. The angle value only becomes valid after two of the three points are placed.
new vtkAngleWidget NewInstance ()
 Standard methods for a VTK class.
override void SetEnabled (int arg0)
 The method for activiating and deactiviating this widget. This method must be overridden because it is a composite widget and does more than its superclasses' vtkAbstractWidget::SetEnabled() method.
override void SetProcessEvents (int arg0)
 Methods to change the whether the widget responds to interaction. Overridden to pass the state to component widgets.
void SetRepresentation (vtkAngleRepresentation r)
 Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene. Note that the representation is a subclass of vtkProp so it can be added to the renderer independent of the widget.
virtual void SetWidgetStateToManipulate ()
 Set the state of the widget. If the state is set to "Manipulate" then it is assumed that the widget and its representation will be initialized programmatically and is not interactively placed. Initially the widget state is set to "Start" which means nothing will appear and the user must interactively place the widget with repeated mouse selections. Set the state to "Start" if you want interactive placement. Generally state changes must be followed by a Render() for things to visually take effect.
virtual void SetWidgetStateToStart ()
 Set the state of the widget. If the state is set to "Manipulate" then it is assumed that the widget and its representation will be initialized programmatically and is not interactively placed. Initially the widget state is set to "Start" which means nothing will appear and the user must interactively place the widget with repeated mouse selections. Set the state to "Start" if you want interactive placement. Generally state changes must be followed by a Render() for things to visually take effect.

Static Public Member Functions

static new vtkAngleWidget New ()
 Instantiate this class.
static new int IsTypeOf (string type)
 Standard methods for a VTK class.
static new vtkAngleWidget SafeDownCast (vtkObjectBase o)
 Standard methods for a VTK class.

Public Attributes

new const string MRFullTypeName = "Kitware.VTK.vtkAngleWidget"
 Automatically generated type registration mechanics.

Static Public Attributes

static new readonly string MRClassNameKey = "14vtkAngleWidget"
 Automatically generated type registration mechanics.

Protected Member Functions

override void Dispose (bool disposing)
 Automatically generated protected Dispose method - called from public Dispose or the C# destructor. DO NOT call directly.

Private Member Functions

static internal IntPtr vtkAngleWidget_New (ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal void vtkAngleWidget_CreateDefaultRepresentation_01 (HandleRef pThis)
static internal IntPtr vtkAngleWidget_GetAngleRepresentation_02 (HandleRef pThis, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal int vtkAngleWidget_GetWidgetState_03 (HandleRef pThis)
static internal int vtkAngleWidget_IsA_04 (HandleRef pThis, string type)
static internal int vtkAngleWidget_IsAngleValid_05 (HandleRef pThis)
static internal int vtkAngleWidget_IsTypeOf_06 (string type)
static internal IntPtr vtkAngleWidget_NewInstance_08 (HandleRef pThis, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal IntPtr vtkAngleWidget_SafeDownCast_09 (HandleRef o, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal void vtkAngleWidget_SetEnabled_10 (HandleRef pThis, int arg0)
static internal void vtkAngleWidget_SetProcessEvents_11 (HandleRef pThis, int arg0)
static internal void vtkAngleWidget_SetRepresentation_12 (HandleRef pThis, HandleRef r)
static internal void vtkAngleWidget_SetWidgetStateToManipulate_13 (HandleRef pThis)
static internal void vtkAngleWidget_SetWidgetStateToStart_14 (HandleRef pThis)

Static Private Member Functions

static vtkAngleWidget ()
 Automatically generated type registration mechanics.

Detailed Description

vtkAngleWidget - measure the angle between two rays (defined by three points)

Description The vtkAngleWidget is used to measure the angle between two rays (defined by three points). The three points (two end points and a center) can be positioned independently, and when they are released, a special PlacePointEvent is invoked so that special operations may be take to reposition the point (snap to grid, etc.) The widget has two different modes of interaction: when initially defined (i.e., placing the three points) and then a manipulate mode (adjusting the position of the three points).

To use this widget, specify an instance of vtkAngleWidget and a representation (a subclass of vtkAngleRepresentation). The widget is implemented using three instances of vtkHandleWidget which are used to position the three points. The representations for these handle widgets are provided by the vtkAngleRepresentation.

Event Bindings By default, the widget responds to the following VTK events (i.e., it watches the vtkRenderWindowInteractor for these events): <pre> LeftButtonPressEvent - add a point or select a handle MouseMoveEvent - position the second or third point, or move a handle LeftButtonReleaseEvent - release the selected handle </pre>

Note that the event bindings described above can be changed using this class's vtkWidgetEventTranslator. This class translates VTK events into the vtkAngleWidget's widget events: <pre> vtkWidgetEvent::AddPoint -- add one point; depending on the state it may the first, second or third point added. Or, if near a handle, select the handle. vtkWidgetEvent::Move -- position the second or third point, or move the handle depending on the state. vtkWidgetEvent::EndSelect -- the handle manipulation process has completed. </pre>

This widget invokes the following VTK events on itself (which observers can listen for): <pre> vtkCommand::StartInteractionEvent (beginning to interact) vtkCommand::EndInteractionEvent (completing interaction) vtkCommand::InteractionEvent (moving a handle) vtkCommand::PlacePointEvent (after a point is positioned; call data includes handle id (0,1,2)) </pre>


Member Enumeration Documentation

Enum defining the state of the widget. By default the widget is in Start mode, and expects to be interactively placed. While placing the points the widget transitions to Define state. Once placed, the widget enters the Manipulate state.

Enumerator:
Define 

enum member

Manipulate 

enum member

Start 

enum member


Constructor & Destructor Documentation

static Kitware.VTK.vtkAngleWidget.vtkAngleWidget ( ) [static, private]

Automatically generated type registration mechanics.

Kitware.VTK.vtkAngleWidget.vtkAngleWidget ( IntPtr  rawCppThis,
bool  callDisposalMethod,
bool  strong 
)

Automatically generated constructor - called from generated code. DO NOT call directly.

Instantiate this class.


Member Function Documentation

Create the default widget representation if one is not set.

Reimplemented from Kitware.VTK.vtkAbstractWidget.

override void Kitware.VTK.vtkAngleWidget.Dispose ( bool  disposing) [protected]

Automatically generated protected Dispose method - called from public Dispose or the C# destructor. DO NOT call directly.

Reimplemented from Kitware.VTK.vtkAbstractWidget.

Return the representation as a vtkAngleRepresentation.

Here is the call graph for this function:

virtual int Kitware.VTK.vtkAngleWidget.GetWidgetState ( ) [virtual]

Return the current widget state.

override int Kitware.VTK.vtkAngleWidget.IsA ( string  type) [virtual]

Standard methods for a VTK class.

Reimplemented from Kitware.VTK.vtkAbstractWidget.

A flag indicates whether the angle is valid. The angle value only becomes valid after two of the three points are placed.

static new int Kitware.VTK.vtkAngleWidget.IsTypeOf ( string  type) [static]

Standard methods for a VTK class.

Reimplemented from Kitware.VTK.vtkAbstractWidget.

Instantiate this class.

Reimplemented from Kitware.VTK.vtkObject.

Standard methods for a VTK class.

Reimplemented from Kitware.VTK.vtkAbstractWidget.

Standard methods for a VTK class.

Reimplemented from Kitware.VTK.vtkAbstractWidget.

Here is the call graph for this function:

override void Kitware.VTK.vtkAngleWidget.SetEnabled ( int  arg0) [virtual]

The method for activiating and deactiviating this widget. This method must be overridden because it is a composite widget and does more than its superclasses' vtkAbstractWidget::SetEnabled() method.

Reimplemented from Kitware.VTK.vtkAbstractWidget.

override void Kitware.VTK.vtkAngleWidget.SetProcessEvents ( int  arg0) [virtual]

Methods to change the whether the widget responds to interaction. Overridden to pass the state to component widgets.

Reimplemented from Kitware.VTK.vtkAbstractWidget.

Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene. Note that the representation is a subclass of vtkProp so it can be added to the renderer independent of the widget.

Set the state of the widget. If the state is set to "Manipulate" then it is assumed that the widget and its representation will be initialized programmatically and is not interactively placed. Initially the widget state is set to "Start" which means nothing will appear and the user must interactively place the widget with repeated mouse selections. Set the state to "Start" if you want interactive placement. Generally state changes must be followed by a Render() for things to visually take effect.

Set the state of the widget. If the state is set to "Manipulate" then it is assumed that the widget and its representation will be initialized programmatically and is not interactively placed. Initially the widget state is set to "Start" which means nothing will appear and the user must interactively place the widget with repeated mouse selections. Set the state to "Start" if you want interactive placement. Generally state changes must be followed by a Render() for things to visually take effect.

static internal void Kitware.VTK.vtkAngleWidget.vtkAngleWidget_CreateDefaultRepresentation_01 ( HandleRef  pThis) [private]
static internal IntPtr Kitware.VTK.vtkAngleWidget.vtkAngleWidget_GetAngleRepresentation_02 ( HandleRef  pThis,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal int Kitware.VTK.vtkAngleWidget.vtkAngleWidget_GetWidgetState_03 ( HandleRef  pThis) [private]
static internal int Kitware.VTK.vtkAngleWidget.vtkAngleWidget_IsA_04 ( HandleRef  pThis,
string  type 
) [private]
static internal int Kitware.VTK.vtkAngleWidget.vtkAngleWidget_IsAngleValid_05 ( HandleRef  pThis) [private]
static internal int Kitware.VTK.vtkAngleWidget.vtkAngleWidget_IsTypeOf_06 ( string  type) [private]
static internal IntPtr Kitware.VTK.vtkAngleWidget.vtkAngleWidget_New ( ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal IntPtr Kitware.VTK.vtkAngleWidget.vtkAngleWidget_NewInstance_08 ( HandleRef  pThis,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal IntPtr Kitware.VTK.vtkAngleWidget.vtkAngleWidget_SafeDownCast_09 ( HandleRef  o,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal void Kitware.VTK.vtkAngleWidget.vtkAngleWidget_SetEnabled_10 ( HandleRef  pThis,
int  arg0 
) [private]
static internal void Kitware.VTK.vtkAngleWidget.vtkAngleWidget_SetProcessEvents_11 ( HandleRef  pThis,
int  arg0 
) [private]
static internal void Kitware.VTK.vtkAngleWidget.vtkAngleWidget_SetRepresentation_12 ( HandleRef  pThis,
HandleRef  r 
) [private]
static internal void Kitware.VTK.vtkAngleWidget.vtkAngleWidget_SetWidgetStateToManipulate_13 ( HandleRef  pThis) [private]
static internal void Kitware.VTK.vtkAngleWidget.vtkAngleWidget_SetWidgetStateToStart_14 ( HandleRef  pThis) [private]

Member Data Documentation

new readonly string Kitware.VTK.vtkAngleWidget.MRClassNameKey = "14vtkAngleWidget" [static]

Automatically generated type registration mechanics.

Reimplemented from Kitware.VTK.vtkAbstractWidget.

new const string Kitware.VTK.vtkAngleWidget.MRFullTypeName = "Kitware.VTK.vtkAngleWidget"

Automatically generated type registration mechanics.

Reimplemented from Kitware.VTK.vtkAbstractWidget.


The documentation for this class was generated from the following file: