[vtk-developers] vtkMINCImageAttributes regression in master vs 6.3, related to new vtkDataArray changes?

Sean McBride sean at rogue-research.com
Thu Apr 21 11:49:27 EDT 2016


Hi all,

Just trying my app against VTK master and found a regression using vtkMINCImageAttributes that I suspect is related to the vtkDataArray change David Lonie wrote about March 7.

I have a vtkMINCImageAttributes that I call GetAttributeValueAsString() on.  That eventually goes into vtkMINCImageAttributes::ConvertDataArrayToString() which does this:

if (dataType == VTK_CHAR)
  {
  vtkCharArray *charArray = vtkCharArray::SafeDownCast(array);
  return charArray->GetPointer(0);
  }

and GetPointer is:

template <class ValueTypeT>
typename vtkAOSDataArrayTemplate<ValueTypeT>::ValueType *
vtkAOSDataArrayTemplate<ValueTypeT>::GetPointer(vtkIdType valueIdx)
{
  return this->Buffer->GetBuffer() + valueIdx;
}

and GetBuffer() returns null, which it doesn't in 6.3.

I could dig further, but I'm hoping this will ring bells for someone...

Thanks,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada




More information about the vtk-developers mailing list