On 5/23/07, Christopher Barker <[EMAIL PROTECTED]> wrote: > Gerber, HR, Mnr <[EMAIL PROTECTED]> wrote: > > Some screenshots of GC with non-standard transformations and figure > > rotations > > Cools, thanks. That looks very slick. It may well be worth the slower > drawing times. > > Can you extract the transformed coordinates back out? > > I still wonder, for a FloatCanvas-like system, when you rotate an object > and then save it, whether you'd want to store it's original coordinates > and a rotation angle, or if you'd just want to store the new coords. Of > course, a skewed rectangle is no longer a rectangle. Maybe everything > would become a polygon, and Objects like Rectangles would be really be a > "special kind of polygon", rather than their own thing -- that would > simplify the code some -- fewer Draw methods!
Keeping distinct object types and the modifier stack around is useful in the context of interactive editing in a vector drawing program. For example If you provide edit handles for a circle arc then it's nice to still be able to change the radius or the pie wedge angle after applying a transform. If you're not thinking to allow such editing operations, then I don't think there's much need to keep a Rectangle distinct from a Pentagon. On the other hand, circles, arcs, and curves need to be re-tesselated depending on the current transform, so they can't be mere polygons. --bb _______________________________________________ FloatCanvas mailing list [email protected] http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
