0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / IGESAppli / IGESAppli_LevelToPWBLayerMap.hxx
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_LevelToPWBLayerMap_HeaderFile
18 #define _IGESAppli_LevelToPWBLayerMap_HeaderFile
19
20 #include <Standard.hxx>
21
22 #include <Standard_Integer.hxx>
23 #include <TColStd_HArray1OfInteger.hxx>
24 #include <Interface_HArray1OfHAsciiString.hxx>
25 #include <IGESData_IGESEntity.hxx>
26 class TCollection_HAsciiString;
27
28
29 class IGESAppli_LevelToPWBLayerMap;
30 DEFINE_STANDARD_HANDLE(IGESAppli_LevelToPWBLayerMap, IGESData_IGESEntity)
31
32 //! defines LevelToPWBLayerMap, Type <406> Form <24>
33 //! in package IGESAppli
34 //! Used to correlate an exchange file level number with
35 //! its corresponding native level identifier, physical PWB
36 //! layer number and predefined functional level
37 //! identification
38 class IGESAppli_LevelToPWBLayerMap : public IGESData_IGESEntity
39 {
40
41 public:
42
43   
44   Standard_EXPORT IGESAppli_LevelToPWBLayerMap();
45   
46   //! This method is used to set the fields of the class
47   //! LevelToPWBLayerMap
48   //! - nbPropVal       : Number of property values
49   //! - allExchLevels   : Exchange File Level Numbers
50   //! - allNativeLevels : Native Level Identifications
51   //! - allPhysLevels   : Physical Layer Numbers
52   //! - allExchIdents   : Exchange File Level Identifications
53   //! raises exception if allExchLevels, allNativeLevels, allPhysLevels
54   //! and all ExchIdents are not of same dimensions
55   Standard_EXPORT void Init (const Standard_Integer nbPropVal, const Handle(TColStd_HArray1OfInteger)& allExchLevels, const Handle(Interface_HArray1OfHAsciiString)& allNativeLevels, const Handle(TColStd_HArray1OfInteger)& allPhysLevels, const Handle(Interface_HArray1OfHAsciiString)& allExchIdents);
56   
57   //! returns number of property values
58   Standard_EXPORT Standard_Integer NbPropertyValues() const;
59   
60   //! returns number of level to layer definitions
61   Standard_EXPORT Standard_Integer NbLevelToLayerDefs() const;
62   
63   //! returns Exchange File Level Number
64   //! raises exception if Index <= 0 or Index > NbLevelToLayerDefs
65   Standard_EXPORT Standard_Integer ExchangeFileLevelNumber (const Standard_Integer Index) const;
66   
67   //! returns Native Level Identification
68   //! raises exception if Index <= 0 or Index > NbLevelToLayerDefs
69   Standard_EXPORT Handle(TCollection_HAsciiString) NativeLevel (const Standard_Integer Index) const;
70   
71   //! returns Physical Layer Number
72   //! raises exception if Index <= 0 or Index > NbLevelToLayerDefs
73   Standard_EXPORT Standard_Integer PhysicalLayerNumber (const Standard_Integer Index) const;
74   
75   Standard_EXPORT Handle(TCollection_HAsciiString) ExchangeFileLevelIdent (const Standard_Integer Index) const;
76
77
78
79
80   DEFINE_STANDARD_RTTIEXT(IGESAppli_LevelToPWBLayerMap,IGESData_IGESEntity)
81
82 protected:
83
84
85
86
87 private:
88
89
90   Standard_Integer theNbPropertyValues;
91   Handle(TColStd_HArray1OfInteger) theExchangeFileLevelNumber;
92   Handle(Interface_HArray1OfHAsciiString) theNativeLevel;
93   Handle(TColStd_HArray1OfInteger) thePhysicalLayerNumber;
94   Handle(Interface_HArray1OfHAsciiString) theExchangeFileLevelIdent;
95
96
97 };
98
99
100
101
102
103
104
105 #endif // _IGESAppli_LevelToPWBLayerMap_HeaderFile