blob: 0a4f7d85b252e69e3a45d5068f3f3d5211f83401 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
//--------------------------------------------------------------------
//
// File Name : IGESAppli_PWBArtworkStackup.cxx
// Date :
// Author : CKY / Contract Toubro-Larsen
// Copyright : MATRA-DATAVISION 1993
//
//--------------------------------------------------------------------
#include <IGESAppli_PWBArtworkStackup.ixx>
#include <Standard_DimensionMismatch.hxx>
IGESAppli_PWBArtworkStackup::IGESAppli_PWBArtworkStackup () { }
void IGESAppli_PWBArtworkStackup::Init
(const Standard_Integer nbPropVal,
const Handle(TCollection_HAsciiString)& anArtIdent,
const Handle(TColStd_HArray1OfInteger)& allLevelNums)
{
if (allLevelNums->Lower() != 1)
Standard_DimensionMismatch::Raise("IGESAppli_PWBArtworkStackup : Init");
theNbPropertyValues = nbPropVal;
theArtworkStackupIdent = anArtIdent;
theLevelNumbers = allLevelNums;
InitTypeAndForm(406,25);
}
Standard_Integer IGESAppli_PWBArtworkStackup::NbPropertyValues () const
{
return theNbPropertyValues;
}
Handle(TCollection_HAsciiString) IGESAppli_PWBArtworkStackup::Identification () const
{
return theArtworkStackupIdent;
}
Standard_Integer IGESAppli_PWBArtworkStackup::NbLevelNumbers () const
{
return theLevelNumbers->Length();
}
Standard_Integer IGESAppli_PWBArtworkStackup::LevelNumber
(const Standard_Integer Index) const
{
return theLevelNumbers->Value(Index);
}
|