[vtkusers] XYPlotActor with LineWidget Question

Alan Blair alan.blair at scienziasystems.com
Tue Mar 29 10:07:03 EST 2005


Hello,

 

I am using two vtkLineWidgets with two vtkXYPlotActors and a vtkImageActor
in the same render window but with their own renders.  I'm displaying a 2D
representation of a 3D object containing points and scalars, and using the
LineWidgets->GetPolyData() to get cross sections to display in the XYPlots.
The problem I'm having is that I'd like one of the XYPlotActors to be
displayed in a vertical orientation.  I've tried the ExchangeAxes() method,
but this only swaps the axes, not the data.  I've also tried rotating the
camera associated with one of the XYPlots, but no luck.  

 

I have a couple further ideas, but thought I'd look for some advice.  My
other ideas are: to extract the X and Y arrays from the
LineWidgets->GetPolyData() and then swap them; or to use separate render
windows for each plot and the 3D data.  I'm not quite sure how to extract
the XY arrays from the PolyData for the first idea, and the second idea
seems messy.  Anyone have any other ideas?  Thanks,

 

Alan Blair

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050329/4c44e2d1/attachment.htm>


More information about the vtkusers mailing list