| 76 | } |
| 77 | |
| 78 | void 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 | |
| 89 | void vtkMitkRectangleProp::CreateRectangle() |
| 90 | { |
no test coverage detected