2015-02-10 14:25:19 +05:00
|
|
|
// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
|
2005-12-05 21:23:52 +05:00
|
|
|
//
|
2012-08-09 13:58:02 +06:00
|
|
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
|
|
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
2005-12-05 21:23:52 +05:00
|
|
|
//
|
2012-08-09 13:58:02 +06:00
|
|
|
// This library is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation; either
|
2014-02-18 12:44:41 +06:00
|
|
|
// version 2.1 of the License, or (at your option) any later version.
|
2009-02-13 17:16:39 +05:00
|
|
|
//
|
2012-08-09 13:58:02 +06:00
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// Lesser General Public License for more details.
|
2009-02-13 17:16:39 +05:00
|
|
|
//
|
2012-08-09 13:58:02 +06:00
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
// License along with this library; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2009-02-13 17:16:39 +05:00
|
|
|
//
|
2012-08-09 13:58:02 +06:00
|
|
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
2013-04-01 18:25:01 +06:00
|
|
|
//
|
2004-12-01 15:39:14 +05:00
|
|
|
|
|
|
|
#ifndef _GEOMImpl_ICurvesOperations_HXX_
|
|
|
|
#define _GEOMImpl_ICurvesOperations_HXX_
|
|
|
|
|
|
|
|
#include "GEOM_IOperations.hxx"
|
|
|
|
|
2005-08-19 15:11:52 +06:00
|
|
|
#include <TCollection_AsciiString.hxx>
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
#include <list>
|
|
|
|
|
|
|
|
class GEOM_Engine;
|
|
|
|
class Handle(GEOM_Object);
|
|
|
|
|
|
|
|
class GEOMImpl_ICurvesOperations : public GEOM_IOperations {
|
2013-02-12 17:35:16 +06:00
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
public:
|
2012-08-09 13:58:02 +06:00
|
|
|
|
|
|
|
enum CurveType { Polyline, Bezier, Interpolation };
|
2013-02-12 17:35:16 +06:00
|
|
|
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT GEOMImpl_ICurvesOperations(GEOM_Engine* theEngine, int theDocID);
|
|
|
|
Standard_EXPORT ~GEOMImpl_ICurvesOperations();
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) MakeCircleThreePnt (Handle(GEOM_Object) thePnt1,
|
2005-08-19 15:11:52 +06:00
|
|
|
Handle(GEOM_Object) thePnt2,
|
|
|
|
Handle(GEOM_Object) thePnt3);
|
2008-03-07 12:45:34 +05:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) MakeCircleCenter2Pnt (Handle(GEOM_Object) thePnt1,
|
|
|
|
Handle(GEOM_Object) thePnt2,
|
|
|
|
Handle(GEOM_Object) thePnt3);
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) MakeCirclePntVecR (Handle(GEOM_Object) thePnt,
|
2005-08-19 15:11:52 +06:00
|
|
|
Handle(GEOM_Object) theVec, double theR);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) MakeEllipse (Handle(GEOM_Object) thePnt,
|
2005-08-19 15:11:52 +06:00
|
|
|
Handle(GEOM_Object) theVec,
|
2012-08-09 13:58:02 +06:00
|
|
|
double theRMajor, double theRMinor,
|
|
|
|
Handle(GEOM_Object) theVecMaj);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) MakeArc (Handle(GEOM_Object) thePnt1,
|
2005-08-19 15:11:52 +06:00
|
|
|
Handle(GEOM_Object) thePnt2,
|
|
|
|
Handle(GEOM_Object) thePnt3);
|
2013-02-12 17:35:16 +06:00
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) MakeArcCenter (Handle(GEOM_Object) thePnt1,
|
|
|
|
Handle(GEOM_Object) thePnt2,
|
|
|
|
Handle(GEOM_Object) thePnt3,
|
|
|
|
bool theSense);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) MakeArcOfEllipse (Handle(GEOM_Object) thePnt1,
|
2012-08-09 13:58:02 +06:00
|
|
|
Handle(GEOM_Object) thePnt2,
|
|
|
|
Handle(GEOM_Object) thePnt3);
|
|
|
|
|
|
|
|
Standard_EXPORT Handle(GEOM_Object) MakePolyline (std::list<Handle(GEOM_Object)> thePoints,
|
|
|
|
bool theIsClosed = false);
|
|
|
|
|
|
|
|
Standard_EXPORT Handle(GEOM_Object) MakeSplineBezier (std::list<Handle(GEOM_Object)> thePoints,
|
|
|
|
bool theIsClosed = false);
|
|
|
|
|
|
|
|
Standard_EXPORT Handle(GEOM_Object) MakeSplineInterpolation (std::list<Handle(GEOM_Object)> thePoints,
|
|
|
|
bool theIsClosed = false,
|
|
|
|
bool theDoReordering = false);
|
2009-02-13 17:16:39 +05:00
|
|
|
|
2013-02-12 17:35:16 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) MakeSplineInterpolWithTangents
|
|
|
|
(std::list<Handle(GEOM_Object)> thePoints,
|
|
|
|
Handle(GEOM_Object) theFirstVec,
|
|
|
|
Handle(GEOM_Object) theLastVec);
|
|
|
|
|
2012-10-08 17:16:36 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) MakeCurveParametric
|
2013-02-12 17:35:16 +06:00
|
|
|
(const char* thexExpr, const char* theyExpr, const char* thezExpr,
|
|
|
|
double theParamMin, double theParamMax, double theParamStep,
|
2012-10-08 17:16:36 +06:00
|
|
|
CurveType theCurveType, int theParamNbStep=0, bool theNewMethod=false);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) MakeSketcher (const char* theCommand,
|
2012-08-09 13:58:02 +06:00
|
|
|
std::list<double> theWorkingPlane);
|
2009-02-13 17:16:39 +05:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) MakeSketcherOnPlane (const char* theCommand,
|
2005-08-19 15:11:52 +06:00
|
|
|
Handle(GEOM_Object) theWorkingPlane);
|
2012-10-08 17:16:36 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) Make3DSketcherCommand (const char* theCommand);
|
|
|
|
Standard_EXPORT Handle(GEOM_Object) Make3DSketcher (std::list<double> theCoordinates);
|
2013-11-19 17:55:25 +06:00
|
|
|
|
|
|
|
Standard_EXPORT Handle(GEOM_Object) MakeIsoline
|
|
|
|
(const Handle(GEOM_Object) &theFace,
|
|
|
|
const bool IsUIso,
|
|
|
|
const double theParameter);
|
|
|
|
|
2014-09-08 18:07:16 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) MakePolyline2D
|
|
|
|
(const std::list <std::list <double> > &theCoords,
|
|
|
|
const Handle(TColStd_HArray1OfExtendedString) &theNames,
|
|
|
|
const Handle(TColStd_HArray1OfByte) &theTypes,
|
|
|
|
const Handle(TColStd_HArray1OfByte) &theCloseds,
|
|
|
|
const Handle(TColStd_HArray1OfReal) &theWorkingPlane);
|
|
|
|
|
|
|
|
Standard_EXPORT Handle(GEOM_Object) MakePolyline2DOnPlane
|
|
|
|
(const std::list <std::list <double> > &theCoords,
|
|
|
|
const Handle(TColStd_HArray1OfExtendedString) &theNames,
|
|
|
|
const Handle(TColStd_HArray1OfByte) &theTypes,
|
|
|
|
const Handle(TColStd_HArray1OfByte) &theCloseds,
|
|
|
|
const Handle(GEOM_Object) &theWorkingPlane);
|
2004-12-01 15:39:14 +05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|