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

Method ApplyAllProperties

Modules/Core/src/Rendering/mitkPlaneGeometryDataMapper2D.cpp:563–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

561}
562
563void 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
597void mitk::PlaneGeometryDataMapper2D::ApplyColorAndOpacityProperties2D(BaseRenderer *renderer, vtkActor2D *actor)
598{

Callers

nothing calls this directly

Calls 6

GetPlaneDecorationMethod · 0.80
GetLocalStorageMethod · 0.45
GetFloatPropertyMethod · 0.45
GetDataNodeMethod · 0.45
SetLineWidthMethod · 0.45
GetPropertyMethod · 0.45

Tested by

no test coverage detected