[vtkusers] AllocateOutputData of vtkImageSource

Simon DROUIN sdrouin at bic.mni.mcgill.ca
Thu Apr 8 11:23:50 EDT 2004


Hi Leila,

I wanted to ask the same question. I tought about setting a flag the 
first time UpdateInformation is called to prevent it from executing all 
the code twice. I don't think it is very vtk-friendly tought.

-simon


Leila Baghdadi wrote:

>Hi everyone
>
>I am writing a reader for my file format and I have vtkImageReader2 as its 
>parent.
>
>In my own reader at ExecuteData I have
>vtkImageData *data = this->AllocateOutputData(output);
>
>and I noticed that calling AllocateOutputData will result in 
>ExecuteInformation to be called twice,
>
>so I have checked vtkImageSource and I see there is a message there saying
>that
>this->ExecuteInformation() should be eliminated but nevertheless 
>
>it is there for the time being
>
>so my question is
>
>what kind of inefficiency are we talking about when the
>ExecuteInformation of my own reader is called twice.
>
>
>Thanks
>
>
>Leila 
>
>
>
>
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>
>  
>





More information about the vtkusers mailing list