MCPcopy Create free account
hub / github.com/Kitware/VTK / ShallowCopy

Method ShallowCopy

Common/DataModel/vtkAnnotationLayers.cxx:105–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105void 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
122void vtkAnnotationLayers::DeepCopy(vtkDataObject* other)
123{

Callers

nothing calls this directly

Calls 4

AddAnnotationMethod · 0.95
clearMethod · 0.45
GetAnnotationMethod · 0.45

Tested by

no test coverage detected