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:13:21 +0200

On 4/25/07, John W. Eaton <address@hidden> wrote:
It seems unfortunate that there are multiple objects that have the
same type ("line", "hggroup", etc) that are very similar but have
slightly different property lists.  It seems it would have been better
to have some property in the object that indicates its actual type
rather than just setting "type" to the name of what is apparently a
sort of base class for the object.

In Matlab, you can actually make a difference, because a line and
a baseline are objects from 2 different classes. A baseline is actually
an object of class "specgraph.baseline". So you can distinct it with
"isa". When dealing only with properties, the difference is harder to
make.
OTOH, using almost similar objects (from properties point of view)
has the advantage that code that works with line objects will also
work for baseline objects without any change.

Michael.


reply via email to

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