------------------------------------------------------------------------------
| 47 | |
| 48 | //------------------------------------------------------------------------------ |
| 49 | int vtkProStarReader::RequestData(vtkInformation* vtkNotUsed(request), |
| 50 | vtkInformationVector** vtkNotUsed(inputVector), vtkInformationVector* outputVector) |
| 51 | { |
| 52 | if (!this->FileName) |
| 53 | { |
| 54 | vtkErrorMacro("FileName has to be specified!"); |
| 55 | this->SetErrorCode(vtkErrorCode::NoFileNameError); |
| 56 | return 0; |
| 57 | } |
| 58 | |
| 59 | // get the info object |
| 60 | vtkInformation* outInfo = outputVector->GetInformationObject(0); |
| 61 | |
| 62 | // get the output |
| 63 | vtkUnstructuredGrid* output = |
| 64 | vtkUnstructuredGrid::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT())); |
| 65 | |
| 66 | if (this->FileName) |
| 67 | { |
| 68 | idMapping mapPointId; // inverse mapping (STAR-CD pointId -> index) |
| 69 | |
| 70 | if (this->ReadVrtFile(output, mapPointId)) |
| 71 | { |
| 72 | this->ReadCelFile(output, mapPointId); |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | return 1; |
| 77 | } |
| 78 | |
| 79 | //------------------------------------------------------------------------------ |
| 80 | void vtkProStarReader::PrintSelf(ostream& os, vtkIndent indent) |
nothing calls this directly
no test coverage detected