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

Function case2

Filters/General/Testing/Python/clipHex.py:222–234  ·  view source on GitHub ↗
(scalars, IN, OUT, caseLabel)

Source from the content-addressed store, hash-verified

220ren1.SetBackground(GetRGBColor('slate_grey'))
221
222def case2(scalars, IN, OUT, caseLabel):
223 scalars.InsertValue(0, IN)
224 scalars.InsertValue(1, IN)
225 scalars.InsertValue(2, OUT)
226 scalars.InsertValue(3, OUT)
227 scalars.InsertValue(4, OUT)
228 scalars.InsertValue(5, OUT)
229 scalars.InsertValue(6, OUT)
230 scalars.InsertValue(7, OUT)
231 if IN == 1:
232 caseLabel.SetText("Case 2 - 00000011")
233 else:
234 caseLabel.SetText("Case 2c - 11111100")
235
236case2(Scalars, 1, 0, caseLabel)
237renWin.SetSize(400, 400)

Callers 1

clipHex.pyFile · 0.85

Calls 2

InsertValueMethod · 0.45
SetTextMethod · 0.45

Tested by

no test coverage detected