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

Method SetLookupTable

Modules/Annotation/src/mitkColorBarAnnotation.cpp:95–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void mitk::ColorBarAnnotation::SetLookupTable(vtkSmartPointer<vtkLookupTable> table)
96{
97 mitk::LookupTable::Pointer lut = mitk::LookupTable::New();
98 mitk::LookupTableProperty::Pointer prop = mitk::LookupTableProperty::New(lut);
99 lut->SetVtkLookupTable(table);
100 prop->SetLookupTable(lut);
101 SetProperty("ColorBarAnnotation.LookupTable", prop.GetPointer());
102}
103
104vtkSmartPointer<vtkLookupTable> mitk::ColorBarAnnotation::GetLookupTable() const
105{

Callers 1

UpdateVtkAnnotationMethod · 0.45

Calls 3

SetVtkLookupTableMethod · 0.80
GetPointerMethod · 0.80
NewFunction · 0.50

Tested by

no test coverage detected