[vtkusers] Scale vtkActor2D while resize window

Isidro Moreno morenoisidro at yahoo.com.ar
Fri Jun 22 16:51:34 EDT 2007


Hello!

How can I make a vtkActor2D object autoscale when the window size change. I've looking some examples (like vtkXYPlotActor in X:\VTK\Hybrid\Testing\Tcl\xyPlot.tcl) and It seems to have nothing special.

The problem is, that GetPosition2Coordinate()->SetValue(....) doesn't work but GetPositionCoordinate()->SetValue(....) yes. Neither the methods vtkActor2D->SetHeight() and Set Width() work! I can only move it.

do I need to know my viewport dimensions?
What is the right way to autoscale 2Dactors?

Thank you!!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070622/7f9aa550/attachment.htm>


More information about the vtkusers mailing list