[vtkusers] array of ... oops

Malcolm Drummond malcolm at geovision.co.za
Tue Jan 20 08:52:20 EST 2004


... doh. Time to get some sleep.

----- Original Message ----- 
  From: Malcolm Drummond 
  To: vtkusers 
  Sent: Tuesday, January 20, 2004 2:28 PM
  Subject: Re: [vtkusers] array of linesources, mappers,....


  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/2974ab03/attachment.htm>


More information about the vtkusers mailing list