18 Apr, 2013

1 commit

  • * Added the parameter radius "Add measurement point" pubsub message. This
      parameter is proportional the image spacing.
    * Added PROP_MEASURE to constants.py. This constant is used to set the
      proportion the image spacing.
    
    The measure mark is proportional to the image spacing
    
    Loading measures with circlerepresentation proportional to the image spacing
    
    Adding measures in polydata with circlerepresentation proportional to the image spacing
    
    Added PROP_MEASURE to constants.py
    Thiago Franco de Moraes
     

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
     

04 Mar, 2013

1 commit


06 Feb, 2013

1 commit


20 Jan, 2013

1 commit


06 Dec, 2012

1 commit


15 Oct, 2012

1 commit


11 Oct, 2012

1 commit

  • 1. Only disabling undo and redo when user deletes a mask is visible
    2. When user sets a new threshold the undo/redo history is cleared.
    This won't be needed when undo/redo will work with threshold changing.
    
    Squashed commit of the following:
    
    commit f49d8d6713b67807772958faad0e7f98d17d288c
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Thu Oct 11 10:18:38 2012 -0300
    
        When user sets a new threshold the undo/redo history is cleared
    
    commit 65e94cbd896e4df0c7d797ac98960e5e129c5f3e
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Thu Oct 11 09:25:35 2012 -0300
    
        Only disabling undo and redo when user deletes a mask is visible
    tfmoraes
     

10 Oct, 2012

1 commit


14 Sep, 2012

5 commits


13 Sep, 2012

1 commit


12 Sep, 2012

1 commit


10 Sep, 2012

2 commits


06 Sep, 2012

2 commits


04 Sep, 2012

3 commits


31 Aug, 2012

2 commits


30 Aug, 2012

1 commit


28 Aug, 2012

1 commit


09 Aug, 2012

1 commit


08 Aug, 2012

2 commits


06 Aug, 2012

2 commits


27 Jul, 2012

2 commits


26 Jun, 2012

1 commit

  • The old code to fix gantry tilt was not working with the memmapped
    numpy array. That was rewrite so to work with memmapped numpy array
    using scipy.ndimage.shift. In
    the new code I'm not recalculating the new z-spacing anymore.
    
    Squashed commit of the following:
    
    commit 574b9b042bc6a8585efcdb4fd12a65c4b43e0840
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Tue Jun 26 15:19:08 2012 -0300
    
        Removed the code to calculate a new spacing, it's not necessary
    
    commit 4f91d993995130618275c7aeede4f6502ae66e0c
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Tue Jun 26 14:44:22 2012 -0300
    
        Not rounding spacing values to 2 decimal houses anymore
    
    commit 3313175cdc2a2c22c04bf2d8545c50ede86ced66
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Mon Jun 25 16:50:56 2012 -0300
    
        Testing not applying the translate_coef
    
    commit 363c1ce0bcb2860c4a764201ea5525c865d439dc
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Mon Jun 25 13:22:08 2012 -0300
    
        Changing spacing values when fixing gantry tilt
    
    commit 30785e8ebb945250e45a8b8768253b196112a801
    Author: Thiago Franco de Moraes <totonixsame@gmail.com>
    Date:   Tue Jun 12 15:32:50 2012 -0300
    
        Using scipy.ndimage.shift to gantry tilt correction
    tfmoraes
     

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
     

22 May, 2012

1 commit


20 Apr, 2012

2 commits