[vtkusers] where is the code for rotation?

Hossein Nazem hossein.nazem at gmail.com
Wed Feb 20 07:35:27 EST 2013


tnx alex
i will explore vtkInteractorStyle,... i tested GetDesiredUpdateRate()
but i didnt see any impact on image quality i think its better i test it
again
hossein



On Wed, Feb 20, 2013 at 1:06 AM, Alex Malyushytskyy <alexmalvtk at gmail.com>wrote:

> I bet it is in vtkInteractorStyle or it subclass.
> I would expect  all you need to do is SetDesiredUpdateRate
> for vtkRenderWindow ( get it from interactor ) to interactor desired
> update rate ( GetDesiredUpdateRate() )
> before rotation:
>
> ( r - vtkRenderWindowInteractor )
>
>  r->GetRenderWindow()->SetDesiredUpdateRate(r->GetDesiredUpdateRate());
>
> and return it back tio normal after rotation :
>
>  r->GetRenderWindow()->SetDesiredUpdateRate(r->GetStillUpdateRate());
>
>
> Alex
>
>
>
> On Mon, Feb 18, 2013 at 10:01 AM, Hossein Nazem <hossein.nazem at gmail.com>
> wrote:
> > i checked the  vtkRenderWindowInteractor.cxx but i couldnt find the code
> > relevent to rotation
> >
> >
> > On Mon, Feb 18, 2013 at 9:24 PM, Hossein Nazem <hossein.nazem at gmail.com>
> > wrote:
> >>
> >>
> >> hi all,
> >> i have a 3d volume and i ve wrote a function to rotate it:
> >>
> >> Renderer->GetActiveCamera()->Roll(deg1);
> >> Renderer->GetActiveCamera()->Azimuth(deg2);
> >> Renderer->GetActiveCamera()->Elevation(deg3);
> >>
> >> in comparison with defult rotation in vtkrenderwindowinteractor, mine is
> >> slower and keep the image quality while the defult rotation(which use
> mouse
> >> events) reduces the quality during the rotation and when the rotation
> >> finished it restores the initial quality, i want to know where is the
> code
> >> of this process or how could i do the same?
> >> thanks
> >> hossein
> >
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130220/9234cf14/attachment.htm>


More information about the vtkusers mailing list