[vtkusers] XYPlotActor with LineWidget Question
vidyadhar
vidyadhar at lucidindia.net
Tue Mar 29 22:36:43 EST 2005
Hi,
vtkCamera has a user transform which you can set. Create vtkTransform instance and call SetUserTransform method of the camera. You can set rotation operation on the vtkTransform instance.
HTH
Vidyadhar
----- Original Message -----
From: Alan Blair
To: vtkusers at vtk.org
Sent: Tuesday, March 29, 2005 8:37 PM
Subject: [vtkusers] XYPlotActor with LineWidget Question
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/20050330/20ed581b/attachment.htm>
More information about the vtkusers
mailing list