1 // Created on: 1993-01-11
2 // Created by: CKY / Contract Toubro-Larsen ( Arun MENON )
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _IGESAppli_DrilledHole_HeaderFile
18 #define _IGESAppli_DrilledHole_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <Standard_Integer.hxx>
24 #include <Standard_Real.hxx>
25 #include <IGESData_IGESEntity.hxx>
26 #include <Standard_Boolean.hxx>
29 class IGESAppli_DrilledHole;
30 DEFINE_STANDARD_HANDLE(IGESAppli_DrilledHole, IGESData_IGESEntity)
32 //! defines DrilledHole, Type <406> Form <6>
33 //! in package IGESAppli
34 //! Identifies an entity representing a drilled hole
35 //! through a printed circuit board.
36 class IGESAppli_DrilledHole : public IGESData_IGESEntity
42 Standard_EXPORT IGESAppli_DrilledHole();
44 //! This method is used to set the fields of the class
46 //! - nbPropVal : Number of property values = 5
47 //! - aSize : Drill diameter size
48 //! - anotherSize : Finish diameter size
49 //! - aPlating : Plating indication flag
50 //! False = not plating
52 //! - aLayer : Lower numbered layer
53 //! - anotherLayer : Higher numbered layer
54 Standard_EXPORT void Init (const Standard_Integer nbPropVal, const Standard_Real aSize, const Standard_Real anotherSize, const Standard_Integer aPlating, const Standard_Integer aLayer, const Standard_Integer anotherLayer);
57 Standard_EXPORT Standard_Integer NbPropertyValues() const;
59 //! returns the drill diameter size
60 Standard_EXPORT Standard_Real DrillDiaSize() const;
62 //! returns the finish diameter size
63 Standard_EXPORT Standard_Real FinishDiaSize() const;
65 //! Returns Plating Status :
66 //! False = not plating / True = is plating
67 Standard_EXPORT Standard_Boolean IsPlating() const;
69 //! returns the lower numbered layer
70 Standard_EXPORT Standard_Integer NbLowerLayer() const;
72 //! returns the higher numbered layer
73 Standard_EXPORT Standard_Integer NbHigherLayer() const;
78 DEFINE_STANDARD_RTTIEXT(IGESAppli_DrilledHole,IGESData_IGESEntity)
88 Standard_Integer theNbPropertyValues;
89 Standard_Real theDrillDiaSize;
90 Standard_Real theFinishDiaSize;
91 Standard_Integer thePlatingFlag;
92 Standard_Integer theNbLowerLayer;
93 Standard_Integer theNbHigherLayer;
104 #endif // _IGESAppli_DrilledHole_HeaderFile