1 // Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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, or (at your option) any later version.
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.
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 #ifndef HYDROData_Transform_HeaderFile
24 #define HYDROData_Transform_HeaderFile
26 #include <Standard.hxx>
27 #include <Standard_Macro.hxx>
28 #include <Standard_Boolean.hxx>
29 #include <Standard_Integer.hxx>
31 #include <gp_Trsf.hxx>
33 #include <TopoDS_Shape.hxx>
34 #include <TopTools_ListOfShape.hxx>
36 #include <BRepBuilderAPI_Transform.hxx>
38 #include <BOPCol_ListOfShape.hxx>
39 #include <BOPCol_MapOfShape.hxx>
41 #include <BOPAlgo_BuilderShape.hxx>
42 #include <BOPAlgo_Builder.hxx>
44 #include <TCollection_AsciiString.hxx>
45 //=======================================================================
46 //class : HYDROData_Transform
48 //=======================================================================
49 class HYDROData_Transform : public BOPAlgo_BuilderShape
53 HYDROData_Transform();
56 virtual ~HYDROData_Transform();
59 void SetArgument(const TopoDS_Shape& theShape);
62 const TopoDS_Shape& Argument()const;
65 void SetToTransform(const Standard_Boolean theFlag);
68 Standard_Boolean ToTransform()const;
71 void SetTreshold(const Standard_Real theTreshold);
74 Standard_Real Treshold()const;
83 virtual void Perform();
87 virtual const TopTools_ListOfShape& Generated
88 (const TopoDS_Shape& theShape);
91 virtual const TopTools_ListOfShape& Modified
92 (const TopoDS_Shape& theShape);
95 virtual Standard_Boolean IsDeleted
96 (const TopoDS_Shape& theShape);
99 virtual Standard_Boolean HasDeleted();
102 virtual Standard_Boolean HasGenerated();
105 virtual Standard_Boolean HasModified();
108 static void SetFileName(const TCollection_AsciiString& theNameAfter);
114 virtual void CheckData();
132 Standard_Boolean myToTransform;
133 Standard_Real myTreshold;
134 TopoDS_Shape myArgument;
138 BRepBuilderAPI_Transform* myTransform1;
139 BRepBuilderAPI_Transform* myTransform2;
140 BOPAlgo_Builder* myBuilder;