------------------------------------------------------------------------------
| 71 | |
| 72 | //------------------------------------------------------------------------------ |
| 73 | void 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 | //------------------------------------------------------------------------------ |
| 97 | int vtkPerspectiveTransform::CircuitCheck(vtkAbstractTransform* transform) |
no test coverage detected