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

Method DeepCopy

Common/DataModel/vtkAnnotationLayers.cxx:122–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void vtkAnnotationLayers::DeepCopy(vtkDataObject* other)
123{
124 this->Superclass::DeepCopy(other);
125 vtkAnnotationLayers* obj = vtkAnnotationLayers::SafeDownCast(other);
126 if (!obj)
127 {
128 return;
129 }
130 this->Implementation->Annotations.clear();
131 for (unsigned int a = 0; a < obj->GetNumberOfAnnotations(); ++a)
132 {
133 vtkSmartPointer<vtkAnnotation> ann = vtkSmartPointer<vtkAnnotation>::New();
134 ann->DeepCopy(obj->GetAnnotation(a));
135 this->AddAnnotation(ann);
136 }
137}
138
139vtkMTimeType vtkAnnotationLayers::GetMTime()
140{

Callers

nothing calls this directly

Calls 5

AddAnnotationMethod · 0.95
NewFunction · 0.50
clearMethod · 0.45
GetAnnotationMethod · 0.45

Tested by

no test coverage detected