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