<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thanks very much Will. One step in the right direction.<br>
    <br>
    My particular use-case required that the colours set on ROIs include
    the alpha-channel (which I created) so as not to completely hide the
    segment begin the ROI. You might also want to include that in
    rgbToRGBInt().<br>
    <br>
    Kind regards,<br>
    <br>
    Paul<br>
    <br>
    <div class="moz-cite-prefix">On 15/01/2016 11:06, William Moore
      wrote:<br>
    </div>
    <blockquote
      cite="mid:278D9C2C-9797-4E79-9889-860E5E47C3DA@lifesci.dundee.ac.uk"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      Hi Paul,
      <div class=""><br class="">
      </div>
      <div class=""> I have just opened a PR to improve our python ROI
        examples, adding a Polygon example</div>
      <div class="">and setting the strokeWidth, strokeColor and
        fillColor. </div>
      <div class=""><br class="">
      </div>
      <div class="">See <a moz-do-not-send="true"
          href="https://github.com/openmicroscopy/openmicroscopy/pull/4412"
          class="">https://github.com/openmicroscopy/openmicroscopy/pull/4412</a></div>
      <div class=""><br class="">
      </div>
      <div class="">The updated ROIs.py file can be viewed at</div>
      <div class=""><a moz-do-not-send="true"
href="https://github.com/will-moore/openmicroscopy/blob/polygon_python_training_example/examples/Training/python/ROIs.py"
          class="">https://github.com/will-moore/openmicroscopy/blob/polygon_python_training_example/examples/Training/python/ROIs.py</a></div>
      <div class=""><br class="">
      </div>
      <div class="">Some changes might be made during the PR review, but
        hopefully that example is enough</div>
      <div class="">to help you now?</div>
      <div class=""><br class="">
      </div>
      <div class=""> Regards,</div>
      <div class=""><br class="">
      </div>
      <div class="">  Will.</div>
      <div class=""><br class="">
      </div>
      <div class=""><br class="">
      </div>
      <div class=""><br class="">
        <div>
          <blockquote type="cite" class="">
            <div class="">On 14 Jan 2016, at 15:37, Paul Kibet Korir
              <<a moz-do-not-send="true"
                href="mailto:pkorir@ebi.ac.uk" class="">pkorir@ebi.ac.uk</a>>
              wrote:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <meta content="text/html; charset=windows-1252"
                http-equiv="Content-Type" class="">
              <div bgcolor="#FFFFFF" text="#000000" class=""> Thanks. I
                was actually interested in formating arguments for
                Python (not Java).<br class="">
                <br class="">
                P<br class="">
                <br class="">
                <div class="moz-cite-prefix">On 14/01/2016 14:04, Mark
                  Carroll wrote:<br class="">
                </div>
                <blockquote cite="mid:5697AB00.30103@dundee.ac.uk"
                  type="cite" class="">On 01/14/2016 01:38 PM, Paul
                  Kibet Korir wrote: <br class="">
                  <br class="">
                  <blockquote type="cite" class="">I'm having a
                    difficult time making sense of OMERO model objects <br
                      class="">
                    described here <br class="">
                    <a moz-do-not-send="true"
                      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 class="">
                    There seems to be no explicit definition of the
                    argument formats. <br class="">
                    <br class="">
                    I'm presently working with omero.model.PolygonI()
                    objects for which I <br class="">
                    need to set a number of attributes e.g. fillColor,
                    strokeColor etc. The <br class="">
                    documentation specifies base types (e.g. int,
                    string, bool) for the <br class="">
                    arguments but no accompanying structure. <br
                      class="">
                  </blockquote>
                  <br class="">
                  Indeed: I am afraid that page does not document value
                  formats. It was <br class="">
                  generated by introspecting into the Hibernate (ORM)
                  model to investigate <br class="">
                  which mapped model objects refer to each other via
                  which properties; it <br class="">
                  doesn't contain anything that Hibernate doesn't know.
                  That page is most <br class="">
                  useful for figuring out how to write the JOINs in HQL
                  to get from what <br class="">
                  one has to what one wants. <br class="">
                  <br class="">
                  (snip) <br class="">
                  <blockquote type="cite" class="">Is there any
                    documentation on model arguments that I can refer
                    to? If <br class="">
                    not is there any plan to include this because client
                    programming is nigh <br class="">
                    impossible without it. <br class="">
                  </blockquote>
                  <br class="">
                  The most useful source is <br class="">
                  <a moz-do-not-send="true"
                    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 class="">
                  -- click on "Polygon", far down on the left. That
                  tells you the format <br class="">
                  for the "points" property and links you back to
                  "Shape" for the others, <br class="">
                  for instance describing that the stroke color is a
                  signed 32-bit RGBA value. <br class="">
                  <br class="">
                  To generate examples, one can create the data
                  interactively (e.g., draw <br class="">
                  ROIs in Insight) then query them via HQL. For
                  instance, doing the <br class="">
                  described conversion, a -993737532 integer that I just
                  queried from <br class="">
                  OMERO is #C4C4C4C4 as a color and indeed in Insight's
                  code I see, <br class="">
                  <br class="">
                      DEFAULT_STROKE_COLOUR = new Color(196, 196, 196,
                  196); <br class="">
                  <br class="">
                  If you have trouble with any specific properties we'd
                  be happy to take a <br class="">
                  look to see if we can make any sense of them, as it
                  may have been some <br class="">
                  time since anybody read the OME-XML schema
                  documentation carefully for <br class="">
                  the properties you need. The web client code has to
                  deal with some of <br class="">
                  these formats "manually" as well. <br class="">
                  <br class="">
                  Cheers, <br class="">
                  <br class="">
                  Mark <br class="">
                  <br class="">
                  The University of Dundee is a registered Scottish
                  Charity, No: SC015096 <br class="">
                  _______________________________________________ <br
                    class="">
                  ome-users mailing list <br class="">
                  <a moz-do-not-send="true"
                    class="moz-txt-link-abbreviated"
                    href="mailto:ome-users@lists.openmicroscopy.org.uk">ome-users@lists.openmicroscopy.org.uk</a>
                  <br class="">
                  <a moz-do-not-send="true"
                    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 class="">
                </blockquote>
                <br class="">
                <div class="moz-signature">-- <br class="">
                  With kind regards,<br class="">
                  <br class="">
                  <strong class="">Paul K Korir, PhD</strong><br
                    class="">
                  <i class="">Scientific Programmer</i><br class="">
                  EMBL-EBI<br class="">
                  Main Building, A2-35,<br class="">
                  WTGC, Hinxton, Cambridge CB10 1SD<br class="">
                  P: +44 1223 49 44 22<br class="">
                  F: +44 1223 49 44 68</div>
              </div>
              _______________________________________________<br
                class="">
              ome-users mailing list<br class="">
              <a moz-do-not-send="true"
                href="mailto:ome-users@lists.openmicroscopy.org.uk"
                class="">ome-users@lists.openmicroscopy.org.uk</a><br
                class="">
<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
                class="">
            </div>
          </blockquote>
        </div>
        <br class="">
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
ome-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ome-users@lists.openmicroscopy.org.uk">ome-users@lists.openmicroscopy.org.uk</a>
<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>
</pre>
    </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>