blob: b5e7aff0dd7f5bcfbaf59280b725d3304693695f (
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
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
|
#include <StepGeom_TrimmedCurve.ixx>
StepGeom_TrimmedCurve::StepGeom_TrimmedCurve () {}
void StepGeom_TrimmedCurve::Init(
const Handle(TCollection_HAsciiString)& aName)
{
StepRepr_RepresentationItem::Init(aName);
}
void StepGeom_TrimmedCurve::Init(
const Handle(TCollection_HAsciiString)& aName,
const Handle(StepGeom_Curve)& aBasisCurve,
const Handle(StepGeom_HArray1OfTrimmingSelect)& aTrim1,
const Handle(StepGeom_HArray1OfTrimmingSelect)& aTrim2,
const Standard_Boolean aSenseAgreement,
const StepGeom_TrimmingPreference aMasterRepresentation)
{
// --- classe own fields ---
basisCurve = aBasisCurve;
trim1 = aTrim1;
trim2 = aTrim2;
senseAgreement = aSenseAgreement;
masterRepresentation = aMasterRepresentation;
// --- classe inherited fields ---
StepRepr_RepresentationItem::Init(aName);
}
void StepGeom_TrimmedCurve::SetBasisCurve(const Handle(StepGeom_Curve)& aBasisCurve)
{
basisCurve = aBasisCurve;
}
Handle(StepGeom_Curve) StepGeom_TrimmedCurve::BasisCurve() const
{
return basisCurve;
}
void StepGeom_TrimmedCurve::SetTrim1(const Handle(StepGeom_HArray1OfTrimmingSelect)& aTrim1)
{
trim1 = aTrim1;
}
Handle(StepGeom_HArray1OfTrimmingSelect) StepGeom_TrimmedCurve::Trim1() const
{
return trim1;
}
StepGeom_TrimmingSelect StepGeom_TrimmedCurve::Trim1Value(const Standard_Integer num) const
{
return trim1->Value(num);
}
Standard_Integer StepGeom_TrimmedCurve::NbTrim1 () const
{
return trim1->Length();
}
void StepGeom_TrimmedCurve::SetTrim2(const Handle(StepGeom_HArray1OfTrimmingSelect)& aTrim2)
{
trim2 = aTrim2;
}
Handle(StepGeom_HArray1OfTrimmingSelect) StepGeom_TrimmedCurve::Trim2() const
{
return trim2;
}
StepGeom_TrimmingSelect StepGeom_TrimmedCurve::Trim2Value(const Standard_Integer num) const
{
return trim2->Value(num);
}
Standard_Integer StepGeom_TrimmedCurve::NbTrim2 () const
{
return trim2->Length();
}
void StepGeom_TrimmedCurve::SetSenseAgreement(const Standard_Boolean aSenseAgreement)
{
senseAgreement = aSenseAgreement;
}
Standard_Boolean StepGeom_TrimmedCurve::SenseAgreement() const
{
return senseAgreement;
}
void StepGeom_TrimmedCurve::SetMasterRepresentation(const StepGeom_TrimmingPreference aMasterRepresentation)
{
masterRepresentation = aMasterRepresentation;
}
StepGeom_TrimmingPreference StepGeom_TrimmedCurve::MasterRepresentation() const
{
return masterRepresentation;
}
|