| 122 | } |
| 123 | |
| 124 | void vtkStatisticalModel::ShallowCopy(vtkDataObject* src) |
| 125 | { |
| 126 | if (src == this) |
| 127 | { |
| 128 | return; |
| 129 | } |
| 130 | |
| 131 | if (!src) |
| 132 | { |
| 133 | return; |
| 134 | } |
| 135 | |
| 136 | if (auto* source = vtkStatisticalModel::SafeDownCast(src)) |
| 137 | { |
| 138 | this->Superclass::ShallowCopy(source); |
| 139 | this->SetAlgorithmParameters(source->GetAlgorithmParameters()); |
| 140 | this->ModelTables = source->ModelTables; |
| 141 | this->Modified(); |
| 142 | } |
| 143 | else |
| 144 | { |
| 145 | vtkErrorMacro( |
| 146 | "Can only copy another vtkStatisticalModel, but was passed " << src->GetClassName() << "."); |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | void vtkStatisticalModel::DeepCopy(vtkDataObject* src) |
| 151 | { |
nothing calls this directly
no test coverage detected