mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
Correctly register objects.
This commit is contained in:
parent
a140c9ef40
commit
593c8a4838
@ -598,6 +598,7 @@ register_fonts()
|
||||
# and ensure correct documentation processing
|
||||
__all__ = [
|
||||
# classes
|
||||
'CharProperties',
|
||||
'Color',
|
||||
'Coord',
|
||||
'Palette',
|
||||
@ -610,6 +611,7 @@ __all__ = [
|
||||
'Featureset',
|
||||
'FontEngine',
|
||||
'FontSet',
|
||||
'FormatingNode',
|
||||
'Geometry2d',
|
||||
'Image',
|
||||
'ImageView',
|
||||
@ -640,7 +642,10 @@ __all__ = [
|
||||
'Style',
|
||||
'Symbolizer',
|
||||
'Symbolizers',
|
||||
'TextPlacements',
|
||||
'TextPlacementInfo',
|
||||
'TextSymbolizer',
|
||||
'TextSymbolizerProperties',
|
||||
'ViewTransform',
|
||||
# enums
|
||||
'aspect_fix_mode',
|
||||
|
||||
@ -175,13 +175,14 @@ void export_text_placement()
|
||||
/* from_xml, to_xml operate on mapnik's internal XML tree and don't make sense in python.*/
|
||||
;
|
||||
|
||||
class_<TextPlacementsWrap, boost::noncopyable>("TextPlacements")
|
||||
class_<TextPlacementsWrap, boost::shared_ptr<TextPlacementsWrap>, boost::noncopyable>("TextPlacements")
|
||||
.def_readwrite("defaults", &text_placements::properties)
|
||||
.def("get_placement_info", pure_virtual(&text_placements::get_placement_info))
|
||||
/* TODO: get_all expressions. */
|
||||
;
|
||||
register_ptr_to_python<boost::shared_ptr<text_placements> >();
|
||||
|
||||
class_<TextPlacementInfoWrap, boost::noncopyable>("TextPlacementInfo",
|
||||
class_<TextPlacementInfoWrap, boost::shared_ptr<TextPlacementInfoWrap>, boost::noncopyable>("TextPlacementInfo",
|
||||
init<text_placements const*, double, dimension_type, bool>())
|
||||
.def("next", pure_virtual(&text_placement_info::next))
|
||||
.def("get_actual_label_spacing", &text_placement_info::get_actual_label_spacing)
|
||||
@ -196,9 +197,10 @@ void export_text_placement()
|
||||
.def_readwrite("additional_boxes", &text_placement_info::additional_boxes)
|
||||
.def_readwrite("envelopes", &text_placement_info::envelopes)
|
||||
// .def_readwrite("placements", &text_placement_info::placements)
|
||||
|
||||
;
|
||||
|
||||
register_ptr_to_python<boost::shared_ptr<text_placement_info> >();
|
||||
|
||||
//TODO: Python namespace
|
||||
class_<NodeWrap, boost::noncopyable>("FormatingNode")
|
||||
.def("apply", pure_virtual(&formating::node::apply))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user