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

Method RequestData

IO/Geometry/vtkProStarReader.cxx:49–77  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

47
48//------------------------------------------------------------------------------
49int 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//------------------------------------------------------------------------------
80void vtkProStarReader::PrintSelf(ostream& os, vtkIndent indent)

Callers

nothing calls this directly

Calls 4

ReadVrtFileMethod · 0.95
ReadCelFileMethod · 0.95
GetInformationObjectMethod · 0.80
GetMethod · 0.45

Tested by

no test coverage detected