[vtkusers] VTI Read Whole Extent
    Kevin H. Hobbs 
    hobbsk at ohiou.edu
       
    Mon Jul 24 15:53:11 EDT 2006
    
    
  
Is there some way to get vtkXMLImageDataReader to read the whole extent
and other descriptive information of a ".vti" image file without reading
any of the data. I tried UpdateInformation like but it doesn't work.
#include "vtkImageData.h"
#include "vtkXMLImageDataReader.h"
int main( int argc, char *argv[] )
{
	vtkXMLImageDataReader * reader 
		= vtkXMLImageDataReader::New();
	reader->SetFileName( argv[1] );
	reader->UpdateInformation();
	int * size = reader->GetOutput()->GetDimensions();
	std::cout 
		<< size[0] << " " 
		<< size[1] << " " 
		<< size[2] << std::endl;
	return 0;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060724/e5857283/attachment.pgp>
    
    
More information about the vtkusers
mailing list