------------------------------------------------------------------------------
| 116 | |
| 117 | //------------------------------------------------------------------------------ |
| 118 | void vtkImageStack::ShallowCopy(vtkProp* prop) |
| 119 | { |
| 120 | vtkImageStack* v = vtkImageStack::SafeDownCast(prop); |
| 121 | |
| 122 | if (v != nullptr) |
| 123 | { |
| 124 | this->Images->RemoveAllItems(); |
| 125 | vtkCollectionSimpleIterator pit; |
| 126 | v->Images->InitTraversal(pit); |
| 127 | vtkImageSlice* image = nullptr; |
| 128 | while ((image = v->Images->GetNextImage(pit)) != nullptr) |
| 129 | { |
| 130 | this->Images->AddItem(image); |
| 131 | } |
| 132 | this->SetActiveLayer(v->GetActiveLayer()); |
| 133 | } |
| 134 | |
| 135 | // Now do prop superclass (NOT vtkImageSlice) |
| 136 | // NOLINTNEXTLINE(bugprone-parent-virtual-call) |
| 137 | this->vtkProp3D::ShallowCopy(prop); |
| 138 | } |
| 139 | |
| 140 | //------------------------------------------------------------------------------ |
| 141 | void vtkImageStack::SetProperty(vtkImageProperty*) |
nothing calls this directly
no test coverage detected