IDXSurfacePick interface

The IDXSurfacePick interface enables picking, which is the process of identifying which of the transform inputs contributed to the output at a given point.

Members

The IDXSurfacePick interface inherits from the IUnknown interface. IDXSurfacePick also has these types of members:

  • Methods

Methods

The IDXSurfacePick interface has these methods.

Method Description
PointPick

Performs a surface pick at the specified output point.

 

Remarks

The pick point often corresponds to the location where the user clicked the mouse on the output image; the pick point is handed by the container to the transform through this interface. This operation is also known as hit testing.

If multiple inputs contribute to the output at the specified point, the transform chooses only one of the inputs as the picked surface. The criteria for selecting a picked surface depend on the transform. This interface inherits from the IUnknown interface.

To use the IDXSurfacePick interface, call QueryInterface on the selected transform interface with IID_IDXSurfacePick as the interface ID.

   CComPtr<IDXSurfacePick> cpPick;
    m_cpDXTransform->QueryInterface(IID_IDXSurfacePick, (void **)&cpPick)))

You must override the CDXBaseNTo1::OnSurfacePick or CDXBaseNTo1::OnGetSurfacePickOrder member functions of the CDXBaseNTo1 class to use picking.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Dxtrans.h

IDL

Dxtrans.idl

DLL

Dxtrans.dll