1 // Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 // File: GEOMAlgo_WESScaler.hxx
24 #ifndef _GEOMAlgo_WESScaler_HeaderFile
25 #define _GEOMAlgo_WESScaler_HeaderFile
27 #include <Standard.hxx>
28 #include <Standard_Macro.hxx>
29 #include <Standard_Real.hxx>
30 #include <TopoDS_Face.hxx>
31 #include <TopTools_ListOfShape.hxx>
32 #include <GEOMAlgo_DataMapOfOrientedShapeShape.hxx>
33 #include <TopoDS_Shape.hxx>
34 #include <GEOMAlgo_Algo.hxx>
36 //=======================================================================
37 //function : GEOMAlgo_WESScaler
39 //=======================================================================
40 class GEOMAlgo_WESScaler : public GEOMAlgo_Algo
43 //! Empty constructor <br>
48 virtual ~GEOMAlgo_WESScaler();
52 void SetScale(const Standard_Real aWES) ;
56 Standard_Real Scale() const;
59 void SetFace(const TopoDS_Face& aF) ;
62 const TopoDS_Face& Face() const;
65 void SetEdges(const TopTools_ListOfShape& aLE) ;
68 const TopTools_ListOfShape& Edges() const;
70 //! Performs the algorithm <br>
72 virtual void Perform() ;
75 const TopoDS_Face& FaceScaled() const;
78 const TopTools_ListOfShape& EdgesScaled() const;
81 const TopoDS_Shape& Image(const TopoDS_Shape& aS) const;
84 const TopoDS_Shape& Origin(const TopoDS_Shape& aS) const;
88 const GEOMAlgo_DataMapOfOrientedShapeShape& Images() const;
92 const GEOMAlgo_DataMapOfOrientedShapeShape& Origins() const;
96 //! Performs the algorithm <br>
97 Standard_EXPORT virtual void CheckData() ;
100 Standard_Real myScale;
102 TopTools_ListOfShape myEdges;
103 TopoDS_Face myFaceScaled;
104 TopTools_ListOfShape myEdgesScaled;
105 GEOMAlgo_DataMapOfOrientedShapeShape myImages;
106 GEOMAlgo_DataMapOfOrientedShapeShape myOrigins;
107 TopoDS_Shape myShapeTmp;