------------------------------------------------------------------------------
| 234 | |
| 235 | //------------------------------------------------------------------------------ |
| 236 | void 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 | //------------------------------------------------------------------------------ |
| 260 | int vtkTransform::CircuitCheck(vtkAbstractTransform* transform) |
no test coverage detected