88 |
vs.coords.transformPoints3(cs, [0.0, 0.0, 0.0], tmp) |
vs.coords.transformPoints3(cs, [0.0, 0.0, 0.0], tmp) |
89 |
return (tmp[2]) |
return (tmp[2]) |
90 |
|
|
91 |
|
def isActivated(scene, cs): |
92 |
|
pt = scene.coords.transformPoint(cs, 0, 0, None) |
93 |
|
return scene.coords.getCSAt(0, pt.x, pt.y, None) == cs |
94 |
|
|
95 |
|
|
96 |
def testWheel(): |
def testWheel(): |
97 |
r.addProperty(p, s) |
r.addProperty(p, s) |
98 |
r.addProperty(p, t) |
r.addProperty(p, t) |
143 |
assert angle(pr, pw) == math.pi |
assert angle(pr, pw) == math.pi |
144 |
assert angle(pr, pt) == 2*math.pi - angle(pr, pv) |
assert angle(pr, pt) == 2*math.pi - angle(pr, pv) |
145 |
|
|
146 |
|
# Test that all node coordinate systems are activated |
147 |
|
# (clickable). |
148 |
|
for x in (cs_r, cs_s, cs_t, cs_u, cs_v, cs_w): |
149 |
|
assert isActivated(vs, x) |
150 |
|
|
151 |
# Test that WheelView calls its NodeView |
# Test that WheelView calls its NodeView |
152 |
# with all the correct parameters. |
# with all the correct parameters. |
153 |
|
|