<div dir="ltr">Hi Ola,<div>first of all, thanks for the code.</div><div>What we want to do with "custom" labels is to add a mechanism that can be used to add text to the ROIs without the need to save them within OMERO, these labels can be saved into an external database (Moodle's for example) or embedded into JS, HTML or CSS.</div><div>In this way we want to implement features like:<br><ul><li>multi-language support for text in ROIs</li><li>context related labels (I can use the same image with the same ROIs in different contexts like a lecture or a test)</li></ul>What we want to obtain is something that will require the usage of OMEROinsight only to import images and create ROIs, other elements like text and extra ROIs (like markers used by the students to answer to questions that require a direct interaction with the image) will be managed using an external system as data storage layer and integrated using your web viewer.</div><div>Actually we are still investigating on which features we want to provide but the big plan is to add as many features as possible to the web viewer in order to make easier to us (and eventually to other developers) to add new features that can be used to embed OMERO and to interact with it.</div><div><br></div><div>Cheers, </div><div>Luca</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-05 10:52 GMT+01:00 Aleksandra Tarkowska (Staff) <span dir="ltr"><<a href="mailto:A.Tarkowska@dundee.ac.uk" target="_blank">A.Tarkowska@dundee.ac.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>
<div>
<div>Hi Luca,</div>
<div><br>
</div>
<div>The code Insight determines the default font size according to the resolution level is <a href="https://github.com/jburel/openmicroscopy/commit/6eba7b598ebf2068c88bc280ab06316257353e81#diff-f3bb53eab5e729fb8a7cf17503b3d87eR220" target="_blank">https://github.com/jburel/openmicroscopy/commit/6eba7b598ebf2068c88bc280ab06316257353e81#diff-f3bb53eab5e729fb8a7cf17503b3d87eR220</a></div>
<div><br>
</div>
<div>Could you please tell us more what exactly custom labels are and why you need to store them out of OMERO?</div>
<div>
<div><br>
</div>
<div>
<div>Kind regards</div>
<div>Ola</div>
</div>
</div>
</div>
</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="font-weight:bold">From: </span>Luca Lianas <<a href="mailto:lianas@crs4.it" target="_blank">lianas@crs4.it</a>><br>
<span style="font-weight:bold">Reply-To: </span>OME External Developer List <<a href="mailto:ome-devel@lists.openmicroscopy.org.uk" target="_blank">ome-devel@lists.openmicroscopy.org.uk</a>><br>
<span style="font-weight:bold">Date: </span>Wed, 4 Feb 2015 21:45:41 +0100<br>
<span style="font-weight:bold">To: </span>"<<a href="mailto:ome-devel@lists.openmicroscopy.org.uk" target="_blank">ome-devel@lists.openmicroscopy.org.uk</a>>" <<a href="mailto:ome-devel@lists.openmicroscopy.org.uk" target="_blank">ome-devel@lists.openmicroscopy.org.uk</a>><br>
<span style="font-weight:bold">Subject: </span>[ome-devel] Default FontSize in ROI's text<br>
</div><div><div class="h5">
<div><br>
</div>
<div dir="ltr">Hi everyone,
<div>recently I started working on OMERO's web viewer in order to add some features that we are going to use in order to develop a few module for Moodle (<a href="https://moodle.org/?lang=en" target="_blank">https://moodle.org/?lang=en</a>) that will enable the usage of OMERO
images within courses material and exams (I already pushed a first pull request related to this task <a href="https://github.com/openmicroscopy/openmicroscopy/pull/3432" target="_blank">https://github.com/openmicroscopy/openmicroscopy/pull/3432</a>).</div>
<div>One of the features I am working on is to add the possibility to define custom labels that will be associated to the ROIs and that won't be saved within OMERO's database.</div>
<div>The task is quite simple: if the ROI has already an associated text (I'll just have to replace the default label with the new one), things get a little more complicated if I have to create a new text because I need to define all the font-related properties;
in particular I need to calculate the proper FontSize with respect to image's sizes.</div>
<div>I noticed that OMEROinsight automatically calculates and assign the FontSize property to ROIs' text, how does it work? I just want to reproduce the same code using Javascript in order to make text defined using OMERO's tools and text defined by external
app look the same.</div>
<div>Thanks a lot,</div>
<div><br>
</div>
<div>Luca<br clear="all">
<div><br>
</div>
-- <br>
<div>
<div dir="ltr">Luca Lianas<br>
<div><span>Data Fusion - Distributed Computing</span><br>
CRS4 - Centro di Ricerche, Sviluppo e Studi Superiori della Sardegna<br>
POLARIS, Edificio 1, 09010 PULA (CA - Italy)<br>
<br>
<br>
Phone: <a href="tel:070%2F9250266" value="+390709250266" target="_blank">070/9250266</a><br>
Email: <a href="mailto:luca.lianas@crs4.it" target="_blank">luca.lianas@crs4.it</a><br>
<br>
</div>
</div>
</div>
</div>
</div></div></div>
_______________________________________________ ome-devel mailing list <a href="mailto:ome-devel@lists.openmicroscopy.org.uk" target="_blank">
ome-devel@lists.openmicroscopy.org.uk</a> <a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel" target="_blank">
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel</a> </span><br>
<span style="font-size:10pt">The University of Dundee is a registered Scottish Charity, No: SC015096</span>
</div>
<br>_______________________________________________<br>
ome-devel mailing list<br>
<a href="mailto:ome-devel@lists.openmicroscopy.org.uk">ome-devel@lists.openmicroscopy.org.uk</a><br>
<a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel" target="_blank">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Luca Lianas<br>
</div>
</div>