------------------------------------------------------------------------------
| 673 | |
| 674 | //------------------------------------------------------------------------------ |
| 675 | void vtkHeatmapItem::UpdateVisibleSceneExtent(vtkContext2D* painter) |
| 676 | { |
| 677 | float position[2]; |
| 678 | painter->GetTransform()->GetPosition(position); |
| 679 | this->SceneBottomLeft[0] = -position[0]; |
| 680 | this->SceneBottomLeft[1] = -position[1]; |
| 681 | this->SceneBottomLeft[2] = 0.0; |
| 682 | |
| 683 | this->SceneTopRight[0] = static_cast<double>(this->GetScene()->GetSceneWidth() - position[0]); |
| 684 | this->SceneTopRight[1] = static_cast<double>(this->GetScene()->GetSceneHeight() - position[1]); |
| 685 | this->SceneTopRight[2] = 0.0; |
| 686 | vtkNew<vtkMatrix3x3> inverse; |
| 687 | painter->GetTransform()->GetInverse(inverse); |
| 688 | inverse->MultiplyPoint(this->SceneBottomLeft, this->SceneBottomLeft); |
| 689 | inverse->MultiplyPoint(this->SceneTopRight, this->SceneTopRight); |
| 690 | } |
| 691 | |
| 692 | //------------------------------------------------------------------------------ |
| 693 | bool vtkHeatmapItem::LineIsVisible(double x0, double y0, double x1, double y1) |
no test coverage detected