Detect overlapped objects

When objects overlap each other and causing difficulties in selection, you can use the mechanism provided with the AIS_InteractiveContext to successively highlight all the objects found under the selection. This allows you to choose and validate the required object.

For example:

If ( myAISContext->HasNextDetected()) {

// if up key is pressed

myAISContext ->HilightNextDetected(myView);

// if down key is pressed

myAISContext ->HilightPreviousDetected(myView);

}

For more information, refer to the entry for this class in the reference documentation.