Constructors
All MGraphic3D derived classes have a default constructor, a copy constructor, and a constructor that takes the corresponding geometry and an attribute bundle. For example, the overloaded constructors for a TCurve are as follows. Notice that a 3-D curve can accept a 3-D and a 2-D curve geometry.
TCurve3D();
TCurve3D( const TCurve& aCurve );
TCurve3D( const TGCurve3D& curve3D, TGrafBundle3D* adoptBundle );
TCurve3D( const TGCurve curve2D, TGrafBundle3D* adoptBundle );
The geometry classes have overloaded constructors that provide many ways to create a geometric shape. The constructors for a TGLine3D are the following:
TGLine();
TGLine3D( const TGLine3D& line3D );
TGLine3D( const TGPoint3D& start, const TGPoint3D& end );
and the constructors for a TGPolyline3D are the following:
TGPolyline3D();
TGPolyline3D( const TGPolyline3D& polyline3D )
TGPolyline3D( const TGPoint3DArray& points );
TGPolyline3D( unsigned long numPoints );
The graphics classes inherit MGraphic3D functions and accessor functions that let you manage the geometry data from within the graphic. The headings below list the 3D graphics classes and their member functions to give you an idea of the functionality that is available. All 3D graphics functions listed in these tables have default implementations that do not need to be overridden. See the online Class and Member function descriptions for parameter lists and information on how to use constructors and functions.
[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