I am trying to add a vtkGraphLayoutView into a QVTK widget so that I can connect a custom vtk callback command to the QT signals and slots. <br>Specifically I need to add an observer to the annotation link to update selections. <br>
Previously I set up the callback with this code: <br><br> selectionCallback = vtkSmartPointer<vtkCallbackCommand>::New();<br> selectionCallback->SetClientData(this);<br> selectionCallback->SetCallback (SelectionCallbackFunction);<br>
graphLayoutView->GetRepresentation()->GetAnnotationLink()->AddObserver("AnnotationChangedEvent", selectionCallback);<br><br>How would I add the GraphLayout View to a QTMainWindow and maintain the ability to create custom callbacks as if it were a normal renderWindow? <br>
<br>Thanks<br>Ankit<br>