MCPcopy Create free account
hub / github.com/Kitware/VTK / RequestData

Method RequestData

IO/EnSight/vtkEnSightMasterServerReader.cxx:44–73  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

42
43//------------------------------------------------------------------------------
44int 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//------------------------------------------------------------------------------
76int vtkEnSightMasterServerReader::RequestInformation(vtkInformation* vtkNotUsed(request),

Callers

nothing calls this directly

Calls 4

DetermineFileNameMethod · 0.95
SetCaseFileNameMethod · 0.80
NewFunction · 0.50
GetFilePathMethod · 0.45

Tested by

no test coverage detected