------------------------------------------------------------------------------
| 632 | |
| 633 | //------------------------------------------------------------------------------ |
| 634 | void vtkPDataSetReader::ReadVTKFileInformation( |
| 635 | vtkInformation*, vtkInformationVector**, vtkInformationVector* outputVector) |
| 636 | { |
| 637 | vtkInformation* info = outputVector->GetInformationObject(0); |
| 638 | |
| 639 | vtkNew<vtkDataSetReader> reader; |
| 640 | reader->SetFileName(this->FileName); |
| 641 | reader->UpdateInformation(); |
| 642 | if (auto dobj = reader->GetOutputDataObject(0)) |
| 643 | { |
| 644 | this->DataType = dobj->GetDataObjectType(); |
| 645 | using sddp = vtkStreamingDemandDrivenPipeline; |
| 646 | info->CopyEntry(reader->GetOutputInformation(0), sddp::WHOLE_EXTENT(), 1); |
| 647 | info->CopyEntry(reader->GetOutputInformation(0), vtkDataObject::SPACING(), 1); |
| 648 | info->CopyEntry(reader->GetOutputInformation(0), vtkDataObject::ORIGIN(), 1); |
| 649 | } |
| 650 | else |
| 651 | { |
| 652 | vtkErrorMacro("I can not figure out what type of data set this is"); |
| 653 | } |
| 654 | } |
| 655 | |
| 656 | //------------------------------------------------------------------------------ |
| 657 | istream* vtkPDataSetReader::OpenFile(const char* filename) |
no test coverage detected