1"""This is python equivalent of Wrapping/Tcl/vtktesting/mccases.tcl.
2Used for setting vertex values for clipping, cutting, and contouring tests.
3This script is used while running python tests translated from Tcl."""
4
5def case1 ( scalars, IN, OUT, caseLabel ):
6    scalars.InsertValue(0,IN )
7    scalars.InsertValue(1,OUT)
8    scalars.InsertValue(2,OUT)
9    scalars.InsertValue(3,OUT)
10    scalars.InsertValue(4,OUT)
11    scalars.InsertValue(5,OUT)
12    scalars.InsertValue(6,OUT)
13    scalars.InsertValue(7,OUT)
14    if IN == 1:
15        caseLabel.SetText("Case 1 - 00000001")
16    else :
17        caseLabel.SetText("Case 1c - 11111110")
18    pass
19
20def case2 ( scalars, IN, OUT, caseLabel ):
21    scalars.InsertValue(0,IN)
22    scalars.InsertValue(1,IN)
23    scalars.InsertValue(2,OUT)
24    scalars.InsertValue(3,OUT)
25    scalars.InsertValue(4,OUT)
26    scalars.InsertValue(5,OUT)
27    scalars.InsertValue(6,OUT)
28    scalars.InsertValue(7,OUT)
29    if IN == 1:
30        caseLabel.SetText("Case 2 - 00000011")
31    else:
32        caseLabel.SetText("Case 2c - 11111100")
33    pass
34
35
36