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

Method ReadPoints

Common/ExecutionModel/vtkSimpleReader.cxx:184–202  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

182
183//------------------------------------------------------------------------------
184int vtkSimpleReader::ReadPoints(int piece, int, int, int timestep, vtkDataObject* output)
185{
186 // Not a parallel reader. Cannot handle anything other than the first piece,
187 // which will have everything.
188 if (piece > 0)
189 {
190 return 1;
191 }
192
193 int nTimes = static_cast<int>(this->Internal->FileNames.size());
194 if (timestep >= nTimes)
195 {
196 vtkErrorMacro(
197 "Cannot read time step " << timestep << ". Only " << nTimes << " time steps are available.");
198 return 0;
199 }
200
201 return this->ReadPointsSimple(this->Internal->FileNames[timestep], output);
202}
203
204//------------------------------------------------------------------------------
205int vtkSimpleReader::ReadArrays(int piece, int, int, int timestep, vtkDataObject* output)

Callers 1

ProcessRequestMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected