X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROCurveCreator%2FCurveCreator_Utils.h;h=cc0817fac079fd3dedb8a27672254e9b97ede8d5;hb=8edd427af3997521bda72ca3c416cc1d490565d5;hp=28b6bb50c73756f0f0ff04b4f852d547b2ba6892;hpb=ab0fa2ad7637d748339ba77b7ba151ef4f51fe9e;p=modules%2Fhydro.git diff --git a/src/HYDROCurveCreator/CurveCreator_Utils.h b/src/HYDROCurveCreator/CurveCreator_Utils.h index 28b6bb50..cc0817fa 100644 --- a/src/HYDROCurveCreator/CurveCreator_Utils.h +++ b/src/HYDROCurveCreator/CurveCreator_Utils.h @@ -23,11 +23,16 @@ #include "CurveCreator_Macro.hxx" #include +#include // TODO: remove #include #include #include +#include #include +#include // TODO: remove + +class CurveCreator_ICurve; class CurveCreator_Utils { @@ -56,6 +61,17 @@ public: CURVECREATOR_EXPORT static gp_Pnt ConvertClickToPoint( int x, int y, Handle(V3d_View) theView ); + /** + * Generates shape on the curve + * \param theCurve a curve object, that contains data + * \param theISection a curve section index + * \param theShape a generated shape + */ + CURVECREATOR_EXPORT static void constructShape( const CurveCreator_ICurve* theCurve, + const int theISection, + TopoDS_Shape& theShape, + std::vector& theAdditional ); + /** * Find selected points in the context * \param theContext the viewer context