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

Method DimensionsAreForPointData

IO/NetCDF/vtkNetCDFCFReader.cxx:2013–2039  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2011
2012//------------------------------------------------------------------------------
2013bool vtkNetCDFCFReader::DimensionsAreForPointData(vtkIntArray* dimensions)
2014{
2015 switch (this->CoordinateType(dimensions))
2016 {
2017 case COORDS_UNIFORM_RECTILINEAR:
2018 return true;
2019 case COORDS_NONUNIFORM_RECTILINEAR:
2020 return true;
2021 case COORDS_REGULAR_SPHERICAL:
2022 return false;
2023 case COORDS_2D_EUCLIDEAN:
2024 return true;
2025 case COORDS_2D_SPHERICAL:
2026 return true;
2027 case COORDS_EUCLIDEAN_4SIDED_CELLS:
2028 return false;
2029 case COORDS_SPHERICAL_4SIDED_CELLS:
2030 return false;
2031 case COORDS_EUCLIDEAN_PSIDED_CELLS:
2032 return false;
2033 case COORDS_SPHERICAL_PSIDED_CELLS:
2034 return false;
2035 default:
2036 vtkErrorMacro("Internal error: unknown coordinate type.");
2037 return true;
2038 }
2039}
2040
2041//------------------------------------------------------------------------------
2042void vtkNetCDFCFReader::SetTimeDimensionName(const char* name)

Callers 2

RequestInformationMethod · 0.80
LoadVariableMethod · 0.80

Calls 1

CoordinateTypeMethod · 0.95

Tested by

no test coverage detected