------------------------------------------------------------------------------
| 687 | |
| 688 | //------------------------------------------------------------------------------ |
| 689 | void vtkDendrogramItem::UpdateVisibleSceneExtent(vtkContext2D* painter) |
| 690 | { |
| 691 | float position[2]; |
| 692 | painter->GetTransform()->GetPosition(position); |
| 693 | this->SceneBottomLeft[0] = -position[0]; |
| 694 | this->SceneBottomLeft[1] = -position[1]; |
| 695 | this->SceneBottomLeft[2] = 0.0; |
| 696 | |
| 697 | this->SceneTopRight[0] = static_cast<double>(this->GetScene()->GetSceneWidth() - position[0]); |
| 698 | this->SceneTopRight[1] = static_cast<double>(this->GetScene()->GetSceneHeight() - position[1]); |
| 699 | this->SceneTopRight[2] = 0.0; |
| 700 | vtkNew<vtkMatrix3x3> inverse; |
| 701 | painter->GetTransform()->GetInverse(inverse); |
| 702 | inverse->MultiplyPoint(this->SceneBottomLeft, this->SceneBottomLeft); |
| 703 | inverse->MultiplyPoint(this->SceneTopRight, this->SceneTopRight); |
| 704 | } |
| 705 | |
| 706 | //------------------------------------------------------------------------------ |
| 707 | bool vtkDendrogramItem::LineIsVisible(double x0, double y0, double x1, double y1) |
no test coverage detected