[vtk-developers] vtkFileOutputWindow syntax
David Doria
daviddoria at gmail.com
Tue Jun 12 07:20:43 EDT 2012
The documentation for this class says:
http://www.vtk.org/doc/nightly/html/classvtkFileOutputWindow.html#details
"To use this class, instantiate it and then call SetInstance(this)."
It seems like you have to do this:
vtkSmartPointer<vtkFileOutputWindow> fileOutputWindow =
vtkSmartPointer<vtkFileOutputWindow>::New();
fileOutputWindow->SetFileName( "output2.txt" );
fileOutputWindow->SetInstance( fileOutputWindow );
If you are supposed to call SetInstance(this), why not just set that
internally and not require a SetInstance call at all?
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120612/e52583d0/attachment.html>
More information about the vtk-developers
mailing list