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

Function vtkXYPlotActorGetComponent

Rendering/Annotation/vtkXYPlotActor.cxx:1586–1603  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1584
1585//------------------------------------------------------------------------------
1586static 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//------------------------------------------------------------------------------
1606void vtkXYPlotActor::ComputeDORange(double xrange[2], double yrange[2], double* lengths)

Callers 2

ComputeDORangeMethod · 0.85
CreatePlotDataMethod · 0.85

Calls 3

GetArrayMethod · 0.45
GetComponentMethod · 0.45

Tested by

no test coverage detected