1 //--------------------------------------------------------------------
3 // File Name : IGESAppli_PWBArtworkStackup.cxx
5 // Author : CKY / Contract Toubro-Larsen
6 // Copyright : MATRA-DATAVISION 1993
8 //--------------------------------------------------------------------
10 #include <IGESAppli_PWBArtworkStackup.ixx>
11 #include <Standard_DimensionMismatch.hxx>
14 IGESAppli_PWBArtworkStackup::IGESAppli_PWBArtworkStackup () { }
17 void IGESAppli_PWBArtworkStackup::Init
18 (const Standard_Integer nbPropVal,
19 const Handle(TCollection_HAsciiString)& anArtIdent,
20 const Handle(TColStd_HArray1OfInteger)& allLevelNums)
22 if (allLevelNums->Lower() != 1)
23 Standard_DimensionMismatch::Raise("IGESAppli_PWBArtworkStackup : Init");
24 theNbPropertyValues = nbPropVal;
25 theArtworkStackupIdent = anArtIdent;
26 theLevelNumbers = allLevelNums;
27 InitTypeAndForm(406,25);
30 Standard_Integer IGESAppli_PWBArtworkStackup::NbPropertyValues () const
32 return theNbPropertyValues;
35 Handle(TCollection_HAsciiString) IGESAppli_PWBArtworkStackup::Identification () const
37 return theArtworkStackupIdent;
40 Standard_Integer IGESAppli_PWBArtworkStackup::NbLevelNumbers () const
42 return theLevelNumbers->Length();
45 Standard_Integer IGESAppli_PWBArtworkStackup::LevelNumber
46 (const Standard_Integer Index) const
48 return theLevelNumbers->Value(Index);