MCPcopy Create free account
hub / github.com/Kitware/VTK / vtkSpiderPlotActorGetComponent

Function vtkSpiderPlotActorGetComponent

Rendering/Annotation/vtkSpiderPlotActor.cxx:390–407  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

388
389//------------------------------------------------------------------------------
390static inline int vtkSpiderPlotActorGetComponent(
391 vtkFieldData* field, vtkIdType tuple, int component, double* val)
392{
393 int array_comp;
394 int array_index = field->GetArrayContainingComponent(component, array_comp);
395 if (array_index < 0)
396 {
397 return 0;
398 }
399 vtkDataArray* da = field->GetArray(array_index);
400 if (!da)
401 {
402 // non-numeric array.
403 return 0;
404 }
405 *val = da->GetComponent(tuple, array_comp);
406 return 1;
407}
408
409#define VTK_RING_PTS 64
410//------------------------------------------------------------------------------

Callers 1

PlaceAxesMethod · 0.85

Calls 3

GetArrayMethod · 0.45
GetComponentMethod · 0.45

Tested by

no test coverage detected