<!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 make the line size change 
since I've tried 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> </DIV>
<DIV><FONT face=Arial size=2><U>Here's my code</U>:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>vtkLineSource 
*line=vtkLineSource::New();<BR>    
line->SetPoint1(20.0,20.0,0.0);    <FONT color=#ff0000>// what 
Coordinate System??</FONT><BR>    
line->SetPoint2(80.0,150.0,0.0);  <FONT color=#ff0000>// what Coordinate 
System??</FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>vtkPolyDataMapper2D 
*mapper=vtkPolyDataMapper2D::New();<BR></FONT><FONT face=Arial 
size=2>    
mapper->SetInput(line->GetOutput());</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>vtkActor2D 
*actor=vtkActor2D::New();<BR></FONT><FONT face=Arial size=2>    
actor->SetMapper(mapper);<BR>    
actor->GetProperty()->SetColor(1.0,0.0,0.0);<BR>    
actor->SetWidth(0.5);    // <FONT color=#ff0000>Doesn't 
work!!</FONT><BR>    
actor->SetHeight(0.5);   // <FONT color=#ff0000>Doesn't 
work!!</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>vtkRenderer 
*render=vtkRenderer::New();<BR>vtkRenderWindow 
*win=vtkRenderWindow::New();<BR>    
win->AddRenderer(render);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>vtkRenderWindowInteractor 
*interac=vtkRenderWindowInteractor::New();<BR>    
interac->SetRenderWindow(win);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>    
render->AddActor2D(actor);<BR>    
render->SetBackground(0.1,0.2,0.4);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>    win->Render();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>    
interac->Initialize();<BR>    
interac->Start();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial 
size=2>line->Delete();<BR>mapper->Delete();<BR>actor->Delete();<BR>render->Delete();<BR>win->Delete();<BR>interac->Delete();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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>