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

Method SetDimensionCurrentIndex

IO/NetCDF/vtkMPASReader.cxx:2898–2909  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2896
2897//------------------------------------------------------------------------------
2898void vtkMPASReader::SetDimensionCurrentIndex(const std::string& dim, int idx)
2899{
2900 this->UpdateDimensions();
2901
2902 typedef Internal::DimMetaDataMap::iterator Iter;
2903 Iter it = this->Internals->dimMetaDataMap.find(dim);
2904 if (it != this->Internals->dimMetaDataMap.end() && static_cast<size_t>(idx) < it->second.dimSize)
2905 {
2906 it->second.curIdx = idx;
2907 this->Modified();
2908 }
2909}
2910
2911//------------------------------------------------------------------------------
2912int vtkMPASReader::GetDimensionSize(const std::string& dim)

Callers 1

SetVerticalLevelMethod · 0.95

Calls 4

UpdateDimensionsMethod · 0.95
findMethod · 0.45
endMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected