// Created on: 1993-01-11 // Created by: CKY / Contract Toubro-Larsen ( Arun MENON ) // Copyright (c) 1993-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #ifndef _IGESAppli_DrilledHole_HeaderFile #define _IGESAppli_DrilledHole_HeaderFile #include "Standard.hxx" #include "Standard_Integer.hxx" #include "Standard_Real.hxx" #include "IGESData_IGESEntity.hxx" //! defines DrilledHole, Type <406> Form <6> //! in package IGESAppli //! Identifies an entity representing a drilled hole //! through a printed circuit board. class IGESAppli_DrilledHole : public IGESData_IGESEntity { public: Standard_EXPORT IGESAppli_DrilledHole(); //! This method is used to set the fields of the class //! DrilledHole //! - nbPropVal : Number of property values = 5 //! - aSize : Drill diameter size //! - anotherSize : Finish diameter size //! - aPlating : Plating indication flag //! False = not plating //! True = is plating //! - aLayer : Lower numbered layer //! - anotherLayer : Higher numbered layer Standard_EXPORT void Init(const int nbPropVal, const double aSize, const double anotherSize, const int aPlating, const int aLayer, const int anotherLayer); //! is always 5 Standard_EXPORT int NbPropertyValues() const; //! returns the drill diameter size Standard_EXPORT double DrillDiaSize() const; //! returns the finish diameter size Standard_EXPORT double FinishDiaSize() const; //! Returns Plating Status: //! False = not plating / True = is plating Standard_EXPORT bool IsPlating() const; //! returns the lower numbered layer Standard_EXPORT int NbLowerLayer() const; //! returns the higher numbered layer Standard_EXPORT int NbHigherLayer() const; DEFINE_STANDARD_RTTIEXT(IGESAppli_DrilledHole, IGESData_IGESEntity) private: int theNbPropertyValues; double theDrillDiaSize; double theFinishDiaSize; int thePlatingFlag; int theNbLowerLayer; int theNbHigherLayer; }; #endif // _IGESAppli_DrilledHole_HeaderFile