MCPcopy Create free account
hub / github.com/Kitware/VTK / operator()

Method operator()

Common/Core/vtkDataArraySerDesHelper.cxx:263–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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()(

Callers

nothing calls this directly

Calls 11

Serialize_BlobFunction · 0.85
SerializeJSONMethod · 0.80
NewFunction · 0.70
GetClassNameMethod · 0.45
GetBackendMethod · 0.45
GetNumberOfValuesMethod · 0.45
GetDataTypeSizeMethod · 0.45
SetArrayMethod · 0.45
GetPointerMethod · 0.45
GetLookupTableMethod · 0.45
GetVoidPointerMethod · 0.45

Tested by

no test coverage detected