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

Method GetAllVariableArrayNames

IO/NetCDF/vtkNetCDFReader.cxx:558–569  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

556
557//------------------------------------------------------------------------------
558vtkStringArray* vtkNetCDFReader::GetAllVariableArrayNames()
559{
560 int numArrays = this->GetNumberOfVariableArrays();
561 this->AllVariableArrayNames->SetNumberOfValues(numArrays);
562 for (int arrayIdx = 0; arrayIdx < numArrays; arrayIdx++)
563 {
564 const char* arrayName = this->GetVariableArrayName(arrayIdx);
565 this->AllVariableArrayNames->SetValue(arrayIdx, arrayName);
566 }
567
568 return this->AllVariableArrayNames;
569}
570
571//------------------------------------------------------------------------------
572bool vtkNetCDFReader::ComputeArraySelection()

Callers 1

PrintSelfMethod · 0.95

Calls 4

GetVariableArrayNameMethod · 0.95
SetNumberOfValuesMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected