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

Method InternalDeepCopy

Common/Transforms/vtkPerspectiveTransform.cxx:139–169  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

137
138//------------------------------------------------------------------------------
139void vtkPerspectiveTransform::InternalDeepCopy(vtkAbstractTransform* gtrans)
140{
141 vtkPerspectiveTransform* transform = static_cast<vtkPerspectiveTransform*>(gtrans);
142
143 // copy the input
144 this->SetInput(transform->Input);
145
146 // copy the concatenation
147 this->Concatenation->DeepCopy(transform->Concatenation);
148
149 // copy the stack
150 if (transform->Stack)
151 {
152 if (this->Stack == nullptr)
153 {
154 this->Stack = vtkTransformConcatenationStack::New();
155 }
156 this->Stack->DeepCopy(transform->Stack);
157 }
158 else
159 {
160 if (this->Stack)
161 {
162 this->Stack->Delete();
163 this->Stack = nullptr;
164 }
165 }
166
167 // defer to superclass
168 this->vtkHomogeneousTransform::InternalDeepCopy(transform);
169}
170
171//------------------------------------------------------------------------------
172void vtkPerspectiveTransform::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