Version: 6.3.1

src/GEOMAlgo/GEOMAlgo_WESScaler.hxx

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  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 
00020 #ifndef _GEOMAlgo_WESScaler_HeaderFile
00021 #define _GEOMAlgo_WESScaler_HeaderFile
00022 
00023 #ifndef _Standard_Real_HeaderFile
00024 #include <Standard_Real.hxx>
00025 #endif
00026 #ifndef _TopoDS_Face_HeaderFile
00027 #include <TopoDS_Face.hxx>
00028 #endif
00029 #ifndef _TopTools_ListOfShape_HeaderFile
00030 #include <TopTools_ListOfShape.hxx>
00031 #endif
00032 #ifndef _GEOMAlgo_DataMapOfOrientedShapeShape_HeaderFile
00033 #include <GEOMAlgo_DataMapOfOrientedShapeShape.hxx>
00034 #endif
00035 #ifndef _TopoDS_Shape_HeaderFile
00036 #include <TopoDS_Shape.hxx>
00037 #endif
00038 #ifndef _GEOMAlgo_Algo_HeaderFile
00039 #include <GEOMAlgo_Algo.hxx>
00040 #endif
00041 class TopoDS_Face;
00042 class TopTools_ListOfShape;
00043 class TopoDS_Shape;
00044 class GEOMAlgo_DataMapOfOrientedShapeShape;
00045 
00046 
00047 #ifndef _Standard_HeaderFile
00048 #include <Standard.hxx>
00049 #endif
00050 #ifndef _Standard_Macro_HeaderFile
00051 #include <Standard_Macro.hxx>
00052 #endif
00053 
00054 
00055 class GEOMAlgo_WESScaler  : public GEOMAlgo_Algo {
00056 
00057 public:
00058 
00059     void* operator new(size_t,void* anAddress) 
00060       {
00061         return anAddress;
00062       }
00063     void* operator new(size_t size) 
00064       { 
00065         return Standard::Allocate(size); 
00066       }
00067     void  operator delete(void *anAddress) 
00068       { 
00069         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
00070       }
00071  // Methods PUBLIC
00072  // 
00073 
00075 Standard_EXPORT GEOMAlgo_WESScaler();
00076 Standard_EXPORT virtual ~GEOMAlgo_WESScaler();
00077 
00078 
00080 Standard_EXPORT   void SetScale(const Standard_Real aWES) ;
00081 
00082 
00084 Standard_EXPORT   Standard_Real Scale() const;
00085 
00086 
00087 Standard_EXPORT   void SetFace(const TopoDS_Face& aF) ;
00088 
00089 
00090 Standard_EXPORT  const TopoDS_Face& Face() const;
00091 
00092 
00093 Standard_EXPORT   void SetEdges(const TopTools_ListOfShape& aLE) ;
00094 
00095 
00096 Standard_EXPORT  const TopTools_ListOfShape& Edges() const;
00097 
00099 Standard_EXPORT virtual  void Perform() ;
00100 
00101 
00102 Standard_EXPORT  const TopoDS_Face& FaceScaled() const;
00103 
00104 
00105 Standard_EXPORT  const TopTools_ListOfShape& EdgesScaled() const;
00106 
00107 
00108 Standard_EXPORT  const TopoDS_Shape& Image(const TopoDS_Shape& aS) const;
00109 
00110 
00111 Standard_EXPORT  const TopoDS_Shape& Origin(const TopoDS_Shape& aS) const;
00112 
00113 
00115 Standard_EXPORT  const GEOMAlgo_DataMapOfOrientedShapeShape& Images() const;
00116 
00117 
00119 Standard_EXPORT  const GEOMAlgo_DataMapOfOrientedShapeShape& Origins() const;
00120 
00121 
00122 
00123 
00124 
00125 protected:
00126 
00127  // Methods PROTECTED
00128  // 
00129 
00131 Standard_EXPORT virtual  void CheckData() ;
00132 
00133 
00134  // Fields PROTECTED
00135  //
00136 Standard_Real myScale;
00137 TopoDS_Face myFace;
00138 TopTools_ListOfShape myEdges;
00139 TopoDS_Face myFaceScaled;
00140 TopTools_ListOfShape myEdgesScaled;
00141 GEOMAlgo_DataMapOfOrientedShapeShape myImages;
00142 GEOMAlgo_DataMapOfOrientedShapeShape myOrigins;
00143 TopoDS_Shape myShapeTmp;
00144 
00145 
00146 private: 
00147 
00148  // Methods PRIVATE
00149  // 
00150 
00151 
00152  // Fields PRIVATE
00153  //
00154 
00155 
00156 };
00157 
00158 
00159 
00160 
00161 
00162 // other Inline functions and methods (like "C++: function call" methods)
00163 //
00164 
00165 
00166 #endif
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS