<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial>Hi all,</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>I tried to scale a 2D actor but it doesn't work. I tried
GetPosition2Coordinate() function but it doesn't work. Also I tried to
zoom the camera. It does not work either.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Whould you give me some advices? Thanks.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Regards</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Liang Ma</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial><STRONG>Here is the code:</STRONG></FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV> <SPAN class=t_tag onclick=tagshow(event)
href="tag.php?name=vtk">vtk</SPAN>Actor2D *pvtkActor;<BR>
..........................<BR> this->pvtkActor->GetPositionCoordinate()->SetCoordinateSystemToNormalizedViewport();<BR> this->pvtkActor->GetPositionCoordinate()->SetValue(0.5,
0.5); // works, could move the actor to the
center<BR> this->pvtkActor->GetPosition2Coordinate()->SetValue(0.9,
0.9); // does not work, no effect</DIV>
<DIV> this->pvtkActor->GetProperty()->SetColor(1, 0, 0);</DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial><STRONG>the code for zoom:</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>////////////////////////////////////////////////////////////////////////<BR>
this->pvtkCamera =
this->pvtkRenderer->GetActiveCamera ();<BR>
this->pvtkCamera->Zoom(5); //
zoom doesn't work</DIV>
<DIV>
this->pvtkRenderer->SetActiveCamera (this->pvtkCamera)
;<BR>///////////////////////////////////////////////////////////////////////////<BR></DIV></BODY></HTML>