Keeping a vtkDataSet* after reading
Evert-jan Vonken
evertjan at isi.uu.nl
Wed Jan 19 02:58:46 EST 2000
Hi,
In an DiskIO routine I would like to have a call like
vtkDataSet* readstuff(char* filename);
In readstuff a vtkDataSetReader* io=vtkdataSetReader::New();
instance is created.
After reading, I want to return the DataSet, but after the
vtkDataSet* result=io->getOutput();
or
io->setNthOutput(0,result); io->Update();
(which works)
vtkDataSetReader->Delete(); to clean up, the dataset is no longer valid?
How can I prevent Delete() from destroying the dataset,
setting the referenced count of the result or Register() do not seem to
work.
I'm using the nightly release of 12/19/99 on WinNT.
Regards,
Evert-jan
-----------------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>. For help, send message body containing
"info vtkusers" to the same address. Live long and prosper.
-----------------------------------------------------------------------------
More information about the vtkusers
mailing list