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

Method InternalDeepCopy

Common/Transforms/vtkGeneralTransform.cxx:165–192  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

163
164//------------------------------------------------------------------------------
165void vtkGeneralTransform::InternalDeepCopy(vtkAbstractTransform* gtrans)
166{
167 vtkGeneralTransform* transform = static_cast<vtkGeneralTransform*>(gtrans);
168
169 // copy the input
170 this->SetInput(transform->Input);
171
172 // copy the concatenation
173 this->Concatenation->DeepCopy(transform->Concatenation);
174
175 // copy the stack
176 if (transform->Stack)
177 {
178 if (this->Stack == nullptr)
179 {
180 this->Stack = vtkTransformConcatenationStack::New();
181 }
182 this->Stack->DeepCopy(transform->Stack);
183 }
184 else
185 {
186 if (this->Stack)
187 {
188 this->Stack->Delete();
189 this->Stack = nullptr;
190 }
191 }
192}
193
194//------------------------------------------------------------------------------
195void vtkGeneralTransform::InternalUpdate()

Callers

nothing calls this directly

Calls 4

SetInputMethod · 0.95
DeleteMethod · 0.65
NewFunction · 0.50
DeepCopyMethod · 0.45

Tested by

no test coverage detected