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

Method GetTimeValues

IO/NetCDF/vtkNetCDFReader.cxx:763–775  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

761
762//------------------------------------------------------------------------------
763vtkSmartPointer<vtkDoubleArray> vtkNetCDFReader::GetTimeValues(int ncFD, int dimId)
764{
765 VTK_CREATE(vtkDoubleArray, timeValues);
766 size_t dimLength;
767 CALL_NETCDF_PTR(this->Accessor->inq_dimlen(ncFD, dimId, &dimLength));
768 timeValues->SetNumberOfComponents(1);
769 timeValues->SetNumberOfTuples(static_cast<vtkIdType>(dimLength));
770 for (size_t j = 0; j < dimLength; j++)
771 {
772 timeValues->SetValue(static_cast<vtkIdType>(j), static_cast<double>(j));
773 }
774 return timeValues;
775}
776
777//------------------------------------------------------------------------------
778void vtkNetCDFReader::GetUpdateExtentForOutput(vtkDataSet*, int extent[6])

Callers 3

RequestInformationMethod · 0.95
LoadVariableMethod · 0.95
RequestInformationMethod · 0.45

Calls 4

inq_dimlenMethod · 0.45
SetNumberOfComponentsMethod · 0.45
SetNumberOfTuplesMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected