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

Method SetInput

Common/Transforms/vtkPerspectiveTransform.cxx:73–94  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

71
72//------------------------------------------------------------------------------
73void vtkPerspectiveTransform::SetInput(vtkHomogeneousTransform* input)
74{
75 if (this->Input == input)
76 {
77 return;
78 }
79 if (input && input->CircuitCheck(this))
80 {
81 vtkErrorMacro("SetInput: this would create a circular reference.");
82 return;
83 }
84 if (this->Input)
85 {
86 this->Input->Delete();
87 }
88 this->Input = input;
89 if (this->Input)
90 {
91 this->Input->Register(this);
92 }
93 this->Modified();
94}
95
96//------------------------------------------------------------------------------
97int vtkPerspectiveTransform::CircuitCheck(vtkAbstractTransform* transform)

Callers 2

InternalDeepCopyMethod · 0.95

Calls 4

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

Tested by

no test coverage detected