Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #4295 (closed)

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

BUG: Draw Ellipse

Reported by: wmoore Owned by: jburel
Priority: major Milestone: OMERO-Beta4.3
Component: Insight Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2011-02-10 (5)

Description (last modified by wmoore)

Drawing an Ellipse in the measurement tool seems to register the location of 'start-drag' as x * 2 and y * 2. So the ellipse appears to the right and below the mouse location.

Resizing also doesn't work - cx and cy are updated but not rx or ry (when you hit 'Save').

Also DB data looks different from what's displayed in measurement tool.
Ellipse is only shape on Z: 33. Measurement tool says (and draws) cx: 413, cy:146
but the database says cx:58, cy:62.

omero=# select id, thez, cx, cy, rx, ry from shape order by id desc;
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
  id  | thez |  cx  |  cy  |  rx  |  ry  
------+------+------+------+------+------
 1013 |   31 | 58.5 | 62.5 | 58.5 | 62.5
 1012 |   33 | 58.5 | 62.5 | 58.5 | 62.5

Change History (10)

comment:1 Changed 13 years ago by wmoore

  • Description modified (diff)

comment:2 Changed 13 years ago by jburel

can you give check the transform? That's a parameter taken into account when displaying the shape

comment:3 Changed 13 years ago by wmoore

yes, these shapes have transform

  id  | thez |                    transform                     |  cx  |  cy  |  rx  |  ry  
------+------+--------------------------------------------------+------+------+------+------
 1019 |   37 | translate(245.74999251304587 209.50000561479504) |   60 |   52 |   60 |   52
 1018 |   27 | translate(354.05 83.05000000000001)              | 58.5 | 62.5 | 58.5 | 62.5
 1017 |   32 | translate(354.05 83.05000000000001)              | 58.5 | 62.5 | 58.5 | 62.5
 1016 |   28 | translate(354.05 83.05000000000001)              | 58.5 | 62.5 | 58.5 | 62.5
 1015 |   30 | translate(354.05 83.05000000000001)              | 58.5 | 62.5 | 58.5 | 62.5
 1014 |   26 | translate(354.05 83.05000000000001)              | 58.5 | 62.5 | 58.5 | 62.5
 1013 |   31 | translate(354.05 83.05000000000001)              | 58.5 | 62.5 | 58.5 | 62.5
 1012 |   33 | translate(354.05 83.05000000000001)              | 58.5 | 62.5 | 58.5 | 62.5

This is going to be a pain to implement in web-client!

Actually, not that bad perhaps - but seems uneccesary. We never saved transform before, right?

Don't allow rotation in current tool?

comment:4 Changed 13 years ago by jburel

we have saved transforms for a bit.
Changing is dangerous, other people are already using ROI and transfoms

comment:5 Changed 13 years ago by wmoore

I see the only transforms I have in my DB are rotation of 0 degrees - until today with the ellipse bug has introduced translations.

omero=# select id, thez, transform, cx, cy, rx, ry from shape where transform!='none' order by id desc;
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
  id  | thez |                    transform                     |  cx  |  cy  |  rx  |  ry  
------+------+--------------------------------------------------+------+------+------+------
 1019 |   37 | translate(245.74999251304587 209.50000561479504) |   60 |   52 |   60 |   52
 1018 |   27 | translate(354.05 83.05000000000001)              | 58.5 | 62.5 | 58.5 | 62.5
 1017 |   32 | translate(354.05 83.05000000000001)              | 58.5 | 62.5 | 58.5 | 62.5
 1016 |   28 | translate(354.05 83.05000000000001)              | 58.5 | 62.5 | 58.5 | 62.5
 1015 |   30 | translate(354.05 83.05000000000001)              | 58.5 | 62.5 | 58.5 | 62.5
  791 |    0 | rotate(0 320.000000 318.000000)                  |  320 |  318 |   22 |   21
  790 |    0 | rotate(0 407.000000 79.000000)                   |  407 |   79 |   12 |   10
  789 |    0 | rotate(0 320.000000 318.000000)                  |  320 |  318 |   22 |   21
  788 |    0 | rotate(0 407.000000 79.000000)                   |  407 |   79 |   12 |   10
  787 |    0 | rotate(0 320.000000 318.000000)                  |  320 |  318 |   22 |   21
  786 |    0 | rotate(0 407.000000 79.000000)                   |  407 |   79 |   12 |   10

comment:6 Changed 13 years ago by jburel

I will check the problem with ellipse. Having rotations of 0 for now, does not mean that we should remove transform,

comment:7 Changed 13 years ago by jburel

  • Remaining Time set to 0.3
  • Sprint changed from 2011-02-24 (6) to 2011-02-10 (5)

comment:8 Changed 13 years ago by jburel

  • Status changed from new to accepted

comment:9 Changed 13 years ago by jburel <j.burel@…>

  • Remaining Time changed from 0.3 to 0
  • Resolution set to fixed
  • Status changed from accepted to closed

(In [beb4f9e3e7c3743a6e2e502c2bbbe34ccb51072e/ome.git] on branch develop) Fixed creation of ellipses problem and clean code (close #4295)

comment:10 Changed 13 years ago by jburel <j.burel@…>

(In [a107756eb9e9602e3ef0e55a44e6c29d31fffedf/ome.git] on branch dev_4_2) Merge changes related to creation of ellipses (see #4295)

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.71244 sec.)

We're Hiring!