ActiViz .NET
5.8.0
|
Implement a relay handler for VTK events. This is a class that receives events directly from the VTK object sender and transforms them into calls to .NET delegates. More...
Public Member Functions | |
vtkObjectEventRelay (IntPtr rawCppThis, bool callDisposalMethod, bool strong) | |
Automatically generated constructor - called from generated code. DO NOT call directly. | |
vtkObjectEventRelay (Kitware.VTK.vtkObject sender, uint eventId) | |
Construct a vtkObjectEventRelay object that will call "handler" when its Execute method gets called. Typically, it is not necessary to create instances of vtkObjectEventRelay from client applications. Usually, clients will just connect to ActiViz.NET events, which use vtkObjectEventRelay internally. However, vtkObjectEventRelay is suitable for use as the vtkCommand parameter to AddObserver calls. | |
delegate void | RelayHandler (IntPtr caller, uint eventId, IntPtr callData) |
Signature for method that vtkObject can call for VTK events. | |
void | Execute (IntPtr caller, uint eventId, IntPtr callData) |
Do not call directly. This method is called from VTK library code when InvokeEvent is called on a vtkObject. | |
void | AddHandler (Kitware.VTK.vtkObject.vtkObjectEventHandler handler) |
AddHandler adds a managed/.NET event handler to this event relay object. If this is the first time a handler is being added, we call AddObserver so that the underlying VTK object will invoke the event from now on. | |
void | RemoveHandler (Kitware.VTK.vtkObject.vtkObjectEventHandler handler) |
RemoveHandler removes a managed/.NET event handler previously added to this event relay object. If this is the last handler being removed, we call RemoveObserver so that the underlying VTK object will no longer send the event to us. | |
bool | HasHandlers () |
HasHandlers returns true if this event presently has any managed/.NET handlers. | |
void | RemoveAllHandlers () |
RemoveAllHandlers forcibly removes all existing handlers from its list. Sender should call this method from its Dispose if it has one. | |
Public Attributes | |
new const string | MRFullTypeName = "Kitware.VTK.vtkObjectEventRelay" |
Type registration mechanics. | |
Static Public Attributes | |
static new readonly string | MRClassNameKey = "class vtkObjectEventRelay" |
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 | vtkObjectEventRelay_New (ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount) |
static internal void | vtkObjectEventRelay_Delete (HandleRef pThis) |
static internal uint | vtkObjectEventRelay_AddObserver (HandleRef pThis, HandleRef sender, uint eventid, RelayHandler handler, float priority) |
uint | AddObserver () |
static internal uint | vtkObjectEventRelay_RemoveObserver (HandleRef pThis, uint observerId) |
void | RemoveObserver (uint observerId) |
void | CallAddObserver () |
void | CallRemoveObserver () |
Static Private Member Functions | |
static | vtkObjectEventRelay () |
Type registration mechanics. | |
Private Attributes | |
Kitware.VTK.vtkObject | Sender |
uint | EventId |
Kitware.VTK.vtkObject.vtkObjectEventHandler | EventImpl |
uint | ObserverId |
RelayHandler | RelayHandlerDelegate |
Implement a relay handler for VTK events. This is a class that receives events directly from the VTK object sender and transforms them into calls to .NET delegates.
static Kitware.VTK.vtkObjectEventRelay.vtkObjectEventRelay | ( | ) | [static, private] |
Type registration mechanics.
Kitware.VTK.vtkObjectEventRelay.vtkObjectEventRelay | ( | IntPtr | rawCppThis, |
bool | callDisposalMethod, | ||
bool | strong | ||
) |
Automatically generated constructor - called from generated code. DO NOT call directly.
Kitware.VTK.vtkObjectEventRelay.vtkObjectEventRelay | ( | Kitware.VTK.vtkObject | sender, |
uint | eventId | ||
) |
Construct a vtkObjectEventRelay object that will call "handler" when its Execute method gets called. Typically, it is not necessary to create instances of vtkObjectEventRelay from client applications. Usually, clients will just connect to ActiViz.NET events, which use vtkObjectEventRelay internally. However, vtkObjectEventRelay is suitable for use as the vtkCommand parameter to AddObserver calls.
void Kitware.VTK.vtkObjectEventRelay.AddHandler | ( | Kitware.VTK.vtkObject.vtkObjectEventHandler | handler | ) |
AddHandler adds a managed/.NET event handler to this event relay object. If this is the first time a handler is being added, we call AddObserver so that the underlying VTK object will invoke the event from now on.
uint Kitware.VTK.vtkObjectEventRelay.AddObserver | ( | ) | [private] |
void Kitware.VTK.vtkObjectEventRelay.CallAddObserver | ( | ) | [private] |
void Kitware.VTK.vtkObjectEventRelay.CallRemoveObserver | ( | ) | [private] |
override void Kitware.VTK.vtkObjectEventRelay.Dispose | ( | bool | disposing | ) | [protected] |
Automatically generated protected Dispose method - called from public Dispose or the C# destructor. DO NOT call directly.
void Kitware.VTK.vtkObjectEventRelay.Execute | ( | IntPtr | caller, |
uint | eventId, | ||
IntPtr | callData | ||
) |
HasHandlers returns true if this event presently has any managed/.NET handlers.
delegate void Kitware.VTK.vtkObjectEventRelay.RelayHandler | ( | IntPtr | caller, |
uint | eventId, | ||
IntPtr | callData | ||
) |
RemoveAllHandlers forcibly removes all existing handlers from its list. Sender should call this method from its Dispose if it has one.
void Kitware.VTK.vtkObjectEventRelay.RemoveHandler | ( | Kitware.VTK.vtkObject.vtkObjectEventHandler | handler | ) |
RemoveHandler removes a managed/.NET event handler previously added to this event relay object. If this is the last handler being removed, we call RemoveObserver so that the underlying VTK object will no longer send the event to us.
void Kitware.VTK.vtkObjectEventRelay.RemoveObserver | ( | uint | observerId | ) | [private] |
static internal uint Kitware.VTK.vtkObjectEventRelay.vtkObjectEventRelay_AddObserver | ( | HandleRef | pThis, |
HandleRef | sender, | ||
uint | eventid, | ||
RelayHandler | handler, | ||
float | priority | ||
) | [private] |
static internal void Kitware.VTK.vtkObjectEventRelay.vtkObjectEventRelay_Delete | ( | HandleRef | pThis | ) | [private] |
static internal IntPtr Kitware.VTK.vtkObjectEventRelay.vtkObjectEventRelay_New | ( | ref uint | mteStatus, |
ref uint | mteIndex, | ||
ref uint | rawRefCount | ||
) | [private] |
static internal uint Kitware.VTK.vtkObjectEventRelay.vtkObjectEventRelay_RemoveObserver | ( | HandleRef | pThis, |
uint | observerId | ||
) | [private] |
uint Kitware.VTK.vtkObjectEventRelay.EventId [private] |
new readonly string Kitware.VTK.vtkObjectEventRelay.MRClassNameKey = "class vtkObjectEventRelay" [static] |
Type registration mechanics.
new const string Kitware.VTK.vtkObjectEventRelay.MRFullTypeName = "Kitware.VTK.vtkObjectEventRelay" |
Type registration mechanics.
uint Kitware.VTK.vtkObjectEventRelay.ObserverId [private] |