Integration of OCCT 6.5.0 from SVN
[occt.git] / src / StepGeom / StepGeom_VectorOrDirection.cxx
CommitLineData
7fd59977 1
2#include <StepGeom_VectorOrDirection.ixx>
3#include <Interface_Macros.hxx>
4
5StepGeom_VectorOrDirection::StepGeom_VectorOrDirection () { }
6
7Standard_Integer StepGeom_VectorOrDirection::CaseNum(const Handle(Standard_Transient)& ent) const
8{
9 if (ent.IsNull()) return 0;
10 if (ent->IsKind(STANDARD_TYPE(StepGeom_Vector))) return 1;
11 if (ent->IsKind(STANDARD_TYPE(StepGeom_Direction))) return 2;
12 return 0;
13}
14
15Handle(StepGeom_Vector) StepGeom_VectorOrDirection::Vector () const
16{
17 return GetCasted(StepGeom_Vector,Value());
18}
19
20Handle(StepGeom_Direction) StepGeom_VectorOrDirection::Direction () const
21{
22 return GetCasted(StepGeom_Direction,Value());
23}