class HT_Polyline 
See Also
HT_Point_Set, HT_Point
Constructor
HT_Polyline
Constructs an HT_Polyline object.

HT_Polyline::HT_Polyline

Purpose

Constructor to initialize a new HT_Polyline object. Synopsis
HT_Polyline()
HT_Polyline(int count, HT_Point const * points)
HT_Polyline(int count, HT_Point const * points, HT_Boolean copy)
Details The first form initializes to an empty polyline, that is, one with no points.

The second form creates a polyline with count points and the HT_Polyline object refers to the array points for the point definitions. In this case, no additional storage allocation is required to hold the points.

The third form creates a polyline and allocates storage for count points. If the copy parameter is HK_True, then the constructor copies the points from the array points into the HT_Polyline object. This form only allocates storage if either copy == HK_True or points is null. If copy is false and points is a valid pointer, no memory is allocated¾ similar to the second form.

Note: This information is applicable to all of the Point_Set derived classes as well¾ if points is null and count is >0, then count points will be allocated.