[vtkusers] SetAspect does nothing???

Greg Scott g.scott at oneteldsl.net
Fri Jul 11 18:15:26 EDT 2003


Hi there,

I am trying to set the aspect ratio of a perspective rendering using
vtkViewport->SetAspect. However, different settings have no effect what so
ever. I believe this is because I'm using OpenGLRenderWindow. Does anyone
know the work around for this?

Many thanks for any responses.

Greg

----- Original Message ----- 
From: <vtkusers-request at vtk.org>
To: <vtkusers at vtk.org>
Sent: Friday, July 11, 2003 12:38 PM
Subject: vtkusers digest, Vol 1 #1949 - 1 msg


> Send vtkusers mailing list submissions to
> vtkusers at vtk.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://www.vtk.org/mailman/listinfo/vtkusers
> or, via email, send a message with subject or body 'help' to
> vtkusers-request at vtk.org
>
> You can reach the person managing the list at
> vtkusers-admin at vtk.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of vtkusers digest..."
>
>
> Today's Topics:
>
>    1. Re: Multiple slices of a raw data (Romain Ollivier)
>
> --__--__--
>
> Message: 1
> Date: Fri, 11 Jul 2003 13:10:31 +0200
> From: Romain Ollivier <Romain.Ollivier at sophia.inria.fr>
> To: =?iso-8859-1?Q?H=E4m=E4l=E4inen?= Janne <Janne.Hamalainen at hus.fi>
> Cc: vtkusers at vtk.org
> Subject: Re: [vtkusers] Multiple slices of a raw data
>
> Thamk you for your response.
> I use this method to rotate my datas:
>
>   public void rotate(int angle)
>   {
>     slicer.SetInput(map.GetOutput());
>     slicer.SetResliceAxesOrigin(0, 0, 0);
>     transform.RotateX(angle);
>     slicer.SetResliceTransform(transform);
>   }
>
>  But it is the entire raw datas wich rotate... not the slice. The slices
are
> still along the z axis. I wanted to get three vtkImage actors of the same
raw
> data along x, y and z axis in the same renderer. Do you know if i can
perform
> that with vtkImageReslice filter ?
>
> Thamk you,
>
>       Romain
>
> Hämäläinen Janne wrote:
>
> > You have to filter the data through a vtkImageReslice filter. The class
> > slices a 3D image along specified direction. It does also plenty of
other
> > stuff. Look documentation for example from vtk homepage:
> >
> > http://www.vtk.org/doc/nightly/html/classvtkImageReslice.html
> >
> > -Janne
> >
> > --
> > Janne Hämäläinen
> > Research Assistant
> > Helsinki University Central Hospital
> > X-ray Department
> >
> > email   janne.hamalainen at hus.fi
> >
> > > ----------
> > > Lähettäjä:    Romain Ollivier[SMTP:Romain.Ollivier at sophia.inria.fr]
> > > Lähetetty:    11. heinäkuuta 2003 13:01
> > > Vastaanottaja:        vtkusers at vtk.org
> > > Aihe:         ÄvtkusersÅ Multiple slices of a raw data
> > >
> > >   Hi,
> > >
> > >   I'm working on a vtk viewer based on a swing interface. I use a
vtkPanel
> > > to show my results. I'm using raw datas and I want to watch them with
> > > differents slices like that :
> > >
> > >
> > >            /|
> > >   ________/______
> > >  |       /  |    |
> > >  |  ____/___|____|__
> > >  | /   |   /     | /
> > >  |/____|__/______|/
> > >  /     | /       /
> > > /______|/_______/|
> > >  |     |   /     |
> > >  |_____|__/______|
> > >        | /
> > >        |/
> > >
> > > But it seems that slices can only be defined on the z axis.
> > >
> > > Has anyone an idea to handle this problem ?
> > >
> > > Thanks a lot,
> > >
> > >        Romain
> > > _______________________________________________ This is the private
VTK
> > > discussion list. Please keep messages on-topic. Check the FAQ at:
Follow
> > > this link to subscribe/unsubscribe:
> > > http://www.vtk.org/mailman/listinfo/vtkusers
> > >
>
>
>
> --__--__--
>
> _______________________________________________
> vtkusers mailing list
> vtkusers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
> End of vtkusers Digest




More information about the vtkusers mailing list