| 230 | } |
| 231 | |
| 232 | std::string to_string(vtkArrayComponents enumerant) |
| 233 | { |
| 234 | switch (enumerant) |
| 235 | { |
| 236 | case AllComponents: |
| 237 | return "all components"; |
| 238 | case Requested: |
| 239 | return "requested"; |
| 240 | case L1Norm: |
| 241 | return "L₁ norm"; |
| 242 | case L2Norm: |
| 243 | return "L₂ norm"; |
| 244 | case LInfNorm: |
| 245 | return "L∞ norm"; |
| 246 | default: |
| 247 | break; |
| 248 | } |
| 249 | return vtk::to_string(static_cast<int>(enumerant)); |
| 250 | } |
| 251 | |
| 252 | vtkSmartPointer<vtkAbstractArray> ComponentOrNormAsArray(vtkAbstractArray* array, int compOrNorm) |
| 253 | { |
no outgoing calls