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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
//--------------------------------------------------------------------
//
// File Name : IGESDimen_DimensionDisplayData.cxx
// Date :
// Author : CKY / Contract Toubro-Larsen
// Copyright : MATRA-DATAVISION 1993
//
//--------------------------------------------------------------------
#include <IGESDimen_DimensionDisplayData.ixx>
IGESDimen_DimensionDisplayData::IGESDimen_DimensionDisplayData () { }
void IGESDimen_DimensionDisplayData::Init
(const Standard_Integer numProps,
const Standard_Integer aDimType, const Standard_Integer aLabelPos,
const Standard_Integer aCharSet,
const Handle(TCollection_HAsciiString)& aString,
const Standard_Integer aSymbol, const Standard_Real anAng,
const Standard_Integer anAlign, const Standard_Integer aLevel,
const Standard_Integer aPlace, const Standard_Integer anOrient,
const Standard_Real initVal,
const Handle(TColStd_HArray1OfInteger)& notes,
const Handle(TColStd_HArray1OfInteger)& startInd,
const Handle(TColStd_HArray1OfInteger)& endInd)
{
if (!notes.IsNull())
if (notes->Lower() != 1 ||
(startInd->Lower() != 1 || notes->Length() != startInd->Length()) ||
(endInd->Lower() != 1 || notes->Length() != endInd->Length()) )
Standard_DimensionMismatch::Raise("IGESDimen_DimensionDisplayData : Init");
theNbPropertyValues = numProps;
theDimensionType = aDimType;
theLabelPosition = aLabelPos;
theCharacterSet = aCharSet;
theLString = aString;
theDecimalSymbol = aSymbol;
theWitnessLineAngle = anAng;
theTextAlignment = anAlign;
theTextLevel = aLevel;
theTextPlacement = aPlace;
theArrowHeadOrientation = anOrient;
theInitialValue = initVal;
theSupplementaryNotes = notes;
theStartIndex = startInd;
theEndIndex = endInd;
InitTypeAndForm(406,30);
}
Standard_Integer IGESDimen_DimensionDisplayData::NbPropertyValues () const
{
return theNbPropertyValues;
}
Standard_Integer IGESDimen_DimensionDisplayData::DimensionType () const
{
return theDimensionType;
}
Standard_Integer IGESDimen_DimensionDisplayData::LabelPosition () const
{
return theLabelPosition;
}
Standard_Integer IGESDimen_DimensionDisplayData::CharacterSet () const
{
return theCharacterSet;
}
Handle(TCollection_HAsciiString) IGESDimen_DimensionDisplayData::LString () const
{
return theLString;
}
Standard_Integer IGESDimen_DimensionDisplayData::DecimalSymbol () const
{
return theDecimalSymbol;
}
Standard_Real IGESDimen_DimensionDisplayData::WitnessLineAngle () const
{
return theWitnessLineAngle;
}
Standard_Integer IGESDimen_DimensionDisplayData::TextAlignment () const
{
return theTextAlignment;
}
Standard_Integer IGESDimen_DimensionDisplayData::TextLevel () const
{
return theTextLevel;
}
Standard_Integer IGESDimen_DimensionDisplayData::TextPlacement () const
{
return theTextPlacement;
}
Standard_Integer IGESDimen_DimensionDisplayData::ArrowHeadOrientation () const
{
return theArrowHeadOrientation;
}
Standard_Real IGESDimen_DimensionDisplayData::InitialValue () const
{
return theInitialValue;
}
Standard_Integer IGESDimen_DimensionDisplayData::NbSupplementaryNotes () const
{
return (theSupplementaryNotes.IsNull() ? 0 : theSupplementaryNotes->Length());
}
Standard_Integer IGESDimen_DimensionDisplayData::SupplementaryNote
(const Standard_Integer num) const
{
return theSupplementaryNotes->Value(num);
}
Standard_Integer IGESDimen_DimensionDisplayData::StartIndex
(const Standard_Integer num) const
{
return theStartIndex->Value(num);
}
Standard_Integer IGESDimen_DimensionDisplayData::EndIndex
(const Standard_Integer num) const
{
return theEndIndex->Value(num);
}
|