DataLab-Platform / DataLab

Open-source Platform for Scientific and Technical Data Processing and Visualization
https://datalab-platform.com
BSD 3-Clause "New" or "Revised" License
43 stars 4 forks source link

`ResultShape`: derive from `ResultProperties` to add a label item #79

Closed PierreRaybaut closed 4 months ago

PierreRaybaut commented 4 months ago

The idea is to be able to move the labels anywhere we want. This means that we have to use shapes instead of annotated shapes (e.g. Segment instead of AnnotatedSegment).

PierreRaybaut commented 4 months ago

After careful thinking, we decided to implement this quite differently:

  1. We have to keep annotated shapes for results as the titles/subtitles provide useful info regarding each individual result (a ResultShape may contain several individual results, e.g., circles for blob detection)
  2. We may add a label item additionally to the annotated shapes in order to provide complementary info
  3. The first use case is for segment results (e.g., FWHM) for which the label item is useful and quite handy because it's movable
PierreRaybaut commented 4 months ago

Implemented by 9aa34b5a03ff9a1476a2abc078953b278676a449