Hi Thorsten, >>I wonder how difficult it is for a non-mathematical API user to create >>an AffineMatrix2D from a degree and a center point. Please don't tell me >>this needs pen and paper, this would make the method completely useless >>to the average user (and thus I'd continue to argue it should be removed). >>If there were some service which creates such a matrix from a degree and >>a center point, then I'd vote for leaving the method in. > > basegfx::B2DHomMatrix aMatrix; > aMatrix.rotate(nAngle); > aMatrix.scale(nScaleX,nScaleY); > aMatrix.translate(nMoveX,nMoveY); > ... > canvas.setTransformation( > basegfx::unotools::affineMatrixFromHomMatrix(aMatrix)); > > All the expressive power you need is in B2DHomMatrix. We can even add > additional convenience functions, if you miss anything.
Okay, and now the version for the developer writing a component in Basic. Well, extensions of that kind in Basic might be unusual, so: Python. Or Ruby. Or ... you get the idea. We're talking about a UNO API here, so only UNO services are allowed :) >>>I see your point, but I don't think we need dumbing down the interface > Well, given the existence of B2DHomMatrix (and > java.awt.geom.AffineTransform, BTW) - do you still think the > transformation abstraction is too complex? See above. Without an UNO-accessible way: yes. > So, to summarize: except for setTransformation(), we seem to agree > largely. Yes. > I'd vote for keeping it, I'd vote for removing it :) > /** Retrieve current clip rect > */ > com::sun::star::geometry::RealRectangle2D getCurrentClipRect(); thinking more about it (sorry :): Do we need this? What happens when the current clip region isn't a rectangle? Should we just have a "getClip" returning the complete thing? Finally, retrieval is much more seldom than setting it, probably. Ciao Frank -- - Frank Schönheit, Software Engineer [EMAIL PROTECTED] - - Sun Microsystems http://www.sun.com/staroffice - - OpenOffice.org Database http://dba.openoffice.org - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
