+ update python bindings to reflect opacity/text-opacoity

changes
This commit is contained in:
Artem Pavlenko 2010-06-15 12:28:22 +00:00
parent 9c47291f88
commit dc85719853
2 changed files with 8 additions and 8 deletions

View file

@ -103,9 +103,9 @@ void export_markers_symbolizer()
.add_property("max_error",
&markers_symbolizer::get_max_error,
&markers_symbolizer::set_max_error)
//.add_property("opacity",
// &markers_symbolizer::get_opacity,
// &markers_symbolizer::set_opacity)
.add_property("opacity",
&markers_symbolizer::get_opacity,
&markers_symbolizer::set_opacity,
"Set/get the text opacity")
;
}

View file

@ -87,7 +87,7 @@ struct text_symbolizer_pickle_suite : boost::python::pickle_suite
extras.append(t.get_wrap_before());
extras.append(t.get_horizontal_alignment());
extras.append(t.get_justify_alignment());
extras.append(t.get_opacity());
extras.append(t.get_text_opacity());
return boost::python::make_tuple(disp,t.get_label_placement(),
t.get_vertical_alignment(),t.get_halo_radius(),t.get_halo_fill(),t.get_text_ratio(),
@ -150,7 +150,7 @@ struct text_symbolizer_pickle_suite : boost::python::pickle_suite
t.set_wrap_before(extract<bool>(extras[4]));
t.set_horizontal_alignment(extract<horizontal_alignment_e>(extras[5]));
t.set_justify_alignment(extract<justify_alignment_e>(extras[6]));
t.set_opacity(extract<double>(extras[7]));
t.set_text_opacity(extract<double>(extras[7]));
}
};
@ -255,8 +255,8 @@ void export_text_symbolizer()
.add_property("name",&text_symbolizer::get_name,
&text_symbolizer::set_name)
.add_property("opacity",
&text_symbolizer::get_opacity,
&text_symbolizer::set_opacity,
&text_symbolizer::get_text_opacity,
&text_symbolizer::set_text_opacity,
"Set/get the text opacity")
.add_property("text_convert",
&text_symbolizer::get_text_convert,