I have to draw a Starchart with a lot of circles and lines (vectors), text
for each object (the circles) and a grid.
These are Python objects with a Draw() method. This method sets the color
and draws the circles and lines and text.
All I have to do is to iterate the list of objects and call the Draw()
method for the whole chart.
I tried to calculate the boxes to redraw but this takes longer than just
redrawing everything.
The drawn objects are fairly easy, nothing like tetraeder or weird polygons
What I try to avoid is using customized versions of standard modules. I
have to make sure that others can install the result themselves
without a compiler or programming knowledge.
Thats why I can't use weave though I think it would work for me.
Thanks,
Mike
Chris Barker <Chris.Barker@noaa.gov>@lists.wxwindows.org on 12.03.2002
18:19:41
Bitte antworten an wxpython-users@lists.wxwindows.org
Gesendet von: wxpython-users-admin@lists.wxwindows.org
Kopie:
Blindkopie:
Mit der Bitte um:
Wiedervorlage:
Titel: Re: [wxPython] drawing too slow
Michael_Perkonigg@uniquare.com wrote:
I have a chart to draw which is too slow in Python and would like to draw
it in a C++ extension.
I would have to use the dc and a list of python objects as parameters, is
that possible?
Give us a little more detail about what it is you want to draw, there
may be a Python solution.
Have you chaecked out or used the new DC.DrawPointList() and
DC.DrawLineList() methods? They speed things up a lot for drawing a lot
of points and lines. by moving the lopp into C++. Robin put them in as a
demo, and it was discussed to add a full set of DrawObjectList methods
for rectangles, polygons etc. I think the speed up will be less
substantial for more complex objects, but I'd love to have them anyway.
I have been using the two existing methods with good results, and I
intend to delve into the C++ to add the other eventually. If they would
work for you ,it would be a great contribution to the wxPython project.
-Chris
···
An: wxpython-users@lists.wxwindows.org
Datum: 12.03.2002 18:25:48
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users