[vtk-developers] vtkVector class -- proposed rewrite

David Lonie loniedavid at gmail.com
Mon Jul 25 14:17:17 EDT 2011


On Mon, Jul 25, 2011 at 1:39 PM, David Gobbi <david.gobbi at gmail.com> wrote:
> On Fri, Jul 22, 2011 at 6:13 PM, David Lonie <loniedavid at gmail.com> wrote:
>
>> I'd like to ask for opinions on the following patch:
>>
>> http://github.com/dlonie/VTK/commit/6fd3b1c50244174d2ecb2e8bf4ae40996b0f61d6
>
> A couple quick notes re: wrapping.  The current wrappers will not be
> able to wrap this class because
> 1) the wrappers do not perform macro expansion (except in ifdefs)
> 2) the wrappers do not wrap classes in #included files
> 3) the "+" and "-" operators are not wrapped
>
> None of these issues are insurmountable, I know how to fix them but do
> not know when I might have time.  So I'd just like to warn you that,
> for now, the wrappers will not allow you to use a macro for a class
> name.

That would be acceptable for me, as all functions that use vtkVectors
provide array compliments.

Would using a typedef be possible for the wrappers? e.g. "typedef
vtkVector<float, 3> vtkVector3f"? That would eliminate most of the
complexity in this patch.

Dave



More information about the vtk-developers mailing list