[vtkusers] XYPlotActor with LineWidget Question
Alan Blair
alan.blair at scienziasystems.com
Wed Mar 30 10:22:38 EST 2005
Hi Vidyadhar,
Thanks for the help. Is using the transform different than calling
vktRenderer->GetActiveCamera->Azimuth(rotation) ? I've tried this and it
did not work. Thanks,
Alan
_____
From: vidyadhar [mailto:vidyadhar at lucidindia.net]
Sent: Tuesday, March 29, 2005 9:37 PM
To: alan.blair at scienziasystems.com
Cc: vtkusers
Subject: Re: [vtkusers] XYPlotActor with LineWidget Question
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 <mailto:alan.blair at scienziasystems.com>
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/581ca2d6/attachment.htm>
More information about the vtkusers
mailing list