mirror of https://github.com/KLayout/klayout.git
Reactivated some from_xy methods for backward compatibility
This commit is contained in:
parent
9ff1a76f94
commit
5ee781a93f
|
|
@ -462,7 +462,7 @@ static db::DBox box_to_dbox (const db::Box *b, double dbu)
|
|||
}
|
||||
|
||||
Class<db::Box> decl_Box ("Box",
|
||||
constructor ("new", &box_from_dbox, gsi::arg ("dbox"),
|
||||
constructor ("new|#from_dbox", &box_from_dbox, gsi::arg ("dbox"),
|
||||
"@brief Creates an integer coordinate box from a floating-point coordinate box\n"
|
||||
"\n"
|
||||
"This constructor has been introduced in version 0.25 and replaces the previous static method 'from_dbox'."
|
||||
|
|
@ -517,7 +517,7 @@ static db::Box dbox_to_box (const db::DBox *b, double dbu)
|
|||
}
|
||||
|
||||
Class<db::DBox> decl_DBox ("DBox",
|
||||
constructor ("new", &dbox_from_ibox, gsi::arg ("box"),
|
||||
constructor ("new|#from_ibox", &dbox_from_ibox, gsi::arg ("box"),
|
||||
"@brief Creates a floating-point coordinate box from an integer coordinate box\n"
|
||||
"\n"
|
||||
"This constructor has been introduced in version 0.25 and replaces the previous static method 'from_ibox'."
|
||||
|
|
|
|||
|
|
@ -586,7 +586,7 @@ static db::DEdge edge_to_dedge (const db::Edge *e, double dbu)
|
|||
}
|
||||
|
||||
Class<db::Edge> decl_Edge ("Edge",
|
||||
constructor ("new", &edge_from_dedge, gsi::arg ("dedge"),
|
||||
constructor ("new|#from_dedge", &edge_from_dedge, gsi::arg ("dedge"),
|
||||
"@brief Creates an integer coordinate edge from a floating-point coordinate edge\n"
|
||||
"\n"
|
||||
"This constructor has been introduced in version 0.25 and replaces the previous static method 'from_dedge'."
|
||||
|
|
@ -635,7 +635,7 @@ static db::Edge dedge_to_edge (const db::DEdge *e, double dbu)
|
|||
}
|
||||
|
||||
Class<db::DEdge> decl_DEdge ("DEdge",
|
||||
constructor ("new", &dedge_from_iedge, gsi::arg ("edge"),
|
||||
constructor ("new|#from_iedge", &dedge_from_iedge, gsi::arg ("edge"),
|
||||
"@brief Creates a floating-point coordinate edge from an integer coordinate edge\n"
|
||||
"\n"
|
||||
"This constructor has been introduced in version 0.25 and replaces the previous static method 'from_iedge'."
|
||||
|
|
|
|||
|
|
@ -342,7 +342,7 @@ static db::Path path_round_corners (const db::Path *p, double radius, int npoint
|
|||
}
|
||||
|
||||
Class<db::Path> decl_Path ("Path",
|
||||
constructor ("new", &path_from_dpath, gsi::arg ("dpath"),
|
||||
constructor ("new|#from_dpath", &path_from_dpath, gsi::arg ("dpath"),
|
||||
"@brief Creates an integer coordinate path from a floating-point coordinate path\n"
|
||||
"\n"
|
||||
"This constructor has been introduced in version 0.25 and replaces the previous static method 'from_dpath'."
|
||||
|
|
@ -408,7 +408,7 @@ static db::DPath dpath_round_corners (const db::DPath *p, double radius, int npo
|
|||
}
|
||||
|
||||
Class<db::DPath> decl_DPath ("DPath",
|
||||
constructor ("new", &dpath_from_ipath, gsi::arg ("path"),
|
||||
constructor ("new|#from_ipath", &dpath_from_ipath, gsi::arg ("path"),
|
||||
"@brief Creates a floating-point coordinate path from an integer coordinate path\n"
|
||||
"\n"
|
||||
"This constructor has been introduced in version 0.25 and replaces the previous static method 'from_ipath'."
|
||||
|
|
|
|||
|
|
@ -216,7 +216,7 @@ static db::Point dpoint_to_point (const db::DPoint *p, double dbu)
|
|||
}
|
||||
|
||||
Class<db::DPoint> decl_DPoint ("DPoint",
|
||||
constructor ("new", &dpoint_from_ipoint, gsi::arg ("point"),
|
||||
constructor ("new|#from_ipoint", &dpoint_from_ipoint, gsi::arg ("point"),
|
||||
"@brief Creates a floating-point coordinate point from an integer coordinate point\n"
|
||||
"\n"
|
||||
"This constructor has been introduced in version 0.25 and replaces the previous static method 'from_ipoint'."
|
||||
|
|
@ -252,7 +252,7 @@ static db::DPoint point_to_dpoint (const db::Point *p, double dbu)
|
|||
}
|
||||
|
||||
Class<db::Point> decl_Point ("Point",
|
||||
constructor ("new", &point_from_dpoint, gsi::arg ("dpoint"),
|
||||
constructor ("new|#from_dpoint", &point_from_dpoint, gsi::arg ("dpoint"),
|
||||
"@brief Creates an integer coordinate point from a floating-point coordinate point\n"
|
||||
"\n"
|
||||
"This constructor has been introduced in version 0.25 and replaces the previous static method 'from_dpoint'."
|
||||
|
|
|
|||
|
|
@ -524,7 +524,7 @@ static db::DSimplePolygon spolygon_to_dspolygon (const db::SimplePolygon *p, dou
|
|||
}
|
||||
|
||||
Class<db::SimplePolygon> decl_SimplePolygon ("SimplePolygon",
|
||||
constructor ("new", &spolygon_from_dspolygon, gsi::arg ("dpolygon"),
|
||||
constructor ("new|#from_dpoly", &spolygon_from_dspolygon, gsi::arg ("dpolygon"),
|
||||
"@brief Creates an integer coordinate polygon from a floating-point coordinate polygon\n"
|
||||
"\n"
|
||||
"This constructor has been introduced in version 0.25 and replaces the previous static method 'from_dpoly'."
|
||||
|
|
@ -640,7 +640,7 @@ static db::SimplePolygon dspolygon_to_spolygon (const db::DSimplePolygon *p, dou
|
|||
}
|
||||
|
||||
Class<db::DSimplePolygon> decl_DSimplePolygon ("DSimplePolygon",
|
||||
constructor ("new", &dspolygon_from_ispolygon, gsi::arg ("polygon"),
|
||||
constructor ("new|#from_ipoly", &dspolygon_from_ispolygon, gsi::arg ("polygon"),
|
||||
"@brief Creates a floating-point coordinate polygon from an integer coordinate polygon"
|
||||
"\n"
|
||||
"This constructor has been introduced in version 0.25 and replaces the previous static method 'from_ipoly'."
|
||||
|
|
@ -1538,7 +1538,7 @@ static gsi::Methods make_td_constants ()
|
|||
}
|
||||
|
||||
Class<db::Polygon> decl_Polygon ("Polygon",
|
||||
constructor ("new", &polygon_from_dpolygon, gsi::arg ("dpolygon"),
|
||||
constructor ("new|#from_dpoly", &polygon_from_dpolygon, gsi::arg ("dpolygon"),
|
||||
"@brief Creates an integer coordinate polygon from a floating-point coordinate polygon\n"
|
||||
"\n"
|
||||
"This constructor has been introduced in version 0.25 and replaces the previous static method 'from_dpolygon'."
|
||||
|
|
@ -1749,7 +1749,7 @@ static db::Polygon dpolygon_to_polygon (const db::DPolygon *p, double dbu)
|
|||
}
|
||||
|
||||
Class<db::DPolygon> decl_DPolygon ("DPolygon",
|
||||
constructor ("new", &dpolygon_from_ipolygon, gsi::arg ("polygon"),
|
||||
constructor ("new|#from_ipoly", &dpolygon_from_ipolygon, gsi::arg ("polygon"),
|
||||
"@brief Creates a floating-point coordinate polygon from an integer coordinate polygon\n"
|
||||
"\n"
|
||||
"This constructor has been introduced in version 0.25 and replaces the previous static method 'from_ipolygon'."
|
||||
|
|
|
|||
Loading…
Reference in New Issue