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

Method ApplyLookuptable

Modules/RT/src/mitkDoseImageVtkMapper2D.cpp:575–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573}
574
575void mitk::DoseImageVtkMapper2D::ApplyLookuptable(mitk::BaseRenderer *renderer)
576{
577 LocalStorage *localStorage = m_LSH.GetLocalStorage(renderer);
578 vtkLookupTable *usedLookupTable = localStorage->m_ColorLookupTable;
579
580 // If lookup table or transferfunction use is requested...
581 mitk::LookupTableProperty::Pointer lookupTableProp =
582 dynamic_cast<mitk::LookupTableProperty *>(this->GetDataNode()->GetProperty("LookupTable"));
583
584 if (lookupTableProp.IsNotNull()) // is a lookuptable set?
585 {
586 usedLookupTable = lookupTableProp->GetLookupTable()->GetVtkLookupTable();
587 }
588 else
589 {
590 //"Image Rendering.Mode was set to use a lookup table but there is no property 'LookupTable'.
591 // A default (rainbow) lookup table will be used.
592 // Here have to do nothing. Warning for the user has been removed, due to unwanted console output
593 // in every iteration of the rendering.
594 }
595 localStorage->m_LevelWindowFilter->SetLookupTable(usedLookupTable);
596}
597
598void mitk::DoseImageVtkMapper2D::ApplyColorTransferFunction(mitk::BaseRenderer *renderer)
599{

Callers 1

ApplyRenderingModeMethod · 0.95

Calls 7

IsNotNullMethod · 0.80
GetVtkLookupTableMethod · 0.80
GetLocalStorageMethod · 0.45
GetPropertyMethod · 0.45
GetDataNodeMethod · 0.45
GetLookupTableMethod · 0.45
SetLookupTableMethod · 0.45

Tested by

no test coverage detected