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