[vtkusers] array of linesources, mappers,....
Malcolm Drummond
malcolm at geovision.co.za
Tue Jan 20 07:28:14 EST 2004
Hi David
The constructor is protected to enable reference counting, use ::New()
HTH
Malcolm
----- Original Message -----
From: david michell
To: vtkusers at vtk.org
Sent: Tuesday, January 20, 2004 2:20 PM
Subject: [vtkusers] array of linesources, mappers,....
Hello everyone,
Iam developing a class which draws lines.
The constructor of the class takes the number of lines to draw
//all the #includes are here
class CDraw
{
vtkLineSource **l1;
public:
CDraw(int lines)
{
l1=new vtkLineSource[lines]; //this does not work.
}
};
Iam getting a compiler error saying that cannot access protected method.
Please help me.
Any other way to do what Iam trying to do?
Thanks in advance for the help.
david michell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040120/a6cefba0/attachment.htm>
More information about the vtkusers
mailing list