28 Mar, 2013

1 commit

  • The idea is each interactivity and functionality being implemented as
    InteractorStyles. In this branch I created InteractorStyles to handle:
    zoom, WW & WL, edition, pan, spin, linear measure and angular measure.
    
    I created a pattern, each InteractorStyle receives as parameter only a
    viewer_slice. And a InteractorStyle may create a SetUp and a CleanUp
    methods. The SetUp method runs after the creation of the InteractorStyle
    and can be used to prepare the ground before the InteractorStyle be
    used. The CleanUp method can be used to cleans and unset anything used
    during the InteractorStyle use.
    
    This idea can be used in the future to give InVesalius the feature to
    run pluggins.
    
    Squashed commit of the following:
    
    commit c48e9290dc91009cf00dc3def692e51c6cebe3e0
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Thu Mar 28 09:18:11 2013 -0300
    
        Starting with the ww and wl text hidden
    
    commit 5c9a305f4c9821327fb47594a4833f0def899be8
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Wed Mar 27 17:02:37 2013 -0300
    
        Created a protocol to setup and cleanup when a style is setted
    
    commit b557c29890e70ba1337cd59bf54b29c7f1d2f11e
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Wed Mar 27 15:49:04 2013 -0300
    
        Cleaning unneeded code from data/styles.py
    
    commit 46f4452a1b5c39e826de86c383345df72eeeb9b1
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Wed Mar 27 15:41:41 2013 -0300
    
        Cleaning code related to vtk events from viewer_slice
    
    commit 4a7add3a2360df5320a9c7c78d49e533c61997c4
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Wed Mar 27 15:23:19 2013 -0300
    
        The context menu is working again in the viewer_slice.py
    
    commit 6c0a5b4c281b1d79d5d0fc21728c08868cc71bb2
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Wed Mar 27 15:08:39 2013 -0300
    
        OnBrushRelease was not binded to 'LeftButtonReleaseEvent'
    
    commit 7c998231f939f0552a99ff41c98d1ac3605ce57d
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Wed Mar 27 15:00:48 2013 -0300
    
        Added get_coordinate_cursor to CrossInteractorStyle
    
    commit 9cbf791e35f212fdf2b10ddf976636fb6581c7e9
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Tue Mar 26 16:56:37 2013 -0300
    
        Created a new interactor style to handle the editor
    
    commit 91ea38bc564f284c3994463530e94847ff2d2bd1
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Tue Mar 26 14:50:16 2013 -0300
    
        Added a comment to DefaultInteractorStyle
    
    commit b4a359d6ebbd778f9cf4dcb23edeff9f79884344
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Tue Mar 26 14:47:56 2013 -0300
    
        Using DefaultInteractorStyle to const.STATE_DEFAULT
    
    commit ea58ed7c4ac5d7e5c640a49ccce5368e82dea611
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Tue Mar 26 14:43:20 2013 -0300
    
        Renamed RightZoomInteractorStyle to DefaultInteractorStyle
    
    commit b7ec9d2e436da10570ecbcf7f25ca32213200872
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Tue Mar 26 14:19:29 2013 -0300
    
        Added MouseWheelForwardEvent and MouseWheelBackwardEvent to the RightZoomInteractorStyle
    
    commit 13b7b7ff758a45cf9e89b9ddbcdd190b2de8a8b9
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Tue Mar 26 14:07:01 2013 -0300
    
        Passing the viewer to all interactor styles
    
    commit 89d8c6172efeec81359417a1943175968701204a
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Tue Mar 26 10:25:18 2013 -0300
    
        Created a new interactor style to change slices with the mouse movement
    
    commit 88fe930f156968916c77b789a5acfded93bd4988
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Tue Mar 26 09:32:37 2013 -0300
    
        Cleaning unneeded code related to the zoom
    
    commit 58ec7c3a2b56db90ad6ca5fc06da8df731481634
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Tue Mar 26 09:26:31 2013 -0300
    
        Created a new interactor style to handle the Zoom camera by selecting a region
    
    commit 4df1d0612d7041ac2ecc27173483a79dc32b9bec
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Tue Mar 26 09:12:00 2013 -0300
    
        Created a new interactor style to handle the Zoom camera
    
    commit 2ae6b47162dc63a104edcbd6bb398702642c6d08
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Mon Mar 25 16:32:13 2013 -0300
    
        Renamed ZoomInteractorStyle to RighZoomInteractorStyle
    
    commit 96dd7511bbbd28c9161dea9c3e2bc466be2646fe
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Mon Mar 25 16:25:55 2013 -0300
    
        Created a method to reset camera after a span camera
    
    commit 1a85e2a409c9278c6fabae045fbf33a6bc25900f
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Mon Mar 25 16:01:14 2013 -0300
    
        Created a new interactor style to handle the Spin camera
    
    commit 354f97e80f0f917cc825554b4cf077bbd410a15b
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Mon Mar 25 14:55:46 2013 -0300
    
        STYLE: Renamed the class LinearMeasure and AngularMeasure
    
    commit 87eacea8d9d7b2a460a8156b45c372fa8d6a32f4
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Fri Mar 22 16:53:16 2013 -0300
    
        Created a new interactor style to the pan
    
    commit fd6166669bb91315308844a461bd7b8d579f4e79
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Fri Mar 22 16:42:25 2013 -0300
    
        Removed code which handle angular measurements from viewer_slice
    
    commit 3eeb17e13d68e4b08a88cbff283a3c6e9995d92b
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Fri Mar 22 16:40:16 2013 -0300
    
        Fix in a comment
    
    commit 3ecbb5f87d2bdd3e343e3db26cc4298285e258fc
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Fri Mar 22 16:38:50 2013 -0300
    
        Created a new interactor style to handle angular measurements
    
    commit aefd974a410622be9d300330702a99e5b76a51f4
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Fri Mar 22 14:43:05 2013 -0300
    
        Created a new interactor style to handle Linear measure
    
    commit 13f819f768cfbf96681f14da0f5f253878c12f16
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Fri Mar 22 10:52:45 2013 -0300
    
        Created a new interactor style to handle Window level & width
    
    commit f7b5fc4d6a0a17b0359510217568644ca344dc5a
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Thu Mar 21 15:40:43 2013 -0300
    
        Created a new interactor style to handle the cross tool
    Thiago Franco de Moraes
     

06 Dec, 2012

1 commit


10 Oct, 2012

1 commit


31 Aug, 2012

1 commit


30 Aug, 2012

1 commit


06 Aug, 2012

2 commits


27 Jul, 2012

1 commit


25 Jun, 2012

2 commits

  • … measures are showed in the same slice
    
    The problem with removing measures was because a change in pubsub: it
    only accepts strings in the sendMessage message parameter or tuples of
    string. I was using int. So it was only necessary to change that in this
    way: "Remove Actor " + str(slice_number). The problem when opening an
    inv3 file was because I was not verifying if the measure being added is
    from the actual showed slice.
    
    Squashed commit of the following:
    
    commit 59bd23b0141aaa504b4af5a3cdc781b07e09889f
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Mon Jun 25 14:43:53 2012 -0300
    
        When opening a inv3 file only the measures from the showing slice in showed
    
    commit 07fc45a907438cb7ebdcaca84d47f2b04d301da2
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Mon Jun 25 14:24:47 2012 -0300
    
        Adding measures actor from saved inv3 when it's opened
    
    commit 46b02de95bd2f1676a8bd96b18c48301047f9939
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Mon Jun 25 14:17:15 2012 -0300
    
        Removing the measures is working again
    tfmoraes
     
  • one.
    
    When using the cross tool, the slices may overlap the cross making it
    difficult to use. To avoid that I'm putting the cross in the overlay
    renderer instead of adding on the main one. The overlay renderer can be
    used to these case.
    tfmoraes
     

29 Mar, 2012

2 commits


28 Mar, 2012

1 commit


27 Mar, 2012

1 commit


23 Mar, 2012

2 commits


28 Dec, 2011

1 commit


01 Nov, 2011

1 commit


17 Oct, 2011

1 commit


14 Oct, 2011

1 commit


10 Oct, 2011

2 commits


03 May, 2011

6 commits


20 Apr, 2011

1 commit


13 Apr, 2011

1 commit


12 Apr, 2011

1 commit


11 Apr, 2011

1 commit


22 Feb, 2011

1 commit


09 Feb, 2011

1 commit


21 Jan, 2011

1 commit


19 Jan, 2011

1 commit


03 Jan, 2011

1 commit


24 Dec, 2010

1 commit


14 Dec, 2010

1 commit


13 Dec, 2010

1 commit