octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Graphics properties as objects


From: John W. Eaton
Subject: Re: Graphics properties as objects
Date: Tue, 08 Jan 2008 11:01:50 -0500

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]