<!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.6000.16481" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello! I've made a simple VTK/C++ test program. 
It's just a 2D line. Now, I don't know how to&nbsp;make the line size change 
since I've tried&nbsp;many methods; and changing vtkActor's coordinate system 
(vtkActor2D's), but no results. I even wonder what coordinate system is 
vtkLineSource defined in (see code below).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><U>Here's my code</U>:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>vtkLineSource 
*line=vtkLineSource::New();<BR>&nbsp;&nbsp;&nbsp; 
line-&gt;SetPoint1(20.0,20.0,0.0);&nbsp;&nbsp;&nbsp; <FONT color=#ff0000>// what 
Coordinate System??</FONT><BR>&nbsp;&nbsp;&nbsp; 
line-&gt;SetPoint2(80.0,150.0,0.0);&nbsp; <FONT color=#ff0000>// what Coordinate 
System??</FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>vtkPolyDataMapper2D 
*mapper=vtkPolyDataMapper2D::New();<BR></FONT><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp; 
mapper-&gt;SetInput(line-&gt;GetOutput());</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>vtkActor2D 
*actor=vtkActor2D::New();<BR></FONT><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; 
actor-&gt;SetMapper(mapper);<BR>&nbsp;&nbsp;&nbsp; 
actor-&gt;GetProperty()-&gt;SetColor(1.0,0.0,0.0);<BR>&nbsp;&nbsp;&nbsp; 
actor-&gt;SetWidth(0.5);&nbsp;&nbsp;&nbsp; // <FONT color=#ff0000>Doesn't 
work!!</FONT><BR>&nbsp;&nbsp;&nbsp; 
actor-&gt;SetHeight(0.5);&nbsp;&nbsp;&nbsp;// <FONT color=#ff0000>Doesn't 
work!!</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>vtkRenderer 
*render=vtkRenderer::New();<BR>vtkRenderWindow 
*win=vtkRenderWindow::New();<BR>&nbsp;&nbsp;&nbsp; 
win-&gt;AddRenderer(render);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>vtkRenderWindowInteractor 
*interac=vtkRenderWindowInteractor::New();<BR>&nbsp;&nbsp;&nbsp; 
interac-&gt;SetRenderWindow(win);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; 
render-&gt;AddActor2D(actor);<BR>&nbsp;&nbsp;&nbsp; 
render-&gt;SetBackground(0.1,0.2,0.4);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; win-&gt;Render();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; 
interac-&gt;Initialize();<BR>&nbsp;&nbsp;&nbsp; 
interac-&gt;Start();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>line-&gt;Delete();<BR>mapper-&gt;Delete();<BR>actor-&gt;Delete();<BR>render-&gt;Delete();<BR>win-&gt;Delete();<BR>interac-&gt;Delete();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I want to make the line resize when changing 
windows size. I'd be very grateful if somebody could help me with this. 
Thanks!!!</FONT></DIV></BODY></HTML>