Graphics properties as objects
John W. Eaton
jwe at bevo.che.wisc.edu
Tue Jan 8 10:01:50 CST 2008
On 8-Jan-2008, Michael Goffioul wrote:
| What I implicitely meant is that the genprops.awk would
| generate *all* useful accessors. The color_property is probably the
| most tricky one, but you could imagine to generate:
|
| bool color_is (const std::string& name) const
| { return color.is (name); }
|
| const double* get_color (void) const
| { return (color.is_rgb () ? color.rgb () : 0); }
OK. I agree that we should generate as much of this code as possble
using the AWK script. How succesful that will be depends on whether
we only have a (relatively) small set of property types. Is that a
reasonable assumption?
jwe
More information about the Octave-maintainers
mailing list