[vtkusers] how to keep Actor2D's aspect when the window resize?

Yao Jifeng crazyyao at mail.rdcps.ac.cn
Mon Jun 21 05:32:14 EDT 2004


hi,

i am now drawing a 2d contour map of some grid data.
the problem is that i can't find an easy way to keep 
the aspect ratio of the map when i resize the window.

what i want is the contour map can act just like the common 
3d actors: the map is always in the center of the window and 
it doesn't change its ratio the the window resizes.

obviously this is up to the coordinate system. i almost tried
everyone:display,viewport,view (normalized ones shouldn't be 
used here,right?)... but none of them works.

which one should i use, and how ?

ContourActor->GetPositionCoordinate()->SetCoordinateSystemTo???();
ContourMapper->SetTransformCoordinate(???);


thanks.

Joey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040621/dcaf96a9/attachment.htm>


More information about the vtkusers mailing list