[vtkusers] Error message with new CVS version
Charles Boivin
cb at rwdi.com
Wed Nov 24 14:47:01 EST 2004
Hello Amy,
Thank you for the reply. That would indeed explain the errors I was
getting... I will have a look at the PDF to see how that conversion
should take place.
Charles
>>> Amy Henderson <amy.henderson at kitware.com> 11/24/04 12:25pm >>>
Hi Charles,
We are in the middle of changing the readers, sources, and filters in
VTK
to use the new pipeline architecture that was recently introduced. In
this
process, the reader, source, and filter classes are becoming subclasses
of
vtkAlgorithm instead of vtkSource. We are maintaining backward
compatibility for classes directly subclassed from the classes in
Filtering
(e.g., subclasses of vtkPolyDataToPolyDataFilter). Since this is not
the
case for your class, you will need to change your class to use the new
pipeline architecture. In the Utilities/Upgrading directory, there is
a
file called TheNewVTKPipeline.pdf. This document introduces you to the
new
pipeline and provides some direction for converting an existing class
to
the new pipeline. There is also a CMake script in that directory
(NewPipeConvert.cmake) that will help you in the process of making the
conversion. Instructions for using the script are contained in the
PDF.
- Amy
At 01:31 PM 11/24/2004, Charles Boivin wrote:
>Hello all,
>
>I updated my CVS version of VTK yesterday, and I am having some
errors
>with my own library that uses VTK.
>
>I wrote a reader object, derived from vtkVolumeReader, and I am
getting
>these error messages in the output window:
>
>ERROR: In \Vtkcvs\Vtk\Filtering\vtkImageData.cxx, line 1471
>vtkImageData (02B2BFD8): Attempt to allocate scalars before scalar
type
>was set!.
>
>My reader used to work just fine before, but now it seems that it is
>not passing a valid vtkImageData object to the rest of the pipeline.
Did
>some requirements change recently? If so, where can I find
information
>on this?
>
>I was able to get rid of the error message by adding:
>
>vtkInformation* pInfo = this->GetOutput()->GetPipelineInformation();
>pInfo->Set(vtkDataObject::SCALAR_TYPE(), VTK_FLOAT);
>
>in my reader code. However, even though I am not getting error
message
>anymore, the output is basically "empty", i.e. the size is wrong (my
>guess is that it is returning [0..1] for all coordinates), and there
>does not seem to be any data available.
>
>Anyone here experiencing the same problem? I am at a bit of a loss,
>here.
>
>Thank you,
>
>Charles
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
>http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list