summaryrefslogtreecommitdiff
path: root/src/StepGeom/StepGeom_VectorOrDirection.cxx
blob: da0beb0f2454f1e350cc0779df04cfd39899265d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

#include <StepGeom_VectorOrDirection.ixx>
#include <Interface_Macros.hxx>

StepGeom_VectorOrDirection::StepGeom_VectorOrDirection () {  }

Standard_Integer StepGeom_VectorOrDirection::CaseNum(const Handle(Standard_Transient)& ent) const
{
	if (ent.IsNull()) return 0;
	if (ent->IsKind(STANDARD_TYPE(StepGeom_Vector))) return 1;
	if (ent->IsKind(STANDARD_TYPE(StepGeom_Direction))) return 2;
	return 0;
}

Handle(StepGeom_Vector) StepGeom_VectorOrDirection::Vector () const
{
	return GetCasted(StepGeom_Vector,Value());
}

Handle(StepGeom_Direction) StepGeom_VectorOrDirection::Direction () const
{
	return GetCasted(StepGeom_Direction,Value());
}