| Summary: | Improve FXChopBoxAnchor to always use point inside outline for intersection calculations | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Alexander Nyßen <nyssen> |
| Component: | GEF FX | Assignee: | gef-inbox <gef-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | matthias.wienand |
| Version: | unspecified | ||
| Target Milestone: | 3.10.0 (Mars) M3 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Alexander Nyßen
I implemented a simple algorithm to find the vertex on the outline of the anchorage shape closest to the center point of the shape's bounds. The algorithm is used when the center point of the shape's bounds is outside of the shape. I published the code on the master branch, therefore resolving this ticket as fixed for target milestone 3.10.0M2. For the implementation of other (more sophisticated) algorithms, new tickets can be used (if needed). I enhanced the implementation as follows: - Extract FXChopBoxAnchor.ComputationStrategy interface. - Transferred FXChopBoxComputationStrategy into FXChopBoxAnchor.ComputationStrategy.Impl. - Reduced visibility of FXChopBox.ComputationStrategy.Impl methods as much as possible. - Extracted conversion method for GEF4 Geometry points into FXUtils. These enhancements will be available in 3.10.0 M3. |