[vtkusers] Off-Axis Projection

David Gobbi david.gobbi at gmail.com
Mon Dec 5 10:54:09 EST 2011


Hi Mark,

The vtkCamera has a method that does exactly what you need.

To go 100% off-axis left:
camera->SetWindowCenter(-1.0, 0.0);
To got 100% off-axis top:
camera->SetWindowCenter(0.0, +1.0);
etcetera.

 - David


On Mon, Dec 5, 2011 at 7:15 AM, Mark Cachia <m_cachia at hotmail.com> wrote:

> Hello fellow vtk users,
>
> I'm trying to simulate a 100% off-axis bottom projection
> (
> http://www.dnp-screens.com/DNP08/Technology/Basic-Visual/Screens/On-axis/Off-axis-projection.aspx
> )
> using the vtkCamera. I am having a bit of trouble figuring out how to
> accomplish this though. I was wondering if anyone had any suggestions on
> how
> to simulate this. I think SetViewShear would do the trick, but I would be
> appreciative of some feedback.
>
> Thank you very much!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111205/bbc37c95/attachment.htm>


More information about the vtkusers mailing list