1 // Copyright (C) 2014-2015 EDF-R&D
2 // This library is free software; you can redistribute it and/or
3 // modify it under the terms of the GNU Lesser General Public
4 // License as published by the Free Software Foundation; either
5 // version 2.1 of the License, or (at your option) any later version.
7 // This library is distributed in the hope that it will be useful,
8 // but WITHOUT ANY WARRANTY; without even the implied warranty of
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 // Lesser General Public License for more details.
12 // You should have received a copy of the GNU Lesser General Public
13 // License along with this library; if not, write to the Free Software
14 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #ifndef HYDROData_Transform_HeaderFile
20 #define HYDROData_Transform_HeaderFile
22 #include <Standard.hxx>
23 #include <Standard_Macro.hxx>
24 #include <Standard_Boolean.hxx>
25 #include <Standard_Integer.hxx>
27 #include <gp_Trsf.hxx>
29 #include <TopoDS_Shape.hxx>
30 #include <TopTools_ListOfShape.hxx>
32 #include <BRepBuilderAPI_Transform.hxx>
34 #include <BOPCol_ListOfShape.hxx>
35 #include <BOPCol_MapOfShape.hxx>
37 #include <BOPAlgo_BuilderShape.hxx>
38 #include <BOPAlgo_Builder.hxx>
40 #include <TCollection_AsciiString.hxx>
41 //=======================================================================
42 //class : HYDROData_Transform
44 //=======================================================================
45 class HYDROData_Transform : public BOPAlgo_BuilderShape
49 HYDROData_Transform();
52 virtual ~HYDROData_Transform();
55 void SetArgument(const TopoDS_Shape& theShape);
58 const TopoDS_Shape& Argument()const;
61 void SetToTransform(const Standard_Boolean theFlag);
64 Standard_Boolean ToTransform()const;
67 void SetTreshold(const Standard_Real theTreshold);
70 Standard_Real Treshold()const;
79 virtual void Perform();
83 virtual const TopTools_ListOfShape& Generated
84 (const TopoDS_Shape& theShape);
87 virtual const TopTools_ListOfShape& Modified
88 (const TopoDS_Shape& theShape);
91 virtual Standard_Boolean IsDeleted
92 (const TopoDS_Shape& theShape);
95 virtual Standard_Boolean HasDeleted();
98 virtual Standard_Boolean HasGenerated();
101 virtual Standard_Boolean HasModified();
104 static void SetFileName(const TCollection_AsciiString& theNameAfter);
110 virtual void CheckData();
128 Standard_Boolean myToTransform;
129 Standard_Real myTreshold;
130 TopoDS_Shape myArgument;
134 BRepBuilderAPI_Transform* myTransform1;
135 BRepBuilderAPI_Transform* myTransform2;
136 BOPAlgo_Builder* myBuilder;
138 int myErrorStatus; //no longer used since occt 7.2.1 (added for backcompatibility)
139 int myWarningStatus; //no longer used since occt 7.2.1