canvasobj = findCanvasRoot(findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2:Canvas'), windowname='Graphics_1') canvasobj.emit('event', event(gtk.gdk.BUTTON_PRESS,x= 2.2606177606178e+01,y=-6.8474903474903e+01,state=0,window=findCanvasGdkWindow('Graphics_1'))) canvasobj = findCanvasRoot(findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2:Canvas'), windowname='Graphics_1') canvasobj.emit('event', event(gtk.gdk.BUTTON_RELEASE,x= 2.2606177606178e+01,y=-6.8474903474903e+01,state=256,window=findCanvasGdkWindow('Graphics_1'))) checkpoint Graphics_1 Skeleton Info sensitized checkpoint contourmap info updated for Graphics_1 checkpoint OOF.Graphics_1.Toolbox.Skeleton_Info.QueryElement findWidget('OOF2 Graphics 1:Pane0').set_position(444) # Direct element selection. Dominant pixel test skipped, because it's # a numerically-derived name which may be prone to roundoff, and is # tested directly in the 01200 test. assert findWidget(tbox+":Click:Element").get_active() assert not findWidget(tbox+":Click:Node").get_active() assert not findWidget(tbox+":Click:Segment").get_active() assert tests.gtkMultiFloatCompare({'X Text':22.61,'Y Text':68.47},cbox) assert tests.gtkMultiTextCompare({'Material':'<No material>','Group':'','Index':'54','Type':'quad'},elbox) assert tests.gtkMultiFloatCompare({'Shape':0.308000,'Homog':0.988881,'Area':287.500000},elbox) assert tests.sensitizationCheck({'Prev':False,'Clear':True,'Next':False},tbox) assert tests.chooserCheck(elbox+":SegmentList",["Segment 79, nodes (43, 52) (length: 12.5)","Segment 130, nodes (43, 44) (length: 18.5)","Segment 127, nodes (44, 53) (length: 15.402922)","Segment 131, nodes (52, 53) (length: 27.5)"], tolerance=1.e-6) assert tests.chooserCheck(elbox+":NodeList",["Node 43 at (12.5, 62.5) (angle: 90)","Node 44 at (31, 62.5) (angle: 125.753887)","Node 53 at (40, 75) (angle: 54.2461127)","Node 52 at (12.5, 75) (angle: 90)"],tolerance=1.e-6) findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2:TBScroll:Skeleton Info:ElementInformation:NodeList').get_selection().select_path((1,)) findWidget('OOF2 Graphics 1:Pane0').set_position(444) # Node peek. checkpoint contourmap info updated for Graphics_1 assert findWidget(tbox+":Click:Element").get_active() assert not findWidget(tbox+":Click:Node").get_active() assert not findWidget(tbox+":Click:Segment").get_active() assert tests.gtkMultiFloatCompare({'X Text':22.61,'Y Text':68.47},cbox)
findWidget('OOF2 Graphics 1:Pane0').set_position(280) canvasobj = findCanvasRoot(findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2:Canvas'), windowname='Graphics_1') canvasobj.emit('event', event(gtk.gdk.BUTTON_PRESS,x= 1.9676470588235e+01,y=-7.1441176470588e+01,state=0,window=findCanvasGdkWindow('Graphics_1'))) canvasobj = findCanvasRoot(findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2:Canvas'), windowname='Graphics_1') canvasobj.emit('event', event(gtk.gdk.MOTION_NOTIFY,x= 2.0323529411765e+01,y=-7.1441176470588e+01,state=256,window=findCanvasGdkWindow('Graphics_1'))) canvasobj = findCanvasRoot(findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2:Canvas'), windowname='Graphics_1') canvasobj.emit('event', event(gtk.gdk.BUTTON_RELEASE,x= 2.0323529411765e+01,y=-7.1441176470588e+01,state=256,window=findCanvasGdkWindow('Graphics_1'))) checkpoint Graphics_1 Pixel Info updated checkpoint OOF.Graphics_1.Toolbox.Pixel_Info.Query findWidget('OOF2 Graphics 1:Pane0').set_position(280) # Click! assert tests.gtkMultiTextCompare({'X':'20','Y':'71','Image':'small.ppm:small.ppm','MSText':'small.ppm','material':'<No material>'},tbox) assert tests.sensitizationCheck({'Update':False,'Clear':True},tbox) assert findWidget(tbox+':RGB selector').get_active() assert tests.gtkMultiFloatCompare({'Text 1':0.0,'Text 2':0.9882352941176471,'Text 3':0.0},tbox) findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2:TBScroll:Pixel Info:HSV selector').clicked() # Switched to HSV. assert tests.gtkMultiTextCompare({'X':'20','Y':'71','Image':'small.ppm:small.ppm','MSText':'small.ppm','material':'<No material>'},tbox) assert tests.sensitizationCheck({'Update':False,'Clear':True},tbox) assert not findWidget(tbox+':RGB selector').get_active() assert tests.gtkMultiFloatCompare({'Text 1':120.0,'Text 2':1.0,'Text 3':0.9882352941176471},tbox) canvasobj = findCanvasRoot(findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2:Canvas'), windowname='Graphics_1') canvasobj.emit('event', event(gtk.gdk.BUTTON_PRESS,x= 1.1479411764706e+02,y=-8.2441176470588e+01,state=0,window=findCanvasGdkWindow('Graphics_1'))) canvasobj = findCanvasRoot(findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2:Canvas'), windowname='Graphics_1') canvasobj.emit('event', event(gtk.gdk.MOTION_NOTIFY,x= 1.1479411764706e+02,y=-8.1794117647059e+01,state=256,window=findCanvasGdkWindow('Graphics_1'))) canvasobj = findCanvasRoot(findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2:Canvas'), windowname='Graphics_1') canvasobj.emit('event', event(gtk.gdk.BUTTON_RELEASE,x= 1.1479411764706e+02,y=-8.1794117647059e+01,state=256,window=findCanvasGdkWindow('Graphics_1')))