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

Method SetFileSetInfo

IO/EnSight/core/EnSightFile.cxx:168–187  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

166
167//------------------------------------------------------------------------------
168void EnSightFile::SetFileSetInfo(std::shared_ptr<FileSetInfo> info)
169{
170 this->FileInfo = info;
171 if (!this->FileInfo->FileNameIndex.empty())
172 {
173 if (this->FileInfo->NumberOfSteps.size() != this->FileInfo->FileNameIndex.size())
174 {
175 vtkGenericWarningMacro("For a file set, the number of steps and the number of file name "
176 "indices should be the same");
177 return;
178 }
179 for (size_t i = 0; i < this->FileInfo->NumberOfSteps.size(); i++)
180 {
181 for (int j = 0; j < this->FileInfo->NumberOfSteps[i]; j++)
182 {
183 this->FileInfo->TimeStepIndexInFile.push_back(j);
184 }
185 }
186 }
187}
188
189//------------------------------------------------------------------------------
190bool EnSightFile::SetTimeStepToRead(double ts)

Callers 1

ParseCaseFileMethod · 0.80

Calls 3

emptyMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected