mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
44
src/StepGeom/StepGeom_Vector.cxx
Executable file
44
src/StepGeom/StepGeom_Vector.cxx
Executable file
@@ -0,0 +1,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;
|
||||
}
|
Reference in New Issue
Block a user