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

vtkTexturedButtonRepresentation2D - defines a representation for a vtkButtonWidget More...

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

List of all members.

Public Member Functions

 vtkTexturedButtonRepresentation2D (IntPtr rawCppThis, bool callDisposalMethod, bool strong)
 Automatically generated constructor - called from generated code. DO NOT call directly.
 vtkTexturedButtonRepresentation2D ()
 Instantiate the class.
override void BuildRepresentation ()
 Provide the necessary methods to satisfy the vtkWidgetRepresentation API.
override int ComputeInteractionState (int X, int Y, int modify)
 Provide the necessary methods to satisfy the vtkWidgetRepresentation API.
override void GetActors (vtkPropCollection pc)
 Provide the necessary methods to satisfy the rendering API.
vtkBalloonRepresentation GetBalloon ()
 Grab the underlying vtkBalloonRepresentation used to position and display the button texture.
override double[] GetBounds ()
 Provide the necessary methods to satisfy the rendering API.
vtkImageData GetButtonTexture (int i)
 Add the ith texture corresponding to the ith button state. The parameter i should be 0<=i<NumberOfStates.
virtual vtkProperty2D GetHoveringProperty ()
 Specify the property to use when the hovering over the button.
virtual vtkProperty2D GetProperty ()
 Specify the property to use when the button is to appear "normal" i.e., the mouse pointer is not hovering or selecting the button.
virtual vtkProperty2D GetSelectingProperty ()
 Specify the property to use when selecting the button.
override int HasTranslucentPolygonalGeometry ()
 Provide the necessary methods to satisfy the rendering API.
override void Highlight (int state)
 Provide the necessary methods to satisfy the vtkWidgetRepresentation API.
override int IsA (string type)
 Standard methods for the class.
new
vtkTexturedButtonRepresentation2D 
NewInstance ()
 Standard methods for the class.
override void PlaceWidget (IntPtr bounds)
 Conventional PlaceWidget() method to satisfy the vtkWidgetRepresentation API. In this version, bounds[6] specifies a rectangle in *display* coordinates in which to place the button. The values for bounds[4] and bounds[5] can be set to zero. Note that PlaceWidget() is typically called at the end of configuring the button representation.
virtual void PlaceWidget (IntPtr anchor, IntPtr size)
 This alternative PlaceWidget() method can be used to anchor the button to a 3D point. In this case, the button representation will move around the screen as the camera moves around the world space. The first parameter anchor[3] is the world point anchor position (attached to the lower left portion of the button by default); and the size[2] parameter defines a x-y box in display coordinates in which the button will fit. Note that you can grab the vtkBalloonRepresentation and set an offset value if the anchor point is to be elsewhere on the button.
override void ReleaseGraphicsResources (vtkWindow arg0)
 Provide the necessary methods to satisfy the rendering API.
override int RenderOverlay (vtkViewport arg0)
 Provide the necessary methods to satisfy the rendering API.
void SetButtonTexture (int i, vtkImageData image)
 Add the ith texture corresponding to the ith button state. The parameter i should be 0<=i<NumberOfStates.
virtual void SetHoveringProperty (vtkProperty2D p)
 Specify the property to use when the hovering over the button.
virtual void SetProperty (vtkProperty2D p)
 Specify the property to use when the button is to appear "normal" i.e., the mouse pointer is not hovering or selecting the button.
virtual void SetSelectingProperty (vtkProperty2D p)
 Specify the property to use when selecting the button.
override void ShallowCopy (vtkProp prop)
 Provide the necessary methods to satisfy the rendering API.

Static Public Member Functions

static new
vtkTexturedButtonRepresentation2D 
New ()
 Instantiate the class.
static new int IsTypeOf (string type)
 Standard methods for the class.
static new
vtkTexturedButtonRepresentation2D 
SafeDownCast (vtkObjectBase o)
 Standard methods for the class.

Public Attributes

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

Static Public Attributes

static new readonly string MRClassNameKey = "33vtkTexturedButtonRepresentation2D"
 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 vtkTexturedButtonRepresentation2D_New (ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal void vtkTexturedButtonRepresentation2D_BuildRepresentation_01 (HandleRef pThis)
static internal int vtkTexturedButtonRepresentation2D_ComputeInteractionState_02 (HandleRef pThis, int X, int Y, int modify)
static internal void vtkTexturedButtonRepresentation2D_GetActors_03 (HandleRef pThis, HandleRef pc)
static internal IntPtr vtkTexturedButtonRepresentation2D_GetBalloon_04 (HandleRef pThis, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal IntPtr vtkTexturedButtonRepresentation2D_GetBounds_05 (HandleRef pThis)
static internal IntPtr vtkTexturedButtonRepresentation2D_GetButtonTexture_06 (HandleRef pThis, int i, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal IntPtr vtkTexturedButtonRepresentation2D_GetHoveringProperty_07 (HandleRef pThis, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal IntPtr vtkTexturedButtonRepresentation2D_GetProperty_08 (HandleRef pThis, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal IntPtr vtkTexturedButtonRepresentation2D_GetSelectingProperty_09 (HandleRef pThis, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal int vtkTexturedButtonRepresentation2D_HasTranslucentPolygonalGeometry_10 (HandleRef pThis)
static internal void vtkTexturedButtonRepresentation2D_Highlight_11 (HandleRef pThis, int state)
static internal int vtkTexturedButtonRepresentation2D_IsA_12 (HandleRef pThis, string type)
static internal int vtkTexturedButtonRepresentation2D_IsTypeOf_13 (string type)
static internal IntPtr vtkTexturedButtonRepresentation2D_NewInstance_15 (HandleRef pThis, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal void vtkTexturedButtonRepresentation2D_PlaceWidget_16 (HandleRef pThis, IntPtr bounds)
static internal void vtkTexturedButtonRepresentation2D_PlaceWidget_17 (HandleRef pThis, IntPtr anchor, IntPtr size)
static internal void vtkTexturedButtonRepresentation2D_ReleaseGraphicsResources_18 (HandleRef pThis, HandleRef arg0)
static internal int vtkTexturedButtonRepresentation2D_RenderOverlay_19 (HandleRef pThis, HandleRef arg0)
static internal IntPtr vtkTexturedButtonRepresentation2D_SafeDownCast_20 (HandleRef o, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal void vtkTexturedButtonRepresentation2D_SetButtonTexture_21 (HandleRef pThis, int i, HandleRef image)
static internal void vtkTexturedButtonRepresentation2D_SetHoveringProperty_22 (HandleRef pThis, HandleRef p)
static internal void vtkTexturedButtonRepresentation2D_SetProperty_23 (HandleRef pThis, HandleRef p)
static internal void vtkTexturedButtonRepresentation2D_SetSelectingProperty_24 (HandleRef pThis, HandleRef p)
static internal void vtkTexturedButtonRepresentation2D_ShallowCopy_25 (HandleRef pThis, HandleRef prop)

Static Private Member Functions

static vtkTexturedButtonRepresentation2D ()
 Automatically generated type registration mechanics.

Detailed Description

vtkTexturedButtonRepresentation2D - defines a representation for a vtkButtonWidget

Description This class implements one type of vtkButtonRepresentation. It changes the appearance of a user-provided polydata by assigning textures according to the current button state. It also provides highlighting (when hovering and selecting the button) by fiddling with the actor's property. Since this is a 2D version, the button is rendered in the overlay plane. Typically it is positioned in display coordinates, but it can be anchored to a world position so it will appear to move as the camera moves.

To use this representation, always begin by specifying the number of button states. Then provide a polydata (the polydata should have associated texture coordinates), and a list of textures cooresponding to the button states. Optionally, the HoveringProperty and SelectionProperty can be adjusted to obtain the appropriate appearance.


Constructor & Destructor Documentation

Automatically generated type registration mechanics.

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

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

Instantiate the class.


Member Function Documentation

Provide the necessary methods to satisfy the vtkWidgetRepresentation API.

Reimplemented from Kitware.VTK.vtkWidgetRepresentation.

override int Kitware.VTK.vtkTexturedButtonRepresentation2D.ComputeInteractionState ( int  X,
int  Y,
int  modify 
) [virtual]

Provide the necessary methods to satisfy the vtkWidgetRepresentation API.

Reimplemented from Kitware.VTK.vtkWidgetRepresentation.

override void Kitware.VTK.vtkTexturedButtonRepresentation2D.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.vtkButtonRepresentation.

Provide the necessary methods to satisfy the rendering API.

Reimplemented from Kitware.VTK.vtkWidgetRepresentation.

Grab the underlying vtkBalloonRepresentation used to position and display the button texture.

Here is the call graph for this function:

Provide the necessary methods to satisfy the rendering API.

Reimplemented from Kitware.VTK.vtkWidgetRepresentation.

Add the ith texture corresponding to the ith button state. The parameter i should be 0<=i<NumberOfStates.

Here is the call graph for this function:

Specify the property to use when the hovering over the button.

Here is the call graph for this function:

Specify the property to use when the button is to appear "normal" i.e., the mouse pointer is not hovering or selecting the button.

Here is the call graph for this function:

Specify the property to use when selecting the button.

Here is the call graph for this function:

Provide the necessary methods to satisfy the rendering API.

Reimplemented from Kitware.VTK.vtkWidgetRepresentation.

override void Kitware.VTK.vtkTexturedButtonRepresentation2D.Highlight ( int  state) [virtual]

Provide the necessary methods to satisfy the vtkWidgetRepresentation API.

Reimplemented from Kitware.VTK.vtkButtonRepresentation.

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

Standard methods for the class.

Reimplemented from Kitware.VTK.vtkButtonRepresentation.

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

Standard methods for the class.

Reimplemented from Kitware.VTK.vtkButtonRepresentation.

Instantiate the class.

Reimplemented from Kitware.VTK.vtkObject.

Standard methods for the class.

Reimplemented from Kitware.VTK.vtkButtonRepresentation.

override void Kitware.VTK.vtkTexturedButtonRepresentation2D.PlaceWidget ( IntPtr  bounds) [virtual]

Conventional PlaceWidget() method to satisfy the vtkWidgetRepresentation API. In this version, bounds[6] specifies a rectangle in *display* coordinates in which to place the button. The values for bounds[4] and bounds[5] can be set to zero. Note that PlaceWidget() is typically called at the end of configuring the button representation.

Reimplemented from Kitware.VTK.vtkWidgetRepresentation.

virtual void Kitware.VTK.vtkTexturedButtonRepresentation2D.PlaceWidget ( IntPtr  anchor,
IntPtr  size 
) [virtual]

This alternative PlaceWidget() method can be used to anchor the button to a 3D point. In this case, the button representation will move around the screen as the camera moves around the world space. The first parameter anchor[3] is the world point anchor position (attached to the lower left portion of the button by default); and the size[2] parameter defines a x-y box in display coordinates in which the button will fit. Note that you can grab the vtkBalloonRepresentation and set an offset value if the anchor point is to be elsewhere on the button.

Provide the necessary methods to satisfy the rendering API.

Reimplemented from Kitware.VTK.vtkWidgetRepresentation.

Provide the necessary methods to satisfy the rendering API.

Reimplemented from Kitware.VTK.vtkWidgetRepresentation.

Standard methods for the class.

Reimplemented from Kitware.VTK.vtkButtonRepresentation.

Here is the call graph for this function:

Add the ith texture corresponding to the ith button state. The parameter i should be 0<=i<NumberOfStates.

Specify the property to use when the hovering over the button.

Specify the property to use when the button is to appear "normal" i.e., the mouse pointer is not hovering or selecting the button.

Specify the property to use when selecting the button.

Provide the necessary methods to satisfy the rendering API.

Reimplemented from Kitware.VTK.vtkButtonRepresentation.

static internal int Kitware.VTK.vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_ComputeInteractionState_02 ( HandleRef  pThis,
int  X,
int  Y,
int  modify 
) [private]
static internal void Kitware.VTK.vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_GetActors_03 ( HandleRef  pThis,
HandleRef  pc 
) [private]
static internal IntPtr Kitware.VTK.vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_GetBalloon_04 ( HandleRef  pThis,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal IntPtr Kitware.VTK.vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_GetButtonTexture_06 ( HandleRef  pThis,
int  i,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal IntPtr Kitware.VTK.vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_GetHoveringProperty_07 ( HandleRef  pThis,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal IntPtr Kitware.VTK.vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_GetProperty_08 ( HandleRef  pThis,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal IntPtr Kitware.VTK.vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_GetSelectingProperty_09 ( HandleRef  pThis,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal void Kitware.VTK.vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_Highlight_11 ( HandleRef  pThis,
int  state 
) [private]
static internal int Kitware.VTK.vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_IsA_12 ( HandleRef  pThis,
string  type 
) [private]
static internal IntPtr Kitware.VTK.vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_New ( ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal IntPtr Kitware.VTK.vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_NewInstance_15 ( HandleRef  pThis,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal void Kitware.VTK.vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_PlaceWidget_16 ( HandleRef  pThis,
IntPtr  bounds 
) [private]
static internal void Kitware.VTK.vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_PlaceWidget_17 ( HandleRef  pThis,
IntPtr  anchor,
IntPtr  size 
) [private]
static internal void Kitware.VTK.vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_ReleaseGraphicsResources_18 ( HandleRef  pThis,
HandleRef  arg0 
) [private]
static internal int Kitware.VTK.vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_RenderOverlay_19 ( HandleRef  pThis,
HandleRef  arg0 
) [private]
static internal IntPtr Kitware.VTK.vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_SafeDownCast_20 ( HandleRef  o,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal void Kitware.VTK.vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_SetButtonTexture_21 ( HandleRef  pThis,
int  i,
HandleRef  image 
) [private]
static internal void Kitware.VTK.vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_SetHoveringProperty_22 ( HandleRef  pThis,
HandleRef  p 
) [private]
static internal void Kitware.VTK.vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_SetProperty_23 ( HandleRef  pThis,
HandleRef  p 
) [private]
static internal void Kitware.VTK.vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_SetSelectingProperty_24 ( HandleRef  pThis,
HandleRef  p 
) [private]
static internal void Kitware.VTK.vtkTexturedButtonRepresentation2D.vtkTexturedButtonRepresentation2D_ShallowCopy_25 ( HandleRef  pThis,
HandleRef  prop 
) [private]

Member Data Documentation

new readonly string Kitware.VTK.vtkTexturedButtonRepresentation2D.MRClassNameKey = "33vtkTexturedButtonRepresentation2D" [static]

Automatically generated type registration mechanics.

Reimplemented from Kitware.VTK.vtkButtonRepresentation.

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

Automatically generated type registration mechanics.

Reimplemented from Kitware.VTK.vtkButtonRepresentation.


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