[vtk-developers] Variable output type

David Doria daviddoria+vtk at gmail.com
Sat May 29 11:26:44 EDT 2010


> In addition to what you have, please also try adding the following method :
>
>   int vtkTestFilter::ProcessRequest(vtkInformation* request,
>                                             vtkInformationVector**
> inInfoVec,
>                                             vtkInformationVector*
> outInfoVec)
> {
>   if(request->Has(vtkDemandDrivenPipeline::REQUEST_DATA_OBJECT()))
>     {
>     return vtkAlgorithm::ProcessRequest(request, inputVector, outputVector);
>     }
>
>   return this->Superclass::ProcessRequest(request, inputVector,
> outputVector);
> }

When I added that function (changing inputVector to inInfoVec and
outputVector to outInfoVec), I now get:

vtkStreamingDemandDrivenPipeline (0x8ba81c8): Algorithm
vtkTestFilter(0x8ba73b8) did not create output for port 0 when asked
by REQUEST_DATA_OBJECT and does not specify any DATA_TYPE_NAME.

Thanks for your help - as usual I am trying not to answer just my
specific question but generate something useful enough to put on the
wiki!

Thanks,

David



More information about the vtk-developers mailing list