Click or drag to resize
AB4D logo

DXHitTestResult Class

DXHitTestResult is a base class for hit test results in DXEngine.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXDXHitTestResult
    Ab3d.DirectXDXRayHitTestResult

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 6.1.8746.1045
Syntax
C#
public abstract class DXHitTestResult

The DXHitTestResult type exposes the following members.

Constructors
 NameDescription
Public methodDXHitTestResult Constructor
Public methodDXHitTestResult(SceneNode) Constructor
Top
Methods
 NameDescription
Public methodIsSameObject Returns true when the other DXHitTestResult represents the same object. When false is returned then new MouseLeave and MouseEnter events will be triggered.
Top
Fields
 NameDescription
Public fieldHitSceneNode Hit SceneNode (can be null when no object was hit)
Top
Remarks

DXHitTestResult is a base class for hit test results in DXEngine.

The base class defines only HitSceneNode field.

The virtual IsSameObject(DXHitTestResult) should be overridden by derived classes to provide custom logic when MouseLeave and MouseEnter events should be triggered. By default this happens when the HitSceneNode is changed. But when one SceneNode can show multiple objects (for examples with objects instancing), then the custom IsSameObject method can trigger MouseLeave and MouseEnter events in case mouse moves to another part of the SceneNode (another object's instance).

See Also