Back to index

salome-geom  6.5.0
Sketcher_Profile.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  GEOM SKETCHER : basic sketcher
00024 //  File   : Sketcher_Profile.h
00025 //  Author : Damien COQUERET
00026 //  Module : GEOM
00027 //  $Header: 
00028 //
00029 #include <gp_Pnt.hxx>
00030 #include <gp_Dir.hxx>
00031 #include <TopoDS_Shape.hxx>
00032 #include <string>
00033 
00034 class Sketcher_Profile
00035 {
00036 
00037 public:
00038   Standard_EXPORT Sketcher_Profile();
00039   Standard_EXPORT Sketcher_Profile(const char* aCmd);
00040 
00041 private:
00042   gp_Pnt myLastPoint;
00043   gp_Dir myLastDir;
00044 
00045   TopoDS_Shape myShape;
00046   bool myOK;
00047   std::string myErrMsg;
00048   double myError;
00049 
00050 public:
00051   Standard_EXPORT gp_Pnt GetLastPoint(){return myLastPoint;};
00052   Standard_EXPORT gp_Dir GetLastDir(){return myLastDir;};
00053 
00054   Standard_EXPORT const TopoDS_Shape& GetShape(){return myShape;};
00055   Standard_EXPORT bool IsDone(){return myOK;};
00056   Standard_EXPORT std::string ErrMsg(){return myErrMsg;};
00057   Standard_EXPORT double Error(){return myError;};
00058 
00059 };