[vtkusers] Need Help
Najzero
adrian.gabriel at 4plus.de
Fri Jun 28 05:58:53 EDT 2013
Well, if you can't read what that line means, I believe you have some c++
reading to catch up.
But I am still giving you some directions here:
/vtkSmartPointer< vtkImageReader2Factory > imageFactory/
states that you want a vtkImageReader2Factory Objekt.
In vtk it is pretty common to store them in smart-pointers.
This is some sort of template class, knowing when it has to delete itself
( aka release memory - internally this is done by holding a count of
references ) - so basicly a neat garbage collection thing for c++.
And those smart-pointers are instantiated by
/ vtkSmartPointer< vtkImageReader2Factory >::New();/
So the logic behind this is pretty much the same as:
/vtkImageReader2Factory* imageFactory = new vtkImageReader2Factory(); /
without having to worry about /delete imageFactory;/
( please dont use this, its VTK "style" to do it with ::New() and so on )
Regards
Adrian
--
View this message in context: http://vtk.1045678.n5.nabble.com/Need-Help-tp5721653p5721655.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list