Re: [wxVTK] [wxvtk-users] trouble with sample wxvtk
Brought to you by:
malat
|
From: <ja...@be...> - 2010-07-13 11:16:40
|
Hello!
I guess the program does not crash after issuing the error and by pressing t for
trackball mode you can use the program. I was confronted with the same behaviour
after upgrading from VTK 5.0 to VTK 5.6. My assumption is that the timer was
changed and this timer is needed for joystick mode which is the default. If my
assumptions are correct and after pressing t the window works as expected, you
can add the lines between the clip and clap comments to the frame constructor:
MyFrame::MyFrame( const wxString& title,
const wxPoint& pos,
const wxSize& size )
: wxFrame((wxFrame *)NULL, -1, title, pos, size, wxDEFAULT_FRAME_STYLE |
wxMAXIMIZE)
{
...
// ----- clip ------
// We make use of trackball mode - joystick mode does not work
vtkSmartPointer<vtkInteractorStyleSwitch> intStyle =
vtkSmartPointer<vtkInteractorStyleSwitch>::New();
intStyle->SetCurrentStyleToTrackballCamera();
this->m_pVTKWindow = new wxVTKRenderWindowInteractor(this, MY_VTK_WINDOW);
this->m_pVTKWindow->SetInteractorStyle(intStyle);
this->m_pVTKWindow->UseCaptureMouseOn();
// ----- clap ------
...
Good luck!
Reinhard
"Héber de Padua Sousa" <heb...@gm...> hat am 10. Juli 2010 um 22:37
geschrieben:
> hi, I need help.
> I'm working in an aplication using vtk and wxvtk class.
> In the sample wxSample occur a error while I drag the mouse. The interaction
> not works.
>
> the log error is:
> ERROR: In ..\..\Rendering\vtkInteractorStyle.cxx, line 392
> vtkInteractorStyleJoystickCamera (0957E070): Timer start failed
>
> What can It is? |