1 // Copyright (c) 2015 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
15 #ifndef _ShapePersistent_Geom2d_HeaderFile
16 #define _ShapePersistent_Geom2d_HeaderFile
18 #include <ShapePersistent_Geom.hxx>
20 #include <Geom2d_CartesianPoint.hxx>
21 #include <Geom2d_Direction.hxx>
22 #include <Geom2d_VectorWithMagnitude.hxx>
23 #include <Geom2d_AxisPlacement.hxx>
24 #include <Geom2d_Transformation.hxx>
25 #include <Geom2d_Curve.hxx>
28 class ShapePersistent_Geom2d : protected ShapePersistent_Geom
30 typedef geometryBase<Geom2d_Geometry> basic;
33 typedef ShapePersistent_Geom::Geometry Geometry;
35 typedef subBase_empty<basic> Point;
36 typedef instance<Point, Geom2d_CartesianPoint, gp_Pnt2d> CartesianPoint;
38 typedef subBase_gp<basic, gp_Vec2d> Vector;
39 typedef instance<Vector, Geom2d_Direction , gp_Dir2d> Direction;
40 typedef instance<Vector, Geom2d_VectorWithMagnitude, gp_Vec2d> VectorWithMagnitude;
42 typedef instance<basic, Geom2d_AxisPlacement, gp_Ax2d> AxisPlacement;
44 typedef instance <SharedBase<Geom2d_Transformation>,
45 Geom2d_Transformation,
46 gp_Trsf2d> Transformation;
48 typedef geometryBase<Geom2d_Curve> Curve;