[vtk-developers] vtkContextMouseEvent.h enum not wrapped?

David Gobbi david.gobbi at gmail.com
Tue Nov 23 11:07:37 EST 2010


Hi Marcus, Eric,

If the CMakeLists.txt is changed to set the WRAP_SPECIAL attribute for this
class, then Python will wrap it and its constants.

  David

On Tue, Nov 23, 2010 at 8:59 AM, Marcus D. Hanwell <
marcus.hanwell at kitware.com> wrote:

> On Tue, Nov 23, 2010 at 10:54 AM, Eric E. Monson <emonson at cs.duke.edu>
> wrote:
> > Hello,
> >
> > I was just trying to use the enum from vtkContextMouseEvent.h
> (LEFT_BUTTON, etc) in a Python script, but it doesn't seem to be wrapped.
> >
> > Is this to be expected with the way the wrapping system works?
> >
> They are currently in WRAP_EXCLUDE, and so not considered by the
> wrapping. Do you have a Python class you are attempting to paint
> in/respond to mouse events? David Gobbi added some support for
> wrapping enums, but not their type (need to remain anonymous). If
> there is a use case we might be able to look at wrapping them, but
> right now it is to be expected.
>
> Marcus
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20101123/97c0a3c4/attachment.html>


More information about the vtk-developers mailing list