------------------------------------------------------------------------------
| 229 | |
| 230 | //------------------------------------------------------------------------------ |
| 231 | void 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 | //------------------------------------------------------------------------------ |
| 255 | int vtkGeneralTransform::CircuitCheck(vtkAbstractTransform* transform) |
no test coverage detected