------------------------------------------------------------------------------
| 113 | |
| 114 | //------------------------------------------------------------------------------ |
| 115 | void vtkQtAnnotationView::Update() |
| 116 | { |
| 117 | vtkDataRepresentation* rep = this->GetRepresentation(); |
| 118 | if (!rep) |
| 119 | { |
| 120 | this->Adapter->reset(); |
| 121 | this->View->update(); |
| 122 | return; |
| 123 | } |
| 124 | |
| 125 | // Make sure the input connection is up to date. |
| 126 | vtkDataObject* a = rep->GetAnnotationLink()->GetAnnotationLayers(); |
| 127 | if (a->GetMTime() != this->LastInputMTime) |
| 128 | { |
| 129 | this->LastInputMTime = a->GetMTime(); |
| 130 | |
| 131 | this->Adapter->SetVTKDataObject(nullptr); |
| 132 | this->Adapter->SetVTKDataObject(a); |
| 133 | } |
| 134 | |
| 135 | this->View->update(); |
| 136 | |
| 137 | this->View->resizeColumnToContents(0); |
| 138 | this->View->resizeColumnToContents(1); |
| 139 | } |
| 140 | |
| 141 | //------------------------------------------------------------------------------ |
| 142 | void vtkQtAnnotationView::PrintSelf(ostream& os, vtkIndent indent) |
nothing calls this directly
no test coverage detected