------------------------------------------------------------------------------
| 503 | |
| 504 | //------------------------------------------------------------------------------ |
| 505 | int vtkDIMACSGraphReader::RequestDataObject( |
| 506 | vtkInformation*, vtkInformationVector**, vtkInformationVector*) |
| 507 | { |
| 508 | ReadGraphMetaData(); |
| 509 | |
| 510 | vtkDataObject* current = this->GetExecutive()->GetOutputData(0); |
| 511 | if (!current || (this->Directed && !vtkDirectedGraph::SafeDownCast(current)) || |
| 512 | (!this->Directed && vtkDirectedGraph::SafeDownCast(current))) |
| 513 | { |
| 514 | vtkGraph* output = nullptr; |
| 515 | if (this->Directed) |
| 516 | { |
| 517 | output = vtkDirectedGraph::New(); |
| 518 | } |
| 519 | else |
| 520 | { |
| 521 | output = vtkUndirectedGraph::New(); |
| 522 | } |
| 523 | this->GetExecutive()->SetOutputData(0, output); |
| 524 | output->Delete(); |
| 525 | } |
| 526 | return 1; |
| 527 | } |
| 528 | VTK_ABI_NAMESPACE_END |
nothing calls this directly
no test coverage detected