<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Thanks. I was actually interested in formating arguments for Python
(not Java).<br>
<br>
P<br>
<br>
<div class="moz-cite-prefix">On 14/01/2016 14:04, Mark Carroll
wrote:<br>
</div>
<blockquote cite="mid:5697AB00.30103@dundee.ac.uk" type="cite">On
01/14/2016 01:38 PM, Paul Kibet Korir wrote:
<br>
<br>
<blockquote type="cite">I'm having a difficult time making sense
of OMERO model objects
<br>
described here
<br>
<a class="moz-txt-link-rfc2396E" href="https://www.openmicroscopy.org/site/support/omero5.2/developers/Model/EveryObject.html"><https://www.openmicroscopy.org/site/support/omero5.2/developers/Model/EveryObject.html></a>.
<br>
There seems to be no explicit definition of the argument
formats.
<br>
<br>
I'm presently working with omero.model.PolygonI() objects for
which I
<br>
need to set a number of attributes e.g. fillColor, strokeColor
etc. The
<br>
documentation specifies base types (e.g. int, string, bool) for
the
<br>
arguments but no accompanying structure.
<br>
</blockquote>
<br>
Indeed: I am afraid that page does not document value formats. It
was
<br>
generated by introspecting into the Hibernate (ORM) model to
investigate
<br>
which mapped model objects refer to each other via which
properties; it
<br>
doesn't contain anything that Hibernate doesn't know. That page is
most
<br>
useful for figuring out how to write the JOINs in HQL to get from
what
<br>
one has to what one wants.
<br>
<br>
(snip)
<br>
<blockquote type="cite">Is there any documentation on model
arguments that I can refer to? If
<br>
not is there any plan to include this because client programming
is nigh
<br>
impossible without it.
<br>
</blockquote>
<br>
The most useful source is
<br>
<a class="moz-txt-link-freetext" href="http://www.openmicroscopy.org/Schemas/Documentation/Generated/OME-2015-01/ome.html">http://www.openmicroscopy.org/Schemas/Documentation/Generated/OME-2015-01/ome.html</a>
<br>
-- click on "Polygon", far down on the left. That tells you the
format
<br>
for the "points" property and links you back to "Shape" for the
others,
<br>
for instance describing that the stroke color is a signed 32-bit
RGBA value.
<br>
<br>
To generate examples, one can create the data interactively (e.g.,
draw
<br>
ROIs in Insight) then query them via HQL. For instance, doing the
<br>
described conversion, a -993737532 integer that I just queried
from
<br>
OMERO is #C4C4C4C4 as a color and indeed in Insight's code I see,
<br>
<br>
DEFAULT_STROKE_COLOUR = new Color(196, 196, 196, 196);
<br>
<br>
If you have trouble with any specific properties we'd be happy to
take a
<br>
look to see if we can make any sense of them, as it may have been
some
<br>
time since anybody read the OME-XML schema documentation carefully
for
<br>
the properties you need. The web client code has to deal with some
of
<br>
these formats "manually" as well.
<br>
<br>
Cheers,
<br>
<br>
Mark
<br>
<br>
The University of Dundee is a registered Scottish Charity, No:
SC015096
<br>
_______________________________________________
<br>
ome-users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:ome-users@lists.openmicroscopy.org.uk">ome-users@lists.openmicroscopy.org.uk</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users</a>
<br>
</blockquote>
<br>
<div class="moz-signature">-- <br>
With kind regards,<br>
<br>
<strong>Paul K Korir, PhD</strong><br>
<i>Scientific Programmer</i><br>
EMBL-EBI<br>
Main Building, A2-35,<br>
WTGC, Hinxton, Cambridge CB10 1SD<br>
P: +44 1223 49 44 22<br>
F: +44 1223 49 44 68</div>
</body>
</html>