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

Function cases

Filters/General/Testing/Python/clipPyramid.py:220–232  ·  view source on GitHub ↗
(id, mask)

Source from the content-addressed store, hash-verified

218iren.Initialize()
219
220def cases (id, mask):
221 i = 0
222 while i < 5:
223 m = mask[i]
224 if m & id == 0:
225 Scalars.SetValue(i, 0)
226 else:
227 Scalars.SetValue(i, 1)
228 caseLabel.SetText("Case " + str(id))
229 i += 1
230
231 Grid.Modified()
232 renWin.Render()
233
234mask = [1, 2, 4, 8, 16, 32]
235

Callers 1

clipPyramid.pyFile · 0.70

Calls 5

strFunction · 0.85
RenderMethod · 0.65
SetValueMethod · 0.45
SetTextMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected