[vtkusers] Wiki examples fail to build due to no InsertNextTypedTuple

David Gobbi david.gobbi at gmail.com
Thu May 26 11:02:00 EDT 2016


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160526/5bb8e795/attachment.html>


More information about the vtkusers mailing list