MCPcopy Create free account
hub / github.com/MITK/MITK / UpdateRectangle

Method UpdateRectangle

Modules/Core/src/Rendering/vtkMitkRectangleProp.cpp:78–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void vtkMitkRectangleProp::UpdateRectangle()
79{
80 float offset = this->GetProperty()->GetLineWidth() * 0.5f;
81
82 auto points = m_PolyData->GetPoints();
83 points->SetPoint(m_BottomLeft, m_OriginX + offset, m_OriginY + offset, 0.0f);
84 points->SetPoint(m_BottomRight, m_OriginX + m_Width - offset, m_OriginY + offset, 0.0f);
85 points->SetPoint(m_TopRight, m_OriginX + m_Width - offset, m_OriginY + m_Height - offset, 0.0f);
86 points->SetPoint(m_TopLeft, m_OriginX + offset, m_OriginY + m_Height - offset, 0.0f);
87}
88
89void vtkMitkRectangleProp::CreateRectangle()
90{

Callers 1

RenderOverlayMethod · 0.95

Calls 3

GetLineWidthMethod · 0.80
GetPropertyMethod · 0.45
SetPointMethod · 0.45

Tested by

no test coverage detected