#include <TopoDS_Wire.hxx>
#include <TColgp_HArray1OfPnt.hxx>
#include <Geom_BSplineCurve.hxx>
+#include <QColor>
#include <list>
#include <vector> // TODO: remove
+#include <NCollection_IndexedDataMap.hxx>
class CurveCreator_Curve;
Handle(V3d_View) theView,
int& x, int& y );
+ /**
+ * Generates a random color
+ */
+ CURVECREATOR_EXPORT static Quantity_Color getRandColor();
+
+ /**
+ * Convert QColor to Quantity_Color
+ */
+ CURVECREATOR_EXPORT static Quantity_Color colorConv(QColor color);
+
+ /**
+ * Convert Quantity_Color to QColor
+ */
+ CURVECREATOR_EXPORT static QColor colorConv(Quantity_Color color);
+
/*!
* \brief Returns the point clicked in 3D view.
*
* Generates shape on the curve
* \param theCurve a curve object, that contains data
* \param theShape a generated shape
+ * \param Sect2Shape optional out map: section to constructed shape (wire+vertices)
*/
CURVECREATOR_EXPORT static void constructShape( const CurveCreator_ICurve* theCurve,
- TopoDS_Shape& theShape );
+ TopoDS_Shape& theShape,
+ NCollection_IndexedDataMap<int, TopoDS_Shape>* Sect2Shape = NULL);
/**
* Generates a curve from a shape.