[ome-devel] ome.xml.model.Polyline
Curtis Rueden
ctrueden at wisc.edu
Wed Apr 13 23:08:37 BST 2011
Hi Adam,
The ome.xml.model.Polyline class, as well as most of ome-xml.jar, is
autogenerated based on the OME-XML data model. The getters and setters
available correspond to the attributes of the associated element of OME-XML.
So that's why you only see a getter for the String—the XML element stores
the coordinates as strings. Hence, there is not really any better API for
working with the coordinate list.
This is one reason we should develop our own ROI data model classes in
ImageJ2, rather than directly leveraging the ones in ome-xml.jar. We will
still support the OME data model by an adapter layer.
-Curtis
On Wed, Apr 13, 2011 at 12:35 PM, Adam Fraser <afraser at broadinstitute.org>wrote:
> I need to iterate over points in a ome.xml.model.Polyline object, but the
> only getter I can find in the API is getPoints which returns a string. I'm
> sure I could parse it by hand, but my guess is there's a better way to
> iterate over this data.
>
> Thanks,
> Adam
>
> _______________________________________________
> ome-devel mailing list
> ome-devel at lists.openmicroscopy.org.uk
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20110413/14be3f2a/attachment.html>
More information about the ome-devel
mailing list