0032641: Coding - get rid of unused forward declarations [IGESAppli to LDOM]
[occt.git] / src / IGESGeom / IGESGeom_OffsetSurface.hxx
1 // Created on: 1993-01-09
2 // Created by: CKY / Contract Toubro-Larsen ( TCD )
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _IGESGeom_OffsetSurface_HeaderFile
18 #define _IGESGeom_OffsetSurface_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <gp_XYZ.hxx>
24 #include <Standard_Real.hxx>
25 #include <IGESData_IGESEntity.hxx>
26 class gp_Vec;
27
28
29 class IGESGeom_OffsetSurface;
30 DEFINE_STANDARD_HANDLE(IGESGeom_OffsetSurface, IGESData_IGESEntity)
31
32 //! defines IGESOffsetSurface, Type <140> Form <0>
33 //! in package IGESGeom
34 //! An offset surface is a surface defined in terms of an
35 //! already existing surface.If S(u, v) is a parametrised
36 //! regular surface and N(u, v) is a differential field of
37 //! unit normal vectors defined on the whole surface, and
38 //! "d" a fixed non zero real number, then offset surface
39 //! to S is a parametrised surface S(u, v) given by
40 //! O(u, v) = S(u, v) + d * N(u, v);
41 //! u1 <= u <= u2; v1 <= v <= v2;
42 class IGESGeom_OffsetSurface : public IGESData_IGESEntity
43 {
44
45 public:
46
47   
48   Standard_EXPORT IGESGeom_OffsetSurface();
49   
50   //! This method is used to set the fields of the class
51   //! OffsetSurface
52   //! - anIndicator : Offset indicator
53   //! - aDistance   : Offset distance
54   //! - aSurface    : Surface that is offset
55   Standard_EXPORT void Init (const gp_XYZ& anIndicatoR, const Standard_Real aDistance, const Handle(IGESData_IGESEntity)& aSurface);
56   
57   //! returns the offset indicator
58   Standard_EXPORT gp_Vec OffsetIndicator() const;
59   
60   //! returns the offset indicator after applying Transf. Matrix
61   Standard_EXPORT gp_Vec TransformedOffsetIndicator() const;
62   
63   //! returns the distance by which surface is offset
64   Standard_EXPORT Standard_Real Distance() const;
65   
66   //! returns the surface that has been offset
67   Standard_EXPORT Handle(IGESData_IGESEntity) Surface() const;
68
69
70
71
72   DEFINE_STANDARD_RTTIEXT(IGESGeom_OffsetSurface,IGESData_IGESEntity)
73
74 protected:
75
76
77
78
79 private:
80
81
82   gp_XYZ theIndicator;
83   Standard_Real theDistance;
84   Handle(IGESData_IGESEntity) theSurface;
85
86
87 };
88
89
90
91
92
93
94
95 #endif // _IGESGeom_OffsetSurface_HeaderFile