#include <deque>
#include <vector>
#include <string>
+#include <list>
class Handle_AIS_InteractiveObject;
//! Clear the polyline (remove all sections)
virtual bool clear() = 0;
- //! Join range of sections to one section (join all sections if -1 is passed in one of arguments)
- virtual bool join( const int theISectionTo = -1,
- const int theISectionFrom = -1 ) = 0;
+ //! Join list of sections to one section (join all if the list is empty)
+ // The first section in the list is a leader, another sections are joined to it
+ virtual bool join( const std::list<int>& theSections ) = 0;
//! Get number of sections
virtual int getNbSections() const = 0;