<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi David</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The constructor is protected to enable reference 
counting, use ::New()</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>HTH</FONT></DIV>
<DIV><FONT face=Arial size=2>Malcolm</FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=davidmichell@rediffmail.com 
  href="mailto:davidmichell@rediffmail.com">david michell</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=vtkusers@vtk.org 
  href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, January 20, 2004 2:20 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [vtkusers] array of linesources, 
  mappers,....</DIV>
  <DIV><BR></DIV>
  <P>Hello everyone,<BR>Iam developing a class which draws lines.<BR>The 
  constructor of the class takes the number of lines to draw<BR><BR>//all the 
  #includes are here<BR>class CDraw<BR>{<BR>vtkLineSource 
  **l1;<BR><BR>public:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  <BR>CDraw(int lines)<BR>{<BR>l1=new vtkLineSource[lines]; //this does not 
  work. <BR>}<BR>};<BR><BR>Iam getting a compiler error saying that cannot 
  access protected method.<BR>Please help me.<BR>Any other way to do what Iam 
  trying to do?<BR>Thanks in advance for the help.<BR>david michell 
  </P><BR><BR><A href="http://clients.rediff.com/signature/track_sig.asp" 
  target=_blank><IMG height=74 hspace=0 
  src="http://ads.rediff.com/RealMedia/ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@Bottom" 
  width=496 border=0></A> </BLOCKQUOTE></BODY></HTML>