| 188 | } |
| 189 | |
| 190 | int vtkSQLGraphReader::RequestDataObject( |
| 191 | vtkInformation*, vtkInformationVector**, vtkInformationVector*) |
| 192 | { |
| 193 | vtkDataObject* current = this->GetExecutive()->GetOutputData(0); |
| 194 | if (!current || (this->Directed && !vtkDirectedGraph::SafeDownCast(current)) || |
| 195 | (!this->Directed && vtkDirectedGraph::SafeDownCast(current))) |
| 196 | { |
| 197 | vtkGraph* output = 0; |
| 198 | if (this->Directed) |
| 199 | { |
| 200 | output = vtkDirectedGraph::New(); |
| 201 | } |
| 202 | else |
| 203 | { |
| 204 | output = vtkUndirectedGraph::New(); |
| 205 | } |
| 206 | this->GetExecutive()->SetOutputData(0, output); |
| 207 | output->Delete(); |
| 208 | } |
| 209 | |
| 210 | return 1; |
| 211 | } |
| 212 | VTK_ABI_NAMESPACE_END |
nothing calls this directly
no test coverage detected