Click or drag to resize
AB4D logo

EventManager3D Methods

The EventManager3D type exposes the following members.

Methods
 NameDescription
Protected methodCheckMouseOverElement CheckMouseOverElement method sets protected lastHitEventSource3D and lastRayHitResult with the hit event source data.
Public methodRegisterEventSource3D Registers the eventSource to the EventManager3D
Public methodRegisterExcludedVisual3D(Visual3D) Registers a visual3D that will be excluded from hit testing - the ray from the mouse will "travel" through that Visual and will hit the objects behind.
Public methodRegisterExcludedVisual3D(Visual3D) Registers a list of visual3D objects that will be excluded from hit testing - the ray from the mouse will "travel" through that Visual and will hit the objects behind.
Public methodRemoveEventSource3D Removes the eventSource from the EventManager3D
Public methodRemoveExcludedVisual3D Removed the visual3D from the excluded visuals list. To remove all excluded visuals it is also possible to call ResetEventSources3D method.
Public methodResetEventSources3D Clears all the registered EventSource3D objects. This also removes all registered Visuals that are not hit visible.
Public methodUpdateHitObjects UpdateHitObjects method can be called to manually update the 3D objects that are behind the current mouse position. This is useful when the camera is changed without moving the mouse. In this case the 3D objects behind the mouse position can change. If this happens the MouseEnter, MouseLeave and other event handlers will be called from the UpdateHitObjects method. It is possible to specify the MouseEventArgs that is passed to triggered event handlers (if mouseEventArgs is not specified, then null is passed).
Top
See Also