------------------------------------------------------------------------------
| 299 | |
| 300 | //------------------------------------------------------------------------------ |
| 301 | void vtkDataRepresentation::UpdateAnnotations(vtkAnnotationLayers* annotations, bool extend) |
| 302 | { |
| 303 | if (extend) |
| 304 | { |
| 305 | // Append the annotations to the existing set of annotations on the link |
| 306 | vtkAnnotationLayers* currentAnnotations = this->AnnotationLinkInternal->GetAnnotationLayers(); |
| 307 | for (unsigned int i = 0; i < annotations->GetNumberOfAnnotations(); ++i) |
| 308 | { |
| 309 | currentAnnotations->AddAnnotation(annotations->GetAnnotation(i)); |
| 310 | } |
| 311 | this->InvokeEvent( |
| 312 | vtkCommand::AnnotationChangedEvent, reinterpret_cast<void*>(currentAnnotations)); |
| 313 | } |
| 314 | else |
| 315 | { |
| 316 | this->AnnotationLinkInternal->SetAnnotationLayers(annotations); |
| 317 | this->InvokeEvent(vtkCommand::AnnotationChangedEvent, reinterpret_cast<void*>(annotations)); |
| 318 | } |
| 319 | } |
| 320 | |
| 321 | //------------------------------------------------------------------------------ |
| 322 | void vtkDataRepresentation::SetSelectionArrayName(const char* name) |
no test coverage detected