2012-08-09 13:58:02 +06:00
|
|
|
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
2009-02-13 17:16:39 +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
|
2009-02-13 17:16:39 +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
|
|
|
|
// version 2.1 of the License.
|
2003-07-09 20:33:44 +06: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.
|
2003-07-09 20:33:44 +06: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
|
2003-07-09 20:33:44 +06:00
|
|
|
//
|
2012-08-09 13:58:02 +06:00
|
|
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
2003-07-09 20:33:44 +06:00
|
|
|
//
|
2012-08-09 13:58:02 +06:00
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
// GEOM SKETCHER : basic sketcher
|
2004-06-16 21:24:55 +06:00
|
|
|
// File : Sketcher_Profile.h
|
|
|
|
// Author : Damien COQUERET
|
2003-07-09 20:33:44 +06:00
|
|
|
// Module : GEOM
|
2009-02-13 17:16:39 +05:00
|
|
|
//
|
2004-06-16 21:24:55 +06:00
|
|
|
#include <gp_Pnt.hxx>
|
|
|
|
#include <gp_Dir.hxx>
|
|
|
|
#include <TopoDS_Shape.hxx>
|
2012-08-09 13:58:02 +06:00
|
|
|
#include <string>
|
2004-06-16 21:24:55 +06:00
|
|
|
|
|
|
|
class Sketcher_Profile
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT Sketcher_Profile();
|
|
|
|
Standard_EXPORT Sketcher_Profile(const char* aCmd);
|
2004-06-16 21:24:55 +06:00
|
|
|
|
|
|
|
private:
|
|
|
|
gp_Pnt myLastPoint;
|
|
|
|
gp_Dir myLastDir;
|
|
|
|
|
|
|
|
TopoDS_Shape myShape;
|
|
|
|
bool myOK;
|
2012-08-09 13:58:02 +06:00
|
|
|
std::string myErrMsg;
|
|
|
|
double myError;
|
2004-06-16 21:24:55 +06:00
|
|
|
|
|
|
|
public:
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT gp_Pnt GetLastPoint(){return myLastPoint;};
|
|
|
|
Standard_EXPORT gp_Dir GetLastDir(){return myLastDir;};
|
2004-06-16 21:24:55 +06:00
|
|
|
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT const TopoDS_Shape& GetShape(){return myShape;};
|
|
|
|
Standard_EXPORT bool IsDone(){return myOK;};
|
2012-08-09 13:58:02 +06:00
|
|
|
Standard_EXPORT std::string ErrMsg(){return myErrMsg;};
|
|
|
|
Standard_EXPORT double Error(){return myError;};
|
2004-06-16 21:24:55 +06:00
|
|
|
|
2003-05-12 21:09:12 +06:00
|
|
|
};
|