------------------------------------------------------------------------------
| 1584 | |
| 1585 | //------------------------------------------------------------------------------ |
| 1586 | static inline int vtkXYPlotActorGetComponent( |
| 1587 | vtkFieldData* field, vtkIdType tuple, int component, double* val) |
| 1588 | { |
| 1589 | int array_comp; |
| 1590 | int array_index = field->GetArrayContainingComponent(component, array_comp); |
| 1591 | if (array_index < 0) |
| 1592 | { |
| 1593 | return 0; |
| 1594 | } |
| 1595 | vtkDataArray* da = field->GetArray(array_index); |
| 1596 | if (!da) |
| 1597 | { |
| 1598 | // non-numeric array. |
| 1599 | return 0; |
| 1600 | } |
| 1601 | *val = da->GetComponent(tuple, array_comp); |
| 1602 | return 1; |
| 1603 | } |
| 1604 | |
| 1605 | //------------------------------------------------------------------------------ |
| 1606 | void vtkXYPlotActor::ComputeDORange(double xrange[2], double yrange[2], double* lengths) |
no test coverage detected