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

Method Initialize

Filters/Parallel/vtkCleanArrays.cxx:174–192  ·  view source on GitHub ↗

Fill up \c this with arrays from \c dsa

Source from the content-addressed store, hash-verified

172
173 // Fill up \c this with arrays from \c dsa
174 void Initialize(vtkFieldData* dsa)
175 {
176 this->Valid = true;
177 int numArrays = dsa->GetNumberOfArrays();
178 if (dsa->GetNumberOfTuples() == 0)
179 {
180 numArrays = 0;
181 }
182 for (int cc = 0; cc < numArrays; cc++)
183 {
184 vtkAbstractArray* array = dsa->GetAbstractArray(cc);
185 if (array && array->GetName())
186 {
187 vtkCleanArrays::vtkArrayData mda;
188 mda.Set(array);
189 this->insert(mda);
190 }
191 }
192 }
193
194 // Remove arrays from \c dsa not present in \c this.
195 void UpdateFieldData(vtkFieldData* dsa, bool add_validity_array) const

Callers 1

RequestDataMethod · 0.45

Calls 6

GetAbstractArrayMethod · 0.80
GetNumberOfArraysMethod · 0.45
GetNumberOfTuplesMethod · 0.45
GetNameMethod · 0.45
SetMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected