[vtkusers] array of linesources, mappers,....
Luke J West
ljw at soc.soton.ac.uk
Tue Jan 20 07:45:58 EST 2004
David, remember you're actually trying to create an array of vtkLineSource
pointers, not an array of vtkLineSource objects. Try this...
class CDraw {
vtkLineSource **l1;
public:
CDraw(int lines) {
l1=new vtkLineSource*[lines];
for(int i=0;i<lines;i++)
l1[i]=vtkLineSource::New();
}
}; // CDraw
Luke J West : Research Assistant : e-Science
--------------------------------------------
Rm. 566/12, School of Ocean & Earth Sciences
Southampton Oceanography Centre, Southampton
SO14 3ZH United Kingdom
--------------------------------------------
Tel: +44 23 8059 4801 Fax: +44 23 8059 3052
Mob: +44 79 6107 4783
More information about the vtkusers
mailing list