PRO qImage_cw_state__define ;+ ; NAME: ; qImage_cw_state__define ; PURPOSE: ; Defines the state structure for the qImage_cw compound widget ; CATEGORY: ; Compound widget qImage_cw ; CALLING SEQUENCE: ; state = {qImage_cw} ; INPUTS: ; parent scalar; type: long integer ; ID of the parent widget ; OUTPUTS: ; (state structure) ; INCLUDE: @compile_opt.pro ; On error, return to caller ; PROCEDURE: ; The fields in the state structure are explained in href=qImage_cw= (compound widget) ; MODIFICATION HISTORY: ; JAN-2000, Paul Hick (UCSD/CASS) ; JAN-2003, Paul Hick (UCSD/CASS) ; Changed structure elements img_size and img_offset from short to long integer. ; The short integer caused problems for large zoom factors: zoom*img_size gets very big. ; Added wid_smeimask. ; NOV-2003, Paul Hick (UCSD/CASS; pphick@ucsd.edu) ; Added wid_corner ;- ; State structure ; The state structure is stored as user value to the first child widget. ; If the ID of the root widget is known the state can be retrieved by ; ; wid_child = widget_info( id_root, /child) ; widget_control, wid_child, get_uvalue=state ; ; The state consits of: ; - the widget id of all widgets making up the compound widget ; tmp = {QIMAGE_CW_STATE, $ wid_self : 0L , $ wid_parent : 0L , $ wid_win : lonarr( 2), $ wid_xyz : lonarr(10), $ wid_fixzoom : 0L , $ ; Not used anymore wid_draw_wrap : 0L , $ wid_draw : 0L , $ wid_blowup : 0L , $ wid_xcross : 0L , $ wid_ycross : 0L , $ wid_image : 0L , $ wid_xslide : 0L , $ wid_yslide : 0L , $ wid_show : 0L , $ wid_tool : 0L , $ wid_ephem : 0L , $ wid_save : 0L , $ wid_smei : 0L , $ wid_showfov : 0L , $ wid_smei_base : 0L , $ wid_phi : lonarr(4) , $ wid_rad : lonarr(4) , $ wid_azimuthal : 0L , $ wid_radial : 0L , $ wid_smeifov : 0L , $ wid_smeimask : 0L , $ wid_cos : 0L , $ wid_center : lonarr(2) , $ wid_axis : lonarr(2) , $ wid_corner : lonarr(4) , $ wid_prorate : lonarr(3) , $ wid_background : 0L , $ wid_zavg2back : 0L , $ img_size : lonarr(2) , $ img_offset : lonarr(2) $ } RETURN & END