MantisBT - VTK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0003441 | VTK | (No Category) | public | 2006-06-24 14:15 | 2013-04-05 19:56 |
| Reporter | Dominik Szczerba | ||||
| Assigned To | Clinton Stimpson | ||||
| Priority | high | Severity | major | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Project | |||||
| Type | |||||
| Summary | 0003441: problems with QVTKWidget and vtkCellPicker | ||||
| Description | I am sending an EndPickEvent to a slot in a widget containing a QVTKWidget: void aWidget::pick(vtkObject* caller){ vtkRenderWindowInteractor* iren = vtkRenderWindowInteractor::SafeDownCast(caller); vtkCellPicker *cellPicker = (vtkCellPicker *)iren->GetPicker(); cellPicker->PrintSelf(cerr,vtkIndent()); long id = cellPicker->GetCellId(); cerr << "cellPicker->GetCellId() = " << id << endl; } I connect to it as follows during the widget's initialization: vtkEventQtSlotConnect* connections = vtkEventQtSlotConnect::New(); connections->Connect(widget.GetRenderWindow()->GetInteractor(), vtkCommand::EndPickEvent,&widget,SLOT(pick(vtkObject*))); connections->PrintSelf(cerr, vtkIndent()); The slot routine is invoked properly with the 'p' hey and all infos from PrintSelf make sense (e.g. event position, window size, etc.), but GetCellId() doesnt (big negative constant). What am I doing wrong, with "plain" vtkCommands (without Qt) it works fine? regards, Dominik | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) | ||
| 2013-04-05 19:56 | Berk Geveci | Status | customer review => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||