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

Elvis Stansvik elvis.stansvik at orexplore.com
Mon May 30 12:14:12 EDT 2016


Den 30 maj 2016 5:27 em skrev "Bill Lorensen" <bill.lorensen at gmail.com>:
>
> Elvis,
>
> I updated the wiki examples using the approach that David Gobbi
> suggested. Please update and let me know if everything builds OK.

Thanks a lot. Will test when I'm back at work tomorrow, where I have things
set up.

Elvis

>
> Thanks,
>
>  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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160530/d5a2ef14/attachment.html>


More information about the vtkusers mailing list