<div id="result_box" dir="ltr">Hi,<br><br>Only it does not solve, I'm with the same problem and I could not solve.<br><br><br></div>Regards,<br>Paulo Amorim<br><br><br><br><div class="gmail_quote">2008/11/25 Peter F Bradshaw <span dir="ltr"><<a href="mailto:pfb@exadios.com">pfb@exadios.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Liang Ma;<br>
<br>
Are you calling this->pvtkRenderer->Render() anywhere?<br>
<div><div></div><div class="Wj3C7c"><br>
On Mon, 24 Nov 2008, Liang Ma wrote:<br>
<br>
> Hi all,<br>
><br>
> 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.<br>
><br>
> Whould you give me some advices? Thanks.<br>
><br>
> Regards<br>
><br>
> Liang Ma<br>
><br>
> Here is the code:<br>
><br>
> vtkActor2D *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<br>
> this->pvtkActor->GetProperty()->SetColor(1, 0, 0);<br>
><br>
> the code for zoom:<br>
><br>
> ////////////////////////////////////////////////////////////////////////<br>
> this->pvtkCamera = this->pvtkRenderer->GetActiveCamera ();<br>
> this->pvtkCamera->Zoom(5); // zoom doesn't work<br>
> this->pvtkRenderer->SetActiveCamera (this->pvtkCamera) ;<br>
> ///////////////////////////////////////////////////////////////////////////<br>
><br>
<br>
</div></div>Cheers<br>
<br>
--<br>
Peter F Bradshaw: <a href="http://www.exadios.com" target="_blank">http://www.exadios.com</a> (public keys avaliable there).<br>
Personal site: <a href="http://personal.exadios.com" target="_blank">http://personal.exadios.com</a><br>
"I love truth, and the way the government still uses it occasionally to<br>
keep us guessing." - Sam Kekovich.<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>