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

Method ComputeLinePosition

Views/Infovis/vtkParallelCoordinatesRepresentation.cxx:1660–1671  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1658
1659//------------------------------------------------------------------------------
1660int vtkParallelCoordinatesRepresentation::ComputeLinePosition(double* p1, double* p2)
1661{
1662 double eps = .0001;
1663 for (int i = 0; i < this->NumberOfAxes - 1; i++)
1664 {
1665 if (p1[0] < this->Xs[i] + eps && p2[0] > this->Xs[i + 1] - eps)
1666 {
1667 return i;
1668 }
1669 }
1670 return -1;
1671}
1672
1673//------------------------------------------------------------------------------
1674vtkSelection* vtkParallelCoordinatesRepresentation::ConvertSelection(

Callers 2

AngleSelectMethod · 0.95
FunctionSelectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected