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

Method GetCoordinates

IO/NetCDF/vtkNetCDFAccessor.cxx:128–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128bool vtkNetCDFAccessor::GetCoordinates(int ncid, int varId, std::vector<std::string>& coordName)
129{
130 std::string coordinates;
131 if (!this->ReadTextAttribute(ncid, varId, "coordinates", coordinates))
132 return false;
133
134 vtksys::SystemTools::Split(coordinates, coordName, ' ');
135 return true;
136}
137
138bool vtkNetCDFAccessor::ReadTextAttribute(
139 int ncid, int varId, const char* name, std::string& result)

Callers

nothing calls this directly

Calls 2

ReadTextAttributeMethod · 0.95
SplitFunction · 0.50

Tested by

no test coverage detected