------------------------------------------------------------------------------
| 42 | |
| 43 | //------------------------------------------------------------------------------ |
| 44 | int vtkEnSightMasterServerReader::RequestData( |
| 45 | vtkInformation* request, vtkInformationVector** inputVector, vtkInformationVector* outputVector) |
| 46 | { |
| 47 | if (!this->MaxNumberOfPieces) |
| 48 | { |
| 49 | vtkErrorMacro("No pieces to read"); |
| 50 | return 0; |
| 51 | } |
| 52 | |
| 53 | if (this->CurrentPiece < 0 || this->CurrentPiece >= this->MaxNumberOfPieces) |
| 54 | { |
| 55 | vtkErrorMacro("Current piece has to be set before reading the file"); |
| 56 | return 0; |
| 57 | } |
| 58 | if (this->DetermineFileName(this->CurrentPiece) != VTK_OK) |
| 59 | { |
| 60 | vtkErrorMacro("Cannot update piece: " << this->CurrentPiece); |
| 61 | return 0; |
| 62 | } |
| 63 | if (!this->Reader) |
| 64 | { |
| 65 | this->Reader = vtkGenericEnSightReader::New(); |
| 66 | } |
| 67 | this->Reader->SetCaseFileName(this->PieceCaseFileName); |
| 68 | if (!this->Reader->GetFilePath()) |
| 69 | { |
| 70 | this->Reader->SetFilePath(this->GetFilePath()); |
| 71 | } |
| 72 | return this->Superclass::RequestData(request, inputVector, outputVector); |
| 73 | } |
| 74 | |
| 75 | //------------------------------------------------------------------------------ |
| 76 | int vtkEnSightMasterServerReader::RequestInformation(vtkInformation* vtkNotUsed(request), |
nothing calls this directly
no test coverage detected