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

Method UpdateVisibleSceneExtent

Views/Infovis/vtkDendrogramItem.cxx:689–704  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

687
688//------------------------------------------------------------------------------
689void 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//------------------------------------------------------------------------------
707bool vtkDendrogramItem::LineIsVisible(double x0, double y0, double x1, double y1)

Callers 1

PaintBuffersMethod · 0.95

Calls 7

GetSceneWidthMethod · 0.80
GetSceneHeightMethod · 0.80
GetPositionMethod · 0.45
GetTransformMethod · 0.45
GetSceneMethod · 0.45
GetInverseMethod · 0.45
MultiplyPointMethod · 0.45

Tested by

no test coverage detected