In the past I used PseudoDC for that. Due to very slow rendering I
designed simple C++ driver. Now this driver communicate directly with
wxDC. In this way I need to re-render all objects regardless of
operation (e.g. highlight one feature by mouse). I was thinking to
find a way how to registrate objects which are drawn by the C++ driver
in PseudoDC. I am not sure if it is possible, or is there another way?
Probably the only way is to refactor PseudoDC into an external library that both wxPython and your module can link with. Then your module will be able to know at the C++ level what a wxPseudoDC is and be able to call its methods, etc.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
thanks for answer! I am already using pseudodc as external library and
it is working like a charm. BTW is there any reason why is not
PseudoDC implemented in wxWidgets?
Martin
···
2007/8/21, Robin Dunn <robin@alldunn.com>:
Martin Landa wrote:
> In the past I used PseudoDC for that. Due to very slow rendering I
> designed simple C++ driver. Now this driver communicate directly with
> wxDC. In this way I need to re-render all objects regardless of
> operation (e.g. highlight one feature by mouse). I was thinking to
> find a way how to registrate objects which are drawn by the C++ driver
> in PseudoDC. I am not sure if it is possible, or is there another way?
Probably the only way is to refactor PseudoDC into an external library
that both wxPython and your module can link with. Then your module will
be able to know at the C++ level what a wxPseudoDC is and be able to
call its methods, etc.
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org