blob: e5d717c5ba0431ae5de947013c429da4a79650cc (
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
|
#include <StepGeom_Vector.ixx>
StepGeom_Vector::StepGeom_Vector () {}
void StepGeom_Vector::Init(
const Handle(TCollection_HAsciiString)& aName)
{
StepRepr_RepresentationItem::Init(aName);
}
void StepGeom_Vector::Init(
const Handle(TCollection_HAsciiString)& aName,
const Handle(StepGeom_Direction)& aOrientation,
const Standard_Real aMagnitude)
{
// --- classe own fields ---
orientation = aOrientation;
magnitude = aMagnitude;
// --- classe inherited fields ---
StepRepr_RepresentationItem::Init(aName);
}
void StepGeom_Vector::SetOrientation(const Handle(StepGeom_Direction)& aOrientation)
{
orientation = aOrientation;
}
Handle(StepGeom_Direction) StepGeom_Vector::Orientation() const
{
return orientation;
}
void StepGeom_Vector::SetMagnitude(const Standard_Real aMagnitude)
{
magnitude = aMagnitude;
}
Standard_Real StepGeom_Vector::Magnitude() const
{
return magnitude;
}
|