octave-maintainers
[Top][All Lists]
Advanced

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

Re: [OctDev] Java/OpenGL-based graphics package for octave


From: Michael Goffioul
Subject: Re: [OctDev] Java/OpenGL-based graphics package for octave
Date: Wed, 25 Apr 2007 21:27:22 +0200

On 4/25/07, John W. Eaton <address@hidden> wrote:
I'm not sure you can just pass the rendering to the children.  The
stemseries and barseries objects both have type "hggroup" but they are
apparently distinct objects because they have different properties,
and some of those properties must affect the way the object is
displayed.  So it seems to me that each of these objects must have its
own rendering function otherwise the rendering code for "hggroup"
would have to know about all possible types of hggroup objets, which
doesn't seem like a very tidy design.

I don't think so, because the properties of the hggroup somehow translate
automatically into properties of its children. For instance, setting "color" of
a stemseries sets "color" of the stem and marker lines (2 children of the
stemseries); setting "marker" propagates only to the marker line; setting
"xdata" propagates to the stem line (with NaN insertion) and to the marker
line (as-is).
In the end, at rendering-time, the children objects are already correctly
configured such that you don't actually care of the real type of the hggroup.
Rendering the stemseries reduces to rendering the stem and marker lines;
no need to know the "basevalue".

Michael.


reply via email to

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