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

Method SetInput

Common/Transforms/vtkTransform.cxx:236–257  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

234
235//------------------------------------------------------------------------------
236void vtkTransform::SetInput(vtkLinearTransform* input)
237{
238 if (this->Input == input)
239 {
240 return;
241 }
242 if (input && input->CircuitCheck(this))
243 {
244 vtkErrorMacro("SetInput: this would create a circular reference.");
245 return;
246 }
247 if (this->Input)
248 {
249 this->Input->Delete();
250 }
251 this->Input = input;
252 if (this->Input)
253 {
254 this->Input->Register(this);
255 }
256 this->Modified();
257}
258
259//------------------------------------------------------------------------------
260int vtkTransform::CircuitCheck(vtkAbstractTransform* transform)

Callers 7

~vtkTransformMethod · 0.95
InternalDeepCopyMethod · 0.95
InternalDeepCopyMethod · 0.45
InternalDeepCopyMethod · 0.45

Calls 4

DeleteMethod · 0.65
CircuitCheckMethod · 0.45
RegisterMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected