------------------------------------------------------------------------------
| 515 | |
| 516 | //------------------------------------------------------------------------------ |
| 517 | void vtkChartParallelCoordinates::CalculatePlotTransform() |
| 518 | { |
| 519 | // In the case of parallel coordinates everything is plotted in a normalized |
| 520 | // system, where the range is from 0.0 to 1.0 in the y axis, and in screen |
| 521 | // coordinates along the x axis. |
| 522 | if (this->Storage->Axes.empty()) |
| 523 | { |
| 524 | return; |
| 525 | } |
| 526 | |
| 527 | vtkAxis* axis = this->Storage->Axes[0]; |
| 528 | float* min = axis->GetPoint1(); |
| 529 | float* max = axis->GetPoint2(); |
| 530 | float yScale = 1.0f / (max[1] - min[1]); |
| 531 | |
| 532 | this->Storage->Transform->Identity(); |
| 533 | this->Storage->Transform->Translate(0, axis->GetPoint1()[1]); |
| 534 | // Get the scale for the plot area from the x and y axes |
| 535 | this->Storage->Transform->Scale(1.0, 1.0 / yScale); |
| 536 | } |
| 537 | |
| 538 | //------------------------------------------------------------------------------ |
| 539 | void vtkChartParallelCoordinates::RecalculateBounds() {} |