Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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
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
00128
00129
00131 Standard_EXPORT virtual void CheckData() ;
00132
00133
00134
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
00149
00150
00151
00152
00153
00154
00155
00156 };
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166 #endif