/src/contrib/geom-5.1.2.7/inc_pythonocc/GEOMAlgo_FinderShapeOn.hxx

http://pythonocc.googlecode.com/ · C++ Header · 175 lines · 84 code · 58 blank · 33 comment · 1 complexity · 99315b3dcefcdf6308b236679b91fcf5 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_FinderShapeOn_HeaderFile
  23. #define _GEOMAlgo_FinderShapeOn_HeaderFile
  24. #ifndef _Handle_Geom_Surface_HeaderFile
  25. #include <Handle_Geom_Surface.hxx>
  26. #endif
  27. #ifndef _TopAbs_ShapeEnum_HeaderFile
  28. #include <TopAbs_ShapeEnum.hxx>
  29. #endif
  30. #ifndef _GEOMAlgo_State_HeaderFile
  31. #include <GEOMAlgo_State.hxx>
  32. #endif
  33. #ifndef _TopoDS_Shape_HeaderFile
  34. #include <TopoDS_Shape.hxx>
  35. #endif
  36. #ifndef _TopTools_ListOfShape_HeaderFile
  37. #include <TopTools_ListOfShape.hxx>
  38. #endif
  39. #ifndef _TopTools_DataMapOfShapeShape_HeaderFile
  40. #include <TopTools_DataMapOfShapeShape.hxx>
  41. #endif
  42. #ifndef _GEOMAlgo_IndexedDataMapOfShapeState_HeaderFile
  43. #include <GEOMAlgo_IndexedDataMapOfShapeState.hxx>
  44. #endif
  45. #ifndef _Standard_Boolean_HeaderFile
  46. #include <Standard_Boolean.hxx>
  47. #endif
  48. #ifndef _GEOMAlgo_ShapeAlgo_HeaderFile
  49. #include <GEOMAlgo_ShapeAlgo.hxx>
  50. #endif
  51. class Geom_Surface;
  52. class TopTools_ListOfShape;
  53. class TopoDS_Shape;
  54. class TopTools_DataMapOfShapeShape;
  55. #ifndef _Standard_HeaderFile
  56. #include <Standard.hxx>
  57. #endif
  58. #ifndef _Standard_Macro_HeaderFile
  59. #include <Standard_Macro.hxx>
  60. #endif
  61. class GEOMAlgo_FinderShapeOn : public GEOMAlgo_ShapeAlgo {
  62. public:
  63. void* operator new(size_t,void* anAddress)
  64. {
  65. return anAddress;
  66. }
  67. void* operator new(size_t size)
  68. {
  69. return Standard::Allocate(size);
  70. }
  71. void operator delete(void *anAddress)
  72. {
  73. if (anAddress) Standard::Free((Standard_Address&)anAddress);
  74. }
  75. // Methods PUBLIC
  76. //
  77. Standard_EXPORT GEOMAlgo_FinderShapeOn();
  78. Standard_EXPORT virtual ~GEOMAlgo_FinderShapeOn();
  79. Standard_EXPORT virtual void Perform() ;
  80. Standard_EXPORT void SetSurface(const Handle(Geom_Surface)& aS) ;
  81. Standard_EXPORT void SetShapeType(const TopAbs_ShapeEnum aST) ;
  82. Standard_EXPORT void SetState(const GEOMAlgo_State aSF) ;
  83. Standard_EXPORT const Handle_Geom_Surface& Surface() const;
  84. Standard_EXPORT TopAbs_ShapeEnum ShapeType() const;
  85. Standard_EXPORT GEOMAlgo_State State() const;
  86. Standard_EXPORT const TopTools_ListOfShape& Shapes() const;
  87. Standard_EXPORT static void CopySource(const TopoDS_Shape& aS,TopTools_DataMapOfShapeShape& aImages,TopTools_DataMapOfShapeShape& aOriginals,TopoDS_Shape& aSC) ;
  88. Standard_EXPORT static bool BuildTriangulation (const TopoDS_Shape& theShape);
  89. protected:
  90. // Methods PROTECTED
  91. //
  92. Standard_EXPORT virtual void CheckData() ;
  93. Standard_EXPORT void MakeArgument1() ;
  94. Standard_EXPORT void MakeArgument2() ;
  95. Standard_EXPORT void Find() ;
  96. Standard_EXPORT void Find(const TopoDS_Shape& aS) ;
  97. Standard_EXPORT void FindVertices() ;
  98. // Fields PROTECTED
  99. //
  100. Handle_Geom_Surface mySurface;
  101. TopAbs_ShapeEnum myShapeType;
  102. GEOMAlgo_State myState;
  103. TopoDS_Shape myArg1;
  104. TopoDS_Shape myArg2;
  105. TopTools_ListOfShape myLS;
  106. TopTools_DataMapOfShapeShape myImages;
  107. GEOMAlgo_IndexedDataMapOfShapeState myMSS;
  108. Standard_Boolean myIsAnalytic;
  109. private:
  110. // Methods PRIVATE
  111. //
  112. // Fields PRIVATE
  113. //
  114. };
  115. // other Inline functions and methods (like "C++: function call" methods)
  116. //
  117. #endif