#include <QStringList>
-class Handle(HYDROData_Polyline);
+class Handle(HYDROData_PolylineXY);
/**
* \class HYDROData_SplitToZonesTool
public:
struct HYDRODATA_EXPORT SplitData
{
- TopoDS_Shape Shape;
- QStringList ObjectNames;
-
- SplitData() {}
+ enum SplitObjectType
+ {
+ Data_None,
+ Data_Zone,
+ Data_Edge
+ };
+
+ TopoDS_Shape Shape;
+ QStringList ObjectNames;
+ SplitObjectType Type;
+
+ SplitData() :
+ Type( Data_None ) {}
- SplitData( const TopoDS_Shape& theShape,
- const QStringList& theObjectNames ) :
- Shape( theShape ), ObjectNames( theObjectNames ) {}
+ SplitData( const SplitObjectType& theType,
+ const TopoDS_Shape& theShape,
+ const QStringList& theObjectNames ) :
+ Type( theType ), Shape( theShape ), ObjectNames( theObjectNames ) {}
- SplitData( const TopoDS_Shape& theShape,
- const QString& theObjectNames ) :
- Shape( theShape ), ObjectNames( theObjectNames ) {}
+ SplitData( const SplitObjectType& theType,
+ const TopoDS_Shape& theShape,
+ const QString& theObjectName ) :
+ Type( theType ), Shape( theShape ), ObjectNames( theObjectName ) {}
TopoDS_Face Face() const;
};
public:
- static SplitDataList SplitToZones( const HYDROData_SequenceOfObjects& theObjectList );
+ static SplitDataList Split( const HYDROData_SequenceOfObjects& theObjectList,
+ const HYDROData_SequenceOfObjects& theGroupsList,
+ const Handle(HYDROData_PolylineXY)& thePolyline );
private: