[vtkusers] Saving vtkImageData

Sepp^ Huber sepp.huber21 at gmx.at
Sat Jun 28 16:51:01 EDT 2003


Sorry to bother you again but there is something which I can't quite figure
out. I want to store a vtkImageData object using vtkImageExporter but somehow
I can't find how to set the name of the file.

What I do is the following:

	vtkImageData* pPointData = vtkImageData::New();
	vtkImageExport* pExporter = vtkImageExport::New();

	if( !DataToImageData( pPointData ) ) {
	  return false;
	}

	assert( pPointData );
	pExporter->SetInput( pPointData );
// shouldn't I be able to specify where the export goes to???
	pExporter->Export();

	pExporter->Delete();
	pPointData->Delete();


Thanks in advance
Chris

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!




More information about the vtkusers mailing list