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

Method ShallowCopy

Common/DataModel/vtkStatisticalModel.cxx:124–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void 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
150void vtkStatisticalModel::DeepCopy(vtkDataObject* src)
151{

Callers

nothing calls this directly

Calls 3

ModifiedMethod · 0.45
GetClassNameMethod · 0.45

Tested by

no test coverage detected