Fill up \c this with arrays from \c dsa
| 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 |
no test coverage detected