42cf5bc1 |
1 | // Created on: 1993-01-11 |
2 | // Created by: CKY / Contract Toubro-Larsen ( Anand NATRAJAN ) |
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 _IGESAppli_PWBDrilledHole_HeaderFile |
18 | #define _IGESAppli_PWBDrilledHole_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
42cf5bc1 |
21 | |
22 | #include <Standard_Integer.hxx> |
23 | #include <Standard_Real.hxx> |
24 | #include <IGESData_IGESEntity.hxx> |
25 | |
26 | |
27 | class IGESAppli_PWBDrilledHole; |
28 | DEFINE_STANDARD_HANDLE(IGESAppli_PWBDrilledHole, IGESData_IGESEntity) |
29 | |
30 | //! defines PWBDrilledHole, Type <406> Form <26> |
31 | //! in package IGESAppli |
32 | //! Used to identify an entity that locates a drilled hole |
33 | //! and to specify the characteristics of the drilled hole |
34 | class IGESAppli_PWBDrilledHole : public IGESData_IGESEntity |
35 | { |
36 | |
37 | public: |
38 | |
39 | |
40 | Standard_EXPORT IGESAppli_PWBDrilledHole(); |
41 | |
42 | //! This method is used to set the fields of the class |
43 | //! PWBDrilledHole |
44 | //! - nbPropVal : number of property values, always = 3 |
45 | //! - aDrillDia : Drill diameter size |
46 | //! - aFinishDia : Finish diameter size |
47 | //! - aCode : Function code for drilled hole |
48 | Standard_EXPORT void Init (const Standard_Integer nbPropVal, const Standard_Real aDrillDia, const Standard_Real aFinishDia, const Standard_Integer aCode); |
49 | |
50 | //! returns number of property values, always = 3 |
51 | Standard_EXPORT Standard_Integer NbPropertyValues() const; |
52 | |
53 | //! returns Drill diameter size |
54 | Standard_EXPORT Standard_Real DrillDiameterSize() const; |
55 | |
56 | //! returns Finish diameter size |
57 | Standard_EXPORT Standard_Real FinishDiameterSize() const; |
58 | |
59 | //! returns Function code for drilled hole |
60 | //! is 0, 1, 2, 3, 4, 5 or 5001-9999 |
61 | Standard_EXPORT Standard_Integer FunctionCode() const; |
62 | |
63 | |
64 | |
65 | |
92efcf78 |
66 | DEFINE_STANDARD_RTTIEXT(IGESAppli_PWBDrilledHole,IGESData_IGESEntity) |
42cf5bc1 |
67 | |
68 | protected: |
69 | |
70 | |
71 | |
72 | |
73 | private: |
74 | |
75 | |
76 | Standard_Integer theNbPropertyValues; |
77 | Standard_Real theDrillDiameter; |
78 | Standard_Real theFinishDiameter; |
79 | Standard_Integer theFunctionCode; |
80 | |
81 | |
82 | }; |
83 | |
84 | |
85 | |
86 | |
87 | |
88 | |
89 | |
90 | #endif // _IGESAppli_PWBDrilledHole_HeaderFile |