------------------------------------------------------------------------------
| 122 | |
| 123 | //------------------------------------------------------------------------------ |
| 124 | vtkDataRepresentation* vtkView::AddRepresentationFromInputConnection(vtkAlgorithmOutput* conn) |
| 125 | { |
| 126 | if (this->ReuseSingleRepresentation && this->GetNumberOfRepresentations() > 0) |
| 127 | { |
| 128 | this->GetRepresentation()->SetInputConnection(conn); |
| 129 | return this->GetRepresentation(); |
| 130 | } |
| 131 | vtkDataRepresentation* rep = this->CreateDefaultRepresentation(conn); |
| 132 | if (!rep) |
| 133 | { |
| 134 | vtkErrorMacro("Could not add representation from input connection because " |
| 135 | "no default representation was created for the given input connection."); |
| 136 | return nullptr; |
| 137 | } |
| 138 | |
| 139 | this->AddRepresentation(rep); |
| 140 | rep->Delete(); |
| 141 | return rep; |
| 142 | } |
| 143 | |
| 144 | //------------------------------------------------------------------------------ |
| 145 | vtkDataRepresentation* vtkView::SetRepresentationFromInputConnection(vtkAlgorithmOutput* conn) |
no test coverage detected