This "visitor" interface used to enumerate the component parts from a tsc_Polyline.Â
When tsc_IPolylinePointParts::VisitEach() is called, a single call is made to a method of this interface to read each and every part, in sequence, from the polyline. Which method is called depends on the type of that part.
This interface ensures that calling code will both:
handle all possible types of polyline part, and
not expect the polyline to contain parts of any other kind.
To use this interface, create and instantiate your own subclass of tsc_PolylinePointParts and override the two virtual functions with your own code to deal with the parts. Construction of the subclass can provide information the class needs to operate.
virtual void VisitLine (const tsc_Point& start, const tsc_Point& end) = 0;
This method is called once for each line in the polyline.
virtual void VisitArc (const tsc_Point& start, const tsc_Point& mid, const tsc_Point& end) = 0;
This method is called once for each arc in the polyline.