[vtkusers] trouble with sample wxvtk
Héber de Padua Sousa
hebersousa at gmail.com
Wed Jul 14 18:38:29 EDT 2010
thanks. I have solved the problem with the help of wxvtk-users list.
The wxvtk 1.3 class was not adjusted to new vtk versions. The wxvtk 1.3 is
updated only until version 5.2 of VTK. But can be solved easily.
The program does not crash after issuing the error and by pressing t for
trackball mode you can use the program.
maybe the timer was changed and this timer is needed for joystick mode which
is the default. 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 ------
...
2010/7/9 Héber de Padua Sousa <hebersousa at gmail.com>
> 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 it:
> ERROR: In ..\..\Rendering\vtkInteractorStyle.cxx, line 392
> vtkInteractorStyleJoystickCamera (0957E070): Timer start failed
>
> What can It is?
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100714/6bab3528/attachment.htm>
More information about the vtkusers
mailing list