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 | |
uint | AddObserver () |
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.
|
staticprivate |
Type registration mechanics.
vtkObjectEventRelay.vtkObjectEventRelay | ( | IntPtr | rawCppThis, |
bool | callDisposalMethod, | ||
bool | strong | ||
) |
Automatically generated constructor - called from generated code. DO NOT call directly.
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 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.
|
private |
|
private |
|
private |
|
protected |
Automatically generated protected Dispose method - called from public Dispose or the C# destructor. DO NOT call directly.
void vtkObjectEventRelay.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.
bool vtkObjectEventRelay.HasHandlers | ( | ) |
HasHandlers returns true if this event presently has any managed/.NET handlers.
delegate void vtkObjectEventRelay.RelayHandler | ( | IntPtr | caller, |
uint | eventId, | ||
IntPtr | callData | ||
) |
Signature for method that vtkObject can call for VTK events.
void vtkObjectEventRelay.RemoveAllHandlers | ( | ) |
RemoveAllHandlers forcibly removes all existing handlers from its list. Sender should call this method from its Dispose if it has one.
void 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.
|
private |
|
private |
|
private |
|
static |
Type registration mechanics.
new const string vtkObjectEventRelay.MRFullTypeName = "Kitware.VTK.vtkObjectEventRelay" |
Type registration mechanics.
|
private |
|
private |
|
private |