Methods introduced:
Use the method wfcExternalObjectSelectionBoxData::Create to create a selection data information for the specified external object. This method returns the selection data for the
external object as a wfcExternalObjectSelectionBoxData object.
Selection boxes are specified as part of the external object selection data. These selection boxes indicate locations in
which mouse selections will cause the external object to be selected. For the selection to be possible, you must designate
a set of “hot spots,” or selection boxes for the object.
A selection box is defined by the pair of points contained in a
wfcSelectionBoxes object. The coordinates of the points are specified in the external object's coordinate system (the default coordinates).
The line between the points forms the diagonal of the selection box; the edges of the box lie parallel to the coordinate axes
of the external object.
Note
PTC recommends that the size and arrangement of the selection boxes be dependent on the size and shape of the external object.
If the external object is compact and uniformly distributed in all coordinate directions, one selection box will probably
suffice.
However, if the external object is distributed non-uniformly, or is interfering with other objects, you must designate more
specific locations at which selection should occur.
The method wfcExternalObjectSelectionBoxData::GetBoxes retrieves the list of selection boxes in a given selection data.
To set the selection boxes within the selection data, call the method wfcExternalObjectSelectionBoxData::SetBoxes and pass as input a pointer to a list of wfcSelectionBoxes objects. This enables your external object to have more than one associated selection box.