{"action":"created","issue":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3432","labels_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3432/labels{/name}","comments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3432/comments","events_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3432/events","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3432","id":56397802,"number":3432,"title":"Enable selective ROIs visualization on web viewer","user":{"login":"lucalianas","id":1183173,"avatar_url":"https://avatars.githubusercontent.com/u/1183173?v=3","gravatar_id":"","url":"https://api.github.com/users/lucalianas","html_url":"https://github.com/lucalianas","followers_url":"https://api.github.com/users/lucalianas/followers","following_url":"https://api.github.com/users/lucalianas/following{/other_user}","gists_url":"https://api.github.com/users/lucalianas/gists{/gist_id}","starred_url":"https://api.github.com/users/lucalianas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucalianas/subscriptions","organizations_url":"https://api.github.com/users/lucalianas/orgs","repos_url":"https://api.github.com/users/lucalianas/repos","events_url":"https://api.github.com/users/lucalianas/events{/privacy}","received_events_url":"https://api.github.com/users/lucalianas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/labels/develop","name":"develop","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-02-03T16:07:23Z","updated_at":"2015-02-13T10:03:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3432","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3432","diff_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3432.diff","patch_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3432.patch"},"body":"OMERO's web viewer now integrates methods to selectively hide\\show ROIs for an image.\r\nThis features can be used to display only a subset of the ROIs defined on an image or to enable controls to activate or deactivate ROIs at runtime.\r\nThe embed_rois_selection.html can be used as example to show how to add three checkboxes to an embedded viewer to switch ON\\OFF ROIs."},"comment":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/comments/74230819","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3432#issuecomment-74230819","issue_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3432","id":74230819,"user":{"login":"lucalianas","id":1183173,"avatar_url":"https://avatars.githubusercontent.com/u/1183173?v=3","gravatar_id":"","url":"https://api.github.com/users/lucalianas","html_url":"https://github.com/lucalianas","followers_url":"https://api.github.com/users/lucalianas/followers","following_url":"https://api.github.com/users/lucalianas/following{/other_user}","gists_url":"https://api.github.com/users/lucalianas/gists{/gist_id}","starred_url":"https://api.github.com/users/lucalianas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucalianas/subscriptions","organizations_url":"https://api.github.com/users/lucalianas/orgs","repos_url":"https://api.github.com/users/lucalianas/repos","events_url":"https://api.github.com/users/lucalianas/events{/privacy}","received_events_url":"https://api.github.com/users/lucalianas/received_events","type":"User","site_admin":false},"created_at":"2015-02-13T10:03:56Z","updated_at":"2015-02-13T10:03:56Z","body":"OK, I think everything is done.\r\nCheckboxes' behaviour is the following\r\n\r\n * by clicking on a **shape** checkbox you can turn it ON\\OFF\r\n * by clicking on a **ROI** checkbox you can turn ON\\OFF all related shapes\r\n * by clicking on the **table's header** checkbox you can turn ON\\OFF all the shapes at once\r\n\r\nI also implemented events on the interface so that \r\n\r\n * turning OFF all the shapes will unckeck the ROI checkbox as well\r\n * turning ON at least one shape of a ROI group will check the ROI checkbox\r\n * turning OFF all the shapes will uncheck the header's checkbox\r\n * turning ON at least one shape or one ROI checkbox will check the header's check as well\r\n * turning ON\\OFF the header checkbox will check\\uncheck all the checkboxes in the table column as well"}}