Adopting graphics

Figure 226 shows that 3-D graphics are added to a group with the AdoptFirst and AdoptLast functions. AdoptFirst puts the adopted graphic into the first position in the group; AdoptLast puts the adopted graphic into the last position in the group. You nest groups by adopting a TGraphicGroup3D instance, which is derived from MGraphic3D. There is no limit to how deep you can nest groups, but the same graphic cannot be adopted by more than one group.


      TGraphicGroup3D::AdoptFirst( MGraphic3D& graphic );
      TGraphicGroup3D::AdoptLast( MGraphic3D& graphic );

[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