[vtkusers] PLASE HELP: QVTKInteractor Not Working
John Eke
johne at annidis.com
Wed Jun 4 16:41:23 EDT 2008
Hi,
I am trying to create a Qt application with a QVTKWidget in there. I
have a piece of code I have written in pure VTK + ITK, using
vtkInteractorStyleImage on a vtkRenderWindpowInteractor, and all goes
well. For some reason, when I move this code over to the QVTKWidget
(making necessary changes), the app loads, but when I try to use the
interactor, a segmentation fault error occurs and the application dies.
Heres a code snippet:
m_pImageActor = vtkImageActor::New();
m_pRenderer = vtkRenderer::New();
m_pInteractor = qvtkwidget->GetInteractor();
vtkInteractorStyleImage* pIStyle = vtkInteractorStyleImage::New();
m_pInteractor->SetInteractorStyle(pIStyle);
pIStyle->Delete();
GetRenderWindow()->AddRenderer(m_pRenderer);
m_pRenderer->AddActor(m_pImageActor);
m_pImageActor->SetInput(connector->GetOutput());
qvtkwidget->GetRenderWindow()->Render();
heres the callstack from the debugger:
Thread [1] (Suspended: Signal 'SIGSEGV' received. Description:
Segmentation fault.)
45 <symbol is not available> 0x0000004b
44 vtkImageImport::InvokeUpdateInformationCallbacks() 0xb62f4f15
43 vtkImageImportExecutive::ProcessRequest() 0xb62fc4d2
42 vtkDemandDrivenPipeline::UpdateInformation() 0xb5f56661
41 vtkDataObject::UpdateInformation() 0xb5f40480
40 vtkImageData::UpdateInformation() 0xb5f9e39f
39 vtkImageActor::GetDisplayBounds() 0xb71d7c25
38 vtkImageActor::GetBounds() 0xb71d86aa
37 vtkFrustumCoverageCuller::Cull() 0xb71c96a6
36 vtkRenderer::AllocateTime() 0xb724f5f9
35 vtkRenderer::Render() 0xb7250986
34 vtkRendererCollection::Render() 0xb7257424
33 vtkRenderWindow::DoStereoRender() 0xb7240b9c
32 vtkRenderWindow::DoFDRender() 0xb7241029
31 vtkRenderWindow::DoAARender() 0xb724160e
30 vtkRenderWindow::Render() 0xb7241ce3
29 vtkXOpenGLRenderWindow::Render() 0xb72d7b2a
28 vtkRenderWindowInteractor::Render() 0xb724b8ec
27 vtkInteractorStyle::StopState() 0xb71ec4b2
26 vtkInteractorStyleImage::EndWindowLevel() 0xb71f353d
25 vtkInteractorStyleImage::OnLeftButtonUp() 0xb71f3913
24 vtkInteractorStyle::ProcessEvents() 0xb71eaee4
23 vtkCallbackCommand::Execute() 0xb659c046
22 vtkSubjectHelper::InvokeEvent() 0xb662c30f
21 vtkObject::InvokeEvent() 0xb662c407
20 QVTKWidget::mouseReleaseEvent() 0xb7ed69ef
19 QVTKCameraView::mouseReleaseEvent() 0x08154bb4
18 QWidget::event() 0xb791dfbd
17 QVTKWidget::event() 0xb7ed7c5c
16 QApplicationPrivate::notify_helper() 0xb78d428d
15 QApplication::notify() 0xb78d84f1
14 QCoreApplication::notifyInternal() 0xb753ec1b
13 <symbol is not available> 0xb7930b4a
12 QApplication::x11ProcessEvent() 0xb7930197
11 <symbol is not available> 0xb7955684
10 g_main_context_dispatch() 0xb55c1bf8
9 <symbol is not available> 0xb55c4e5e
8 g_main_context_iteration() 0xb55c53ac
7 QEventDispatcherGlib::processEvents() 0xb7562f82
6 <symbol is not available> 0xb7955475
5 QEventLoop::processEvents() 0xb753dfb2
4 QEventLoop::exec() 0xb753e0bc
3 QCoreApplication::exec() 0xb754088a
2 QApplication::exec() 0xb78d36e7
1 main() 0x081b0cf2
ANY kind of help is greatly appreciated.
Thanks
John E
More information about the vtkusers
mailing list