| Summary: | Remove ViewportModel and access InfiniteCanvas directly from related policies and operations. | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Matthias Wienand <matthias.wienand> |
| Component: | GEF MVC | Assignee: | gef-inbox <gef-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | nyssen |
| Version: | 0.2.0 | ||
| Target Milestone: | 4.0.0 / 3.11.0 (Neon) M4 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Bug Depends on: | 482333 | ||
| Bug Blocks: | |||
|
Description
Matthias Wienand
I investigated further and found that the ViewportModel is an unnecessary indirection. The ViewportModel is defined within MVC, however, corresponding classes are only defined within MVC.FX: FXChangeViewportPolicy, FXViewportBehavior, & FXChangeViewportOperation. These can directly access the InfiniteCanvas instead of being based on the ViewportModel. Removing the ViewportModel will enable the user to change the viewport using the InfiniteCanvas directly and will simplify the code as no values have to be transferred from/to a ViewportModel. It seems the changes applied in terms of this bug cause the regression documented in bug #482333. I removed the ViewportModel, so that the InfiniteCanvas is now directly accessed and resolved the viewport regression (bug #482333). The code is published on the master branch. Therefore, I resolve this ticket as fixed for 3.11.0M4. |