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

Method GetNthGroup

IO/Core/vtkSortFileNames.cxx:120–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120vtkStringArray* vtkSortFileNames::GetNthGroup(int i)
121{
122 this->Update();
123
124 if (!this->GetGrouping())
125 {
126 vtkErrorMacro(<< "GetNthGroup(): Grouping not on.");
127 return nullptr;
128 }
129
130 int n = this->Groups->GetNumberOfStringArrays();
131
132 if (i >= 0 && i < n)
133 {
134 return this->Groups->GetStringArray(i);
135 }
136 else
137 {
138 vtkErrorMacro(<< "GetNthGroup(i): index " << i << " is out of range");
139 return nullptr;
140 }
141}
142
143vtkStringArray* vtkSortFileNames::GetFileNames()
144{

Callers 2

PrintSelfMethod · 0.95
testSortFileNamesMethod · 0.80

Calls 3

UpdateMethod · 0.95
GetStringArrayMethod · 0.80

Tested by 1

testSortFileNamesMethod · 0.64