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

Bill Lorensen bill.lorensen at gmail.com
Mon May 30 11:27:34 EDT 2016


Elvis,

I updated the wiki examples using the approach that David Gobbi
suggested. Please update and let me know if everything builds OK.

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


More information about the vtkusers mailing list