Finding the bounds and hit detection

TGraphicGroup3D inherits the GetLooseFitBounds and GetGeometricBounds functions from MGraphic3D described in Chapter 13. When you call one of these functions on a group, the appropriate bounds are returned for the
entire group.

If you want to find the bounds on a nested group or graphic within the group, you have to use an iterator to locate the graphic or nested group that has been selected. To do this, call the TGraphicGroup3D::CreateIterator function that returns a TGraphicIterator3D instance. TGraphicIterator3D is an abstract base class, and by default CreateIterator creates a shallow iterator that iterates one level of the group.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker