PageRenderTime 34ms CodeModel.GetById 24ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/src/contrib/geom-6.3.1.8/inc/GEOMAlgo_ShapeAlgo.hxx

https://gitlab.com/tylerluo/pythonocc
C++ Header | 124 lines | 50 code | 41 blank | 33 comment | 1 complexity | 9f9baed1037309903771fc253ca53750 MD5 | raw file
  1//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
  2//
  3//  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
  4//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
  5//
  6//  This library is free software; you can redistribute it and/or
  7//  modify it under the terms of the GNU Lesser General Public
  8//  License as published by the Free Software Foundation; either
  9//  version 2.1 of the License.
 10//
 11//  This library is distributed in the hope that it will be useful,
 12//  but WITHOUT ANY WARRANTY; without even the implied warranty of
 13//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 14//  Lesser General Public License for more details.
 15//
 16//  You should have received a copy of the GNU Lesser General Public
 17//  License along with this library; if not, write to the Free Software
 18//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 19//
 20//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 21//
 22#ifndef _GEOMAlgo_ShapeAlgo_HeaderFile
 23#define _GEOMAlgo_ShapeAlgo_HeaderFile
 24
 25#ifndef _TopoDS_Shape_HeaderFile
 26#include <TopoDS_Shape.hxx>
 27#endif
 28#ifndef _Standard_Real_HeaderFile
 29#include <Standard_Real.hxx>
 30#endif
 31#ifndef _IntTools_Context_HeaderFile
 32#include <IntTools_Context.hxx>
 33#endif
 34#ifndef _GEOMAlgo_Algo_HeaderFile
 35#include <GEOMAlgo_Algo.hxx>
 36#endif
 37class TopoDS_Shape;
 38
 39
 40#ifndef _Standard_HeaderFile
 41#include <Standard.hxx>
 42#endif
 43#ifndef _Standard_Macro_HeaderFile
 44#include <Standard_Macro.hxx>
 45#endif
 46
 47
 48class GEOMAlgo_ShapeAlgo  : public GEOMAlgo_Algo {
 49
 50public:
 51
 52    void* operator new(size_t,void* anAddress) 
 53      {
 54        return anAddress;
 55      }
 56    void* operator new(size_t size) 
 57      { 
 58        return Standard::Allocate(size); 
 59      }
 60    void  operator delete(void *anAddress) 
 61      { 
 62        if (anAddress) Standard::Free((Standard_Address&)anAddress); 
 63      }
 64 // Methods PUBLIC
 65 // 
 66
 67
 68Standard_EXPORT   void SetShape(const TopoDS_Shape& aS) ;
 69
 70
 71Standard_EXPORT   void SetTolerance(const Standard_Real aT) ;
 72
 73
 74Standard_EXPORT  const TopoDS_Shape& Shape() const;
 75
 76
 77Standard_EXPORT   Standard_Real Tolerance() const;
 78
 79
 80Standard_EXPORT  const TopoDS_Shape& Result() const;
 81
 82
 83
 84
 85
 86protected:
 87
 88 // Methods PROTECTED
 89 // 
 90
 91
 92Standard_EXPORT GEOMAlgo_ShapeAlgo();
 93Standard_EXPORT virtual ~GEOMAlgo_ShapeAlgo();
 94
 95
 96 // Fields PROTECTED
 97 //
 98TopoDS_Shape myShape;
 99Standard_Real myTolerance;
100TopoDS_Shape myResult;
101IntTools_Context myContext;
102
103
104private: 
105
106 // Methods PRIVATE
107 // 
108
109
110 // Fields PRIVATE
111 //
112
113
114};
115
116
117
118
119
120// other Inline functions and methods (like "C++: function call" methods)
121//
122
123
124#endif