summaryrefslogtreecommitdiff
path: root/src/StepShape/StepShape_GeometricSetSelect.cxx
blob: 1bd1764d253d885e374e451b7063b39f9bab4418 (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

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

StepShape_GeometricSetSelect::StepShape_GeometricSetSelect () {  }

Standard_Integer StepShape_GeometricSetSelect::CaseNum(const Handle(Standard_Transient)& ent) const
{
	if (ent.IsNull()) return 0;
	if (ent->IsKind(STANDARD_TYPE(StepGeom_Point))) return 1;
	if (ent->IsKind(STANDARD_TYPE(StepGeom_Curve))) return 2;
	if (ent->IsKind(STANDARD_TYPE(StepGeom_Surface))) return 3;
	return 0;
}

Handle(StepGeom_Point) StepShape_GeometricSetSelect::Point () const
{
	return GetCasted(StepGeom_Point,Value());
}

Handle(StepGeom_Curve) StepShape_GeometricSetSelect::Curve () const
{
	return GetCasted(StepGeom_Curve,Value());
}

Handle(StepGeom_Surface) StepShape_GeometricSetSelect::Surface () const
{
	return GetCasted(StepGeom_Surface,Value());
}