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

Method SetInput

Common/Transforms/vtkGeneralTransform.cxx:231–252  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 2

~vtkGeneralTransformMethod · 0.95
InternalDeepCopyMethod · 0.95

Calls 4

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

Tested by

no test coverage detected