Back to index

salome-geom  6.5.0
GEOMAlgo_WESScaler.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 // File:      GEOMAlgo_WESScaler.hxx
00020 // Created:
00021 // Author:
00022 //            <pkv@VORTEX>
00023 
00024 #ifndef _GEOMAlgo_WESScaler_HeaderFile
00025 #define _GEOMAlgo_WESScaler_HeaderFile
00026 
00027 #include <Standard.hxx>
00028 #include <Standard_Macro.hxx>
00029 #include <Standard_Real.hxx>
00030 #include <TopoDS_Face.hxx>
00031 #include <TopTools_ListOfShape.hxx>
00032 #include <GEOMAlgo_DataMapOfOrientedShapeShape.hxx>
00033 #include <TopoDS_Shape.hxx>
00034 #include <GEOMAlgo_Algo.hxx>
00035 
00036 //=======================================================================
00037 //function : GEOMAlgo_WESScaler
00038 //purpose  :
00039 //=======================================================================
00040 class GEOMAlgo_WESScaler  : public GEOMAlgo_Algo
00041 {
00042 public:
00044   Standard_EXPORT
00045     GEOMAlgo_WESScaler();
00046 
00047   Standard_EXPORT
00048     virtual ~GEOMAlgo_WESScaler();
00049 
00051   Standard_EXPORT
00052     void SetScale(const Standard_Real aWES) ;
00053 
00055   Standard_EXPORT
00056     Standard_Real Scale() const;
00057 
00058   Standard_EXPORT
00059     void SetFace(const TopoDS_Face& aF) ;
00060 
00061   Standard_EXPORT
00062     const TopoDS_Face& Face() const;
00063 
00064   Standard_EXPORT
00065     void SetEdges(const TopTools_ListOfShape& aLE) ;
00066 
00067   Standard_EXPORT
00068     const TopTools_ListOfShape& Edges() const;
00069 
00071   Standard_EXPORT
00072     virtual  void Perform() ;
00073 
00074   Standard_EXPORT
00075     const TopoDS_Face& FaceScaled() const;
00076 
00077   Standard_EXPORT
00078     const TopTools_ListOfShape& EdgesScaled() const;
00079 
00080   Standard_EXPORT
00081     const TopoDS_Shape& Image(const TopoDS_Shape& aS) const;
00082 
00083   Standard_EXPORT
00084     const TopoDS_Shape& Origin(const TopoDS_Shape& aS) const;
00085 
00087   Standard_EXPORT
00088     const GEOMAlgo_DataMapOfOrientedShapeShape& Images() const;
00089 
00091   Standard_EXPORT
00092     const GEOMAlgo_DataMapOfOrientedShapeShape& Origins() const;
00093 
00094  protected:
00095 
00097   Standard_EXPORT   virtual  void CheckData() ;
00098 
00099 
00100   Standard_Real myScale;
00101   TopoDS_Face myFace;
00102   TopTools_ListOfShape myEdges;
00103   TopoDS_Face myFaceScaled;
00104   TopTools_ListOfShape myEdgesScaled;
00105   GEOMAlgo_DataMapOfOrientedShapeShape myImages;
00106   GEOMAlgo_DataMapOfOrientedShapeShape myOrigins;
00107   TopoDS_Shape myShapeTmp;
00108 };
00109 
00110 #endif