[vtkusers] vtkImageReader and actual file access time

Hamid alishapal at yahoo.com
Mon Sep 27 05:15:33 EDT 2004


Thanks for the quick respone...

So do you know which class is doing the exact reading, i.e., executing  
something like:

	streamPointer->get(ch);
	vtkImageData <- ch;

Thanks
Hamid

On Mon, 27 Sep 2004 14:26:39 +0530, <kalyan.pushpala at wipro.com> wrote:

>
> Hai
> As VTK follows lazy evaluation
> Veiwer->render() will intiare reader->Update() .At that point of time
> file will be readed
>
> kalyan
>
> -----Original Message-----
> From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On
> Behalf Of Hamid
> Sent: Monday, September 27, 2004 2:23 PM
> To: vtkusers at vtk.org
> Subject: [vtkusers] vtkImageReader and actual file access time
>
> Hi
>
> I am a complete newbie when it comes to streaming and caching data to
> save
> memory.
> So I was wondering if anybody could tell me when VTK exactly does the
> file
> reading and accesses the file from hard disk.
> Does it do piece by piece or it reads the whole image file and keeps it
> in
> cache ?
>
> Say, I have this code:
>
> 	vtkBMPReader *reader = vtkBMPReader::New();
> 	vtkImageData *data = vtkImageData::New();
> 	vtkImageViewer *viewer = vtkImageViewer::New();
>
> 	reader->SetDataSpacing(1.0,1.0,2.0);
> 	reader->SetDataOrigin(0.0,0.0,0.0);
> 	reader->SetFileName("image.bmp");
>
> 	viewer->SetInput(reader->GetOutput());
> 	viewer->SetColorWindow(255);
> 	viewer->SetColorLevel(127.5);
> 	viewer->Render();
>
> The actual reading off the hard disk happens when it hits the
> reader->GetOutput() or viewer->Render() ?
>
> Any input is appreciated
> Thanks
> Hamid
>
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
> _______________________________________________
> 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
>
>
>
> Confidentiality Notice
>
> The information contained in this electronic message and any attachments  
> to this message are intended
> for the exclusive use of the addressee(s) and may contain confidential  
> or privileged information. If
> you are not the intended recipient, please notify the sender at Wipro or  
> Mailadmin at wipro.com immediately
> and destroy all copies of this message and any attachments.
>



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/



More information about the vtkusers mailing list