------------------------------------------------------------------------------
| 166 | |
| 167 | //------------------------------------------------------------------------------ |
| 168 | void 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 | //------------------------------------------------------------------------------ |
| 190 | bool EnSightFile::SetTimeStepToRead(double ts) |
no test coverage detected