MCPcopy Create free account
hub / github.com/Kitware/VTK / SetLookupTable

Method SetLookupTable

Interaction/Image/vtkResliceImageViewer.cxx:185–199  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

183
184//------------------------------------------------------------------------------
185void vtkResliceImageViewer::SetLookupTable(vtkScalarsToColors* l)
186{
187 if (vtkResliceCursorRepresentation* rep = vtkResliceCursorRepresentation::SafeDownCast(
188 this->ResliceCursorWidget->GetRepresentation()))
189 {
190 rep->SetLookupTable(l);
191 }
192
193 if (this->WindowLevel)
194 {
195 this->WindowLevel->SetLookupTable(l);
196 this->WindowLevel->SetOutputFormatToRGBA();
197 this->WindowLevel->PassAlphaToOutputOn();
198 }
199}
200
201//------------------------------------------------------------------------------
202vtkScalarsToColors* vtkResliceImageViewer::GetLookupTable()

Callers 2

SetThickModeMethod · 0.45
InstallPipelineMethod · 0.45

Calls 1

GetRepresentationMethod · 0.80

Tested by

no test coverage detected