CODViewport::PortHitTest

CODPortComponent*CODViewport::PortHitTest(CPointptHit, const intnSlop)

Returns a pointer to the topmost port that contains the point, or NULL if there is no port at the point.

Defined in: OdViewport.cpp

Return Value

Pointer to the port that contains the point or NULL if no port found at the point.

Parameters

ptHit

A point in logical units.

nSlop

Size of extra padding around port that causes a positive hit test. Specified in device units.

Comments

This function scans the symbols in the model and calls the function  CODSymbolComponent::GetPortAt until it finds a port or until there are no more symbols. If no port is found, this function returns NULL.