Last modified 16 years ago
Last modified on 02/03/09 15:03:19
Analysis
Overview
The user can move the frame not only by changing its coordinates, but also by its rotation angle. It is the angle between the frames top side and the pages top side. It varies from 0 to 360.
Task requirements
- By default every frames rotation angle is 0. This means that the frames sides are parallel to the pages sides.
- The rotation angle should be keft in the model and should be synchronized with the frame hud.
- Frames could be rotated around the 9 special points from the 5 different bounding rectangles. This should change their location along with their rotation angle.
Task result
The result of this task is source code.
Implementation idea
Add rotation angle field in the frame hud. Create setRotation method that takes the special point and bounding mode and calculate and set the right frame content location.
Related
How to demo
- Change the frames rotation angle and demonstrate it rotates.
- Rotate a frame by its center point and demonstrate that frame content coordinates change accordingly.
Design
Implementation
(Implementation results should be described and linked here (from the wiki or the repository))
Testing
Comments
(Write comments for this or later revisions here.)