<div dir="ltr"><div>Hi Bill,</div><div><div>As VTK evolves this is going to become more of a problem.<br></div></div><div><br></div><div>The same problems will occur with the Python code also.<br></div><div><br></div>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.<div><br></div><div><div>Regards</div><div> Andrew<br><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br>---------- Forwarded message ----------<br>From: Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>To: David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>><br>Cc: VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>Date: Thu, 26 May 2016 11:41:13 -0400<br>Subject: Re: [vtkusers] Wiki examples fail to build due to no InsertNextTypedTuple<br>David,<br>
<br>
Thanks, I'll try that.<br>
<br>
What a PAIN!<br>
<br>
Bill<br>
<br>
On Thu, May 26, 2016 at 11:02 AM, David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>> wrote:<br>
> I use the following for compatibility, since the change occurred when<br>
> the vtkGenericDataArray class was introduced:<br>
><br>
> // For compatibility with new VTK generic data arrays<br>
> #ifdef vtkGenericDataArray_h<br>
> #define SetTupleValue SetTypedTuple<br>
> #define GetTupleValue GetTypedTuple<br>
> #endif<br>
><br>
> On Thu, May 26, 2016 at 8:47 AM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Unfortunately, that API was changed and there is no tag that isolates<br>
>> the change. So we have to wait until the 7.1 release. For now, you can<br>
>> update your VTK to HEAD nad you should be fine.<br>
>><br>
>> Bill<br>
>><br>
>><br>
>> On Thu, May 26, 2016 at 5:27 AM, Elvis Stansvik<br>
>> <<a href="mailto:elvis.stansvik@orexplore.com">elvis.stansvik@orexplore.com</a>> wrote:<br>
>> > I got some other errors as well. I'm attaching a diff of how I had to<br>
>> > change<br>
>> > the examples in order for them all to compile with 7.0.0.<br>
>> ><br>
>> > Unfortunately don't have time right now to go through the wiki pages and<br>
>> > edit them.<br>
>> ><br>
>> > Regards,<br>
>> > Elvis<br>
>> ><br>
>> ><br>
>> > 2016-05-26 10:51 GMT+02:00 Elvis Stansvik<br>
>> > <<a href="mailto:elvis.stansvik@orexplore.com">elvis.stansvik@orexplore.com</a>>:<br>
>> >><br>
>> >> In several of the wiki examples, I get<br>
>> >><br>
>> >><br>
>> >><br>
>> >> /home/estan/orexplore/VTKWikiExamples/Cxx/GeometricObjects/ColoredLines.cxx:72:13:<br>
>> >> error: ‘class vtkUnsignedCharArray’ has no member named<br>
>> >> ‘InsertNextTypedTuple’<br>
>> >> colors->InsertNextTypedTuple(red);<br>
>> >><br>
>> >> I can't find the InsertNextTypedTuple function in VTK 7.<br>
>> >><br>
>> >> The change was made here:<br>
>> >><br>
>> >><br>
>> >><br>
>> >> <a href="http://www.vtk.org/Wiki/index.php?title=VTK%2FExamples%2FCxx%2FGeometricObjects%2FColoredLines&diff=59278&oldid=59243" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/index.php?title=VTK%2FExamples%2FCxx%2FGeometricObjects%2FColoredLines&diff=59278&oldid=59243</a><br>
>> >><br>
>> >> Where is InsertNextTypedTuple coming from?<br>
>> >><br>
>> >> Elvis<br>
><br>
><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
><br>
<br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
<br> -- <br></blockquote></div><div class="gmail_signature" data-smartmail="gmail_signature">___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________</div>
</div></div></div></div>