------------------------------------------------------------------------------
| 388 | |
| 389 | //------------------------------------------------------------------------------ |
| 390 | static 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 | //------------------------------------------------------------------------------ |
no test coverage detected