| 103 | } |
| 104 | |
| 105 | void vtkAnnotationLayers::ShallowCopy(vtkDataObject* other) |
| 106 | { |
| 107 | this->Superclass::ShallowCopy(other); |
| 108 | vtkAnnotationLayers* obj = vtkAnnotationLayers::SafeDownCast(other); |
| 109 | if (!obj) |
| 110 | { |
| 111 | return; |
| 112 | } |
| 113 | this->Implementation->Annotations.clear(); |
| 114 | for (unsigned int a = 0; a < obj->GetNumberOfAnnotations(); ++a) |
| 115 | { |
| 116 | vtkAnnotation* ann = obj->GetAnnotation(a); |
| 117 | this->AddAnnotation(ann); |
| 118 | } |
| 119 | this->SetCurrentAnnotation(obj->GetCurrentAnnotation()); |
| 120 | } |
| 121 | |
| 122 | void vtkAnnotationLayers::DeepCopy(vtkDataObject* other) |
| 123 | { |
nothing calls this directly
no test coverage detected