[vtkusers] Creating an array of objects of a VTK-class
Dmitri Danewitz
d.danewitz at yahoo.de
Sat Aug 8 12:57:35 EDT 2009
Hello,
I'm trying to create multiple objects of the vtkRectilinearReader class. It works fine, if I do it like this:
const int number = 4;
vtkRectilinearGridReader *Reader[number];
for(int nr = 0; nr < number; nr++)
{
Reader[nr] = vtkRectilinearGridReader::New();
}
But when "number" is not a constant, this doesn't work. Is there a away to do this without having "number" to be a constant?
Thanks
Dmitri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090808/741eabb3/attachment.htm>
More information about the vtkusers
mailing list