[Dcmlib] troble with vtkgdcmViewer2 vs VTK 5.0 on MSVC6
Mathieu Malaterre
mathieu.malaterre at kitware.com
Mon Jan 30 16:42:58 CET 2006
Eduardo Davila--Inge CDD Douek--Fin 12/06 wrote:
> Hi!
> -->in method
>
> void vtkGdcmReader::BuildData(vtkDataObject *output)
>
> the instruction :
>
> vtkImageData *data = this->AllocateOutputData(output);
>
> seems not to allocate memory, and causes a seg fault later.
>
> If we replace by :
>
> data->SetDimensions(this->NumColumns , this->NumLines , this->NumPlanes);
> data->SetScalarTypeToUnsignedShort();
> data->AllocateScalars();
> it works again.
>
>
> -->
> The image is not displayed in the center of the window.
>
> Any suggestion ?
>
> JPRx
JP ?
In order to support VTK 5.0 some work is needed. The
Execute/ExecuteData do not exist anymore, and you should use
RequestInformation/RequestData instead.
Mathieu
Ref:
[VTK pipeline / Extent broke apps]
http://vtk.org/Bug/bug.php?op=show&bugid=1859&pos=9
More information about the Dcmlib
mailing list