[vtkusers] override resetCamera of vtkRenderer
Alex Malyushytskyy
alexmalvtk at gmail.com
Mon Nov 21 19:03:29 EST 2011
It is not as bad as you think..
You can counter this with sub-classing vtkInteractorStyle.
If it is for example vtkInteractorStyleTrackballCamera subclass it.
override OnChar(), then
switch (this->Interactor->GetKeyCode())
{
case 'r':
case 'R':
// your function call
break;
default:
vtkInteractorStyleTrackballCamera::OnChar();
}
....
this->GetRenderWindow()->GetInteractor()->SetInteractorStyle(
m_ViewModelInteractorStyle );
On Sun, Nov 20, 2011 at 1:06 AM, youpie <meriadegp at yahoo.fr> wrote:
> If only you was right :)
>
> No, In fact my problem come if a push 'r' button or if i move the camera
> with mouse interaction. In this two case.
> I can create one thousand functions, only vtkRenderer::ResetCamera are
> called...
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/override-resetCamera-of-vtkRenderer-tp5000496p5007917.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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
>
More information about the vtkusers
mailing list