MCPcopy Create free account
hub / github.com/Kitware/VeloView / findPresetByName

Function findPresetByName

Application/Ui/python/lidarview/applogic.py:149–159  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

147
148
149def findPresetByName(name):
150 presets = servermanager.vtkSMTransferFunctionPresets()
151
152 numberOfPresets = presets.GetNumberOfPresets()
153
154 for i in range(0,numberOfPresets):
155 currentName = presets.GetPresetName(i)
156 if currentName == name:
157 return i
158
159 return -1
160
161
162def createDSRColorsPreset():

Callers 2

createDSRColorsPresetFunction · 0.85
setDefaultLookupTablesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected