[vtkusers] array of linesources, mappers,....

Luke J West ljw at soc.soton.ac.uk
Tue Jan 20 07:56:02 EST 2004


Good point, Malcolm..

For completeness, David, here's that class again with the destructor....


 class CDraw {
  vtkLineSource **l1;
  int lines;

 public:
  CDraw(int l):lines(l) {
   l1=new vtkLineSource*[lines];

   for(int i=0;i<lines;i++)
    l1[i]=vtkLineSource::New();
  }

 ~CDraw() {
   for(int i=0;i<lines;i++)
    l1[i]->Delete();

   delete[] l1;
  }
 }; // 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