<div>Good point.</div><div><br></div>And... the enums are still there. They are just not used as the data member type in vtkGetMacro/vtkSetMacro so that wrapping works. In the cxx file, you are still free to use the enum type in a local variable, for example.<br>
<div><br></div><div><br></div><div>David</div><div><br></div><div><br></div><div><div class="gmail_quote">On Fri, Jun 27, 2008 at 5:06 AM, Mathieu Malaterre <<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">2008/6/26 David Cole <<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>>:<br>
<div class="Ih2E3d">> Actually never mind about trying that... It will end up being irrelevant.<br>
><br>
> The problem is that we were trying to use an enum type in the<br>
> vtkGetMacro/vtkSetMacro paradigm. We can't do that in the public API of a<br>
> vtkObject because the wrapper layers don't handle enum types properly. The<br>
> types of the variables will be switched to "int" so that they are wrapped<br>
> into tcl and python properly and this problem will go away as a result of<br>
> that...<br>
<br>
</div>I had done something similar in vtkCellType.h. I changed all the<br>
#define into a big enum, with the proper -W flags it would tell me if<br>
I was missing a cell or not in the C++ code. I agree that the wrapping<br>
process currently does not support enums, still in c++ code it is a<br>
time saver.<br>
<br>
2 cts,<br>
--<br>
<font color="#888888">Mathieu<br>
</font></blockquote></div><br></div>