| 561 | } |
| 562 | |
| 563 | void mitk::PlaneGeometryDataMapper2D::ApplyAllProperties(BaseRenderer *renderer) |
| 564 | { |
| 565 | LocalStorage *ls = m_LSH.GetLocalStorage(renderer); |
| 566 | ApplyColorAndOpacityProperties2D(renderer, ls->m_CrosshairActor); |
| 567 | ApplyColorAndOpacityProperties2D(renderer, ls->m_CrosshairHelperLineActor); |
| 568 | ApplyColorAndOpacityProperties2D(renderer, ls->m_ArrowActor); |
| 569 | |
| 570 | float thickness = 1.0f; |
| 571 | this->GetDataNode()->GetFloatProperty("Line width", thickness, renderer); |
| 572 | ls->m_CrosshairActor->GetProperty()->SetLineWidth(thickness); |
| 573 | ls->m_CrosshairHelperLineActor->GetProperty()->SetLineWidth(thickness); |
| 574 | |
| 575 | PlaneOrientationProperty *decorationProperty; |
| 576 | this->GetDataNode()->GetProperty(decorationProperty, "decoration", renderer); |
| 577 | if (decorationProperty != nullptr) |
| 578 | { |
| 579 | if (decorationProperty->GetPlaneDecoration() == PlaneOrientationProperty::PLANE_DECORATION_POSITIVE_ORIENTATION) |
| 580 | { |
| 581 | m_RenderOrientationArrows = true; |
| 582 | m_ArrowOrientationPositive = true; |
| 583 | } |
| 584 | else if (decorationProperty->GetPlaneDecoration() == |
| 585 | PlaneOrientationProperty::PLANE_DECORATION_NEGATIVE_ORIENTATION) |
| 586 | { |
| 587 | m_RenderOrientationArrows = true; |
| 588 | m_ArrowOrientationPositive = false; |
| 589 | } |
| 590 | else |
| 591 | { |
| 592 | m_RenderOrientationArrows = false; |
| 593 | } |
| 594 | } |
| 595 | } |
| 596 | |
| 597 | void mitk::PlaneGeometryDataMapper2D::ApplyColorAndOpacityProperties2D(BaseRenderer *renderer, vtkActor2D *actor) |
| 598 | { |
nothing calls this directly
no test coverage detected