This defines the QT slot. They way it works is first get the vtkSelection, push it to the default vtkAnnotationLink associated with each vtkDataRepresentation of each view type and then call Update or Render (if it is a vtkRenderView) on each view.
| 200 | // vtkDataRepresentation of each view type and then call Update or |
| 201 | // Render (if it is a vtkRenderView) on each view. |
| 202 | void CustomLinkView::selectionChanged( |
| 203 | vtkObject*, unsigned long, void* vtkNotUsed(clientData), void* callData) |
| 204 | { |
| 205 | vtkSelection* selection = reinterpret_cast<vtkSelection*>(callData); |
| 206 | if (selection) |
| 207 | { |
| 208 | this->GraphView->GetRepresentation()->GetAnnotationLink()->SetCurrentSelection(selection); |
| 209 | this->TreeView->GetRepresentation()->GetAnnotationLink()->SetCurrentSelection(selection); |
| 210 | this->TableView->GetRepresentation()->GetAnnotationLink()->SetCurrentSelection(selection); |
| 211 | this->ColumnView->GetRepresentation()->GetAnnotationLink()->SetCurrentSelection(selection); |
| 212 | |
| 213 | this->TreeView->Update(); |
| 214 | this->TableView->Update(); |
| 215 | this->ColumnView->Update(); |
| 216 | |
| 217 | this->GraphView->Render(); |
| 218 | } |
| 219 | } |
nothing calls this directly
no test coverage detected