[EMAIL PROTECTED] wrote: > As I said, I created the spline class for the application I'm working. > I created and integrated my class on floatcanvas source.
wow~! thanks, this looks great at first glance -- I hope to look at in more detail soon. One question -- you have put it under the GPL. The rest of FloatCanvas is distributed under the same license as wxPython, which is the wxWidgets license (essentially LGPL). As FloatCanvas is distributed with wxPython, it has to be done that way. Would you consider releasing this code under the wxWidgets license? http://www.wxpython.org/codeguidelines.php http://wxwidgets.org/about/newlicen.htm http://www.opensource.org/licenses/wxwindows.php thanks, -Chris > To this spline I used the Bezier curves and for that I call it > BezierSpline. > Interpolation points are keeped in atribute InterpolationPoints and is > actualized evertime we call CalcSplinePoints method. > The number of interpolation points generated is related with the > precision that is given and the number of control points. So if we > lower the precision value more interpolation points will be generated > and also more time it will need to calculate them. > On my machine drawing 1000 BezierSpline takes about 2 or 3 times more > clock time to draw than the standard Spline, but in this spline we can > access the interpolation points. > > I also created two other classes, ArrowHead to draw just a arrow head > and ArrowSpline that extends BezierSpline and ArrowHead. > I thinks I don't need to explain here this classes since they are > explain in the code commentaries. > > If you think that this classes are usefull to FloatCanvas you could > integrate them in FloatCanvas2. > > bernarduh > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > > ------------------------------------------------------------------------ > > [Attachment stripped: Original attachment type: "text/x-python", name: > "MyFloatCanvas.py"] > > > ------------------------------------------------------------------------ > > _______________________________________________ > FloatCanvas mailing list > [email protected] > http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] _______________________________________________ FloatCanvas mailing list [email protected] http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
