7fd59977 |
1 | |
2 | #include <StepShape_GeometricSetSelect.ixx> |
3 | #include <Interface_Macros.hxx> |
4 | |
5 | StepShape_GeometricSetSelect::StepShape_GeometricSetSelect () { } |
6 | |
7 | Standard_Integer StepShape_GeometricSetSelect::CaseNum(const Handle(Standard_Transient)& ent) const |
8 | { |
9 | if (ent.IsNull()) return 0; |
10 | if (ent->IsKind(STANDARD_TYPE(StepGeom_Point))) return 1; |
11 | if (ent->IsKind(STANDARD_TYPE(StepGeom_Curve))) return 2; |
12 | if (ent->IsKind(STANDARD_TYPE(StepGeom_Surface))) return 3; |
13 | return 0; |
14 | } |
15 | |
16 | Handle(StepGeom_Point) StepShape_GeometricSetSelect::Point () const |
17 | { |
18 | return GetCasted(StepGeom_Point,Value()); |
19 | } |
20 | |
21 | Handle(StepGeom_Curve) StepShape_GeometricSetSelect::Curve () const |
22 | { |
23 | return GetCasted(StepGeom_Curve,Value()); |
24 | } |
25 | |
26 | Handle(StepGeom_Surface) StepShape_GeometricSetSelect::Surface () const |
27 | { |
28 | return GetCasted(StepGeom_Surface,Value()); |
29 | } |