[vtkusers] Wiki examples fail to build due to no InsertNextTypedTuple
Andrew Maclean
andrew.amaclean at gmail.com
Thu May 26 20:25:55 EDT 2016
Hi Bill,
As VTK evolves this is going to become more of a problem.
The same problems will occur with the Python code also.
I think that a comment pointing out that VTK versions differ in API and
available classes and the code may not run on all versions would be most
appropriate along with a link to the pages describing the different
versions of VTK.
Regards
Andrew
> ---------- Forwarded message ----------
> From: Bill Lorensen <bill.lorensen at gmail.com>
> To: David Gobbi <david.gobbi at gmail.com>
> Cc: VTK Users <vtkusers at vtk.org>
> Date: Thu, 26 May 2016 11:41:13 -0400
> Subject: Re: [vtkusers] Wiki examples fail to build due to no
> InsertNextTypedTuple
> David,
>
> Thanks, I'll try that.
>
> What a PAIN!
>
> Bill
>
> On Thu, May 26, 2016 at 11:02 AM, David Gobbi <david.gobbi at gmail.com>
> wrote:
> > I use the following for compatibility, since the change occurred when
> > the vtkGenericDataArray class was introduced:
> >
> > // For compatibility with new VTK generic data arrays
> > #ifdef vtkGenericDataArray_h
> > #define SetTupleValue SetTypedTuple
> > #define GetTupleValue GetTypedTuple
> > #endif
> >
> > On Thu, May 26, 2016 at 8:47 AM, Bill Lorensen <bill.lorensen at gmail.com>
> > wrote:
> >>
> >> Unfortunately, that API was changed and there is no tag that isolates
> >> the change. So we have to wait until the 7.1 release. For now, you can
> >> update your VTK to HEAD nad you should be fine.
> >>
> >> Bill
> >>
> >>
> >> On Thu, May 26, 2016 at 5:27 AM, Elvis Stansvik
> >> <elvis.stansvik at orexplore.com> wrote:
> >> > I got some other errors as well. I'm attaching a diff of how I had to
> >> > change
> >> > the examples in order for them all to compile with 7.0.0.
> >> >
> >> > Unfortunately don't have time right now to go through the wiki pages
> and
> >> > edit them.
> >> >
> >> > Regards,
> >> > Elvis
> >> >
> >> >
> >> > 2016-05-26 10:51 GMT+02:00 Elvis Stansvik
> >> > <elvis.stansvik at orexplore.com>:
> >> >>
> >> >> In several of the wiki examples, I get
> >> >>
> >> >>
> >> >>
> >> >>
> /home/estan/orexplore/VTKWikiExamples/Cxx/GeometricObjects/ColoredLines.cxx:72:13:
> >> >> error: ‘class vtkUnsignedCharArray’ has no member named
> >> >> ‘InsertNextTypedTuple’
> >> >> colors->InsertNextTypedTuple(red);
> >> >>
> >> >> I can't find the InsertNextTypedTuple function in VTK 7.
> >> >>
> >> >> The change was made here:
> >> >>
> >> >>
> >> >>
> >> >>
> http://www.vtk.org/Wiki/index.php?title=VTK%2FExamples%2FCxx%2FGeometricObjects%2FColoredLines&diff=59278&oldid=59243
> >> >>
> >> >> Where is InsertNextTypedTuple coming from?
> >> >>
> >> >> Elvis
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Search the list archives at: http://markmail.org/search/?q=vtkusers
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtkusers
> >
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>
> --
>
___________________________________________
Andrew J. P. Maclean
___________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160527/5b9a6abb/attachment.html>
More information about the vtkusers
mailing list