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

Method AddSelectionNames

IO/Geometry/vtkOpenFOAMReader.cxx:11815–11825  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

11813
11814//------------------------------------------------------------------------------
11815void vtkOpenFOAMReader::AddSelectionNames(
11816 vtkDataArraySelection* selections, vtkStringArray* objects)
11817{
11818 std::lock_guard<std::mutex> lock(this->Parent->ArraySelectionMutex);
11819 objects->Squeeze();
11820 vtkSortDataArray::Sort(objects);
11821 for (int nameI = 0; nameI < objects->GetNumberOfValues(); nameI++)
11822 {
11823 selections->AddArray(objects->GetValue(nameI).c_str());
11824 }
11825}
11826
11827//------------------------------------------------------------------------------
11828bool vtkOpenFOAMReader::SetTimeValue(double timeValue)

Callers 1

Calls 6

SortFunction · 0.50
SqueezeMethod · 0.45
GetNumberOfValuesMethod · 0.45
AddArrayMethod · 0.45
c_strMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected