Page MenuHomePhabricator

Allow PlanarFigur representations to consist of multiple PolyLine
Closed, ResolvedPublic

Description

For rendering purposes, PlanarFigure subclasses implement a method for generating a poly-line representation of the object. Currently, only one poly-line per object is possible.

The interface of PlanarFigure should be extended to allow for multiple poly-lines, e.g. for displaying 4-point angles (consisting of two separate lines) or angles as circle segments.

Event Timeline

Caspar, are you working on this? Can you please accept the bug and comment on the progress?

Currently working on vessel segmentation. Measurement is on my list right after that.

Started on it. My aim is to collect the poly lines in two separate containers, one containing the actual poly lines, one the "helper objects" that only need to be drawn.

Sounds good! The draw-only poly-lines (e.g. angles, arrows, etc.) should in most (all?) cases be scale-invariant w.r.t. the display geometry / size, which means that they need to be handled differently during rendering.

[SVN revision 19896]
ENH (#2791): Planar figures now accept several polylines

So far it is possible to draw several polylines. The scale invariant polylines are not implemented yet. That is the next project.

[SVN revision 19919]
ENH (#2791): The angle arc is now implemented as a helper poly line.

The arc now scales with zooming and is always the same size on screen. So far that size depends on the data set, this dependency still has to be taken care of.