| 261 | { |
| 262 | template <typename ValueT> |
| 263 | void operator()( |
| 264 | vtkAffineArray<ValueT>* array, nlohmann::json& state, vtkSerializer* vtkNotUsed(serializer)) |
| 265 | { |
| 266 | if (array == nullptr) |
| 267 | { |
| 268 | return; |
| 269 | } |
| 270 | // demangle and record the actual templated class name |
| 271 | if (strstr(array->GetClassName(), "vtkImplicitArray")) |
| 272 | { |
| 273 | state["ClassName"] = GetDemangledClassNameForvtkAffineArray<ValueT>("vtkAffineArray"); |
| 274 | } |
| 275 | |
| 276 | auto backend = array->GetBackend(); |
| 277 | if (backend == nullptr) |
| 278 | { |
| 279 | vtkLogF(ERROR, "AffineArray backend is null"); |
| 280 | return; |
| 281 | } |
| 282 | state["Slope"] = backend->Slope; |
| 283 | state["Intercept"] = backend->Intercept; |
| 284 | } |
| 285 | |
| 286 | template <typename ValueT> |
| 287 | void operator()( |
nothing calls this directly
no test coverage detected