| 122 | } |
| 123 | |
| 124 | vtkArray* vtkArrayData::GetArrayByName(const char* name) |
| 125 | { |
| 126 | if (!name || name[0] == '\0') |
| 127 | { |
| 128 | vtkErrorMacro(<< "No name passed into routine."); |
| 129 | return nullptr; |
| 130 | } |
| 131 | |
| 132 | vtkArray* temp = nullptr; |
| 133 | for (vtkIdType ctr = 0; ctr < this->GetNumberOfArrays(); ctr++) |
| 134 | { |
| 135 | temp = this->GetArray(ctr); |
| 136 | if (temp && name == temp->GetName()) |
| 137 | { |
| 138 | break; |
| 139 | } |
| 140 | temp = nullptr; |
| 141 | } |
| 142 | return temp; |
| 143 | } |
| 144 | |
| 145 | void vtkArrayData::ShallowCopy(vtkDataObject* other) |
| 146 | { |
nothing calls this directly
no test coverage detected