Mercurial > octave-nkf
diff src/ChangeLog @ 7836:4fb2db9c87dd
Turn cdata properties into array_property. Add min/max computation to array_property.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Thu, 21 Feb 2008 13:45:04 +0100 |
parents | ca8b97bb952c |
children | 2c8f693c32fd |
line wrap: on
line diff
--- a/src/ChangeLog Wed Feb 20 21:58:22 2008 +0200 +++ b/src/ChangeLog Thu Feb 21 13:45:04 2008 +0100 @@ -19,6 +19,32 @@ 2008-06-04 Michael Goffioul <michael.goffioul@gmail.com> + * graphics.h.in (array_property::array_property(void)): New default + constructor. + (array_property::xmin, array_property:xmax, array_property::xminp, + array_property::min_val, array_property::max_val, + array_property::min_pos): New fields and accessors to hold min/max + values of the array data. + (array_property::get_data_limits): New method to compute min/max + values of the array data. + (base_properties::get_cdata_property, + graphics_object::get_cdata_property): Return array_property. + (image::properties::cdata, surface::properties::cdata, + patch::properties::cdata, patch::properties::facevertexcdata): Turn + into array_property type. + (image::properties::init, surface::properties::init, + patch::properties::init): Add constraint initialization for cdata and + facevertexcdata (patch only). + * genprops.awk (emit_get_array): New function to emit accessor for + array_property. + (emit_declarations): Use it. + * graphics.cc (get_array_limits): New template function to compute + min/max values of an Array<T> object. + (array_property::get_data_limits): New method to compute min/max + values of the array data, using get_array_limits. + (check_limit_vals): Overridden function with array_property. + (axes::update_axis_limits): Turn cdata property into array_property. + * graphics.h.in (patch::properties::get_color_data): New utility function to retrieve actual color data. * graphics.cc (patch::properties::get_color_data): Likewise.