08 Sep, 2021

1 commit


07 Sep, 2021

2 commits


06 Sep, 2021

2 commits


03 Sep, 2021

3 commits

  • Sotodela
     
  • - Previously, coil without handle was used to mark the target only if
      object calibration had not been done yet. After object calibration
      was done, the variable polydata stored the coil mesh that was selected
      by the user when doing the calibration, and hence that coil mesh
      (typically containing the handle) was used to mark the target.
    
    - Change the logic to follow these rules:
    
      * When the default coil is selected in object calibration, use the
        default coil with a handle to mark the coil location, and default
    	coil without a handle to mark the target.
    
      * When object calibration is not yet done, use default coil without
        a handle to mark the target.
    
      * When a custom coil is selected in object calibration, use the custom
        coil to mark both the coil location and the target, regardless of if
        the mesh contains handle or not. This is done because otherwise the user
        would need to select two custom meshes, one that is used to mark the coil
        location and another for the target.
    Olli-Pekka Kahilakoski
     
  • okahilak
     

02 Sep, 2021

1 commit

  • * WIP
    
    * MODIFY red ball visibility when peel is loaded, read ball disappears when projection hits the peel
    
    * MODIFY visibility of x_actor, y_actor, z_actor to not be visible. object_orientation_torus_actor and obj_projection_arrow_actor are not visible when loading the obj_actor(coil)
    
    * Add commented line for setting visibility when obj_actor is loaded
    sotodela
     

01 Sep, 2021

1 commit


29 Aug, 2021

1 commit


26 Aug, 2021

2 commits


25 Aug, 2021

3 commits


24 Aug, 2021

1 commit

  • * CLP: Clean up naming in task_navigator.py
    
    Namely, be more specific about the type of trigger input (in this
    case, the serial port), as nowadays the MIDI input can be used for
    triggering, as well.
    
    * CLP: Remove unused variable 'trigger' from Navigation class
    
    * CLP: More clean-up related to serial port communication
    
    - Change invesalius.data.trigger to invesalius.data.serial_port_connection
    
    - Rename the class TriggerNew to SerialPortConnection
    
    - Remove the old, unused Trigger class
    
    - Rename a couple of variables in SerialPortConnection class
    
    - Replace the incorrect docstring for SerialPortConnection class with a
      brief but more accurate docstring.
    
    * CLP: More clean-up in SerialPortConnection
    
    - Remove commented out code
    
    - Remove some blank lines from function definitions
    
    - Do not import sleep from time library, but instead use time.sleep
    
    * MOD: Allow selecting COM port when enabling serial port communication
    okahilak
     

23 Aug, 2021

1 commit


20 Aug, 2021

2 commits


19 Aug, 2021

7 commits


18 Aug, 2021

6 commits


17 Aug, 2021

4 commits


16 Aug, 2021

1 commit


12 Aug, 2021

1 commit


09 Aug, 2021

1 commit

  • * add add_object_orientation_disk and add_addobjectArrow functions, add orientation disk and projection arrow actors
    
    * add getCenter and getNormal functions, create locator and add self.peel_centers and self.peel_normals variables, add to calculate normals and centers when calling getPeelActor (new peel)
    
    * add GetPeelCenters and Initlocator_viewer and corresponding publisher call
    
    * add in  OnLinkBrain and TractographyPanel class (OnSelectPeelingDepth) call to get peel centers and normals and initiator)
    
    * remove print on GetPeelCenters and Initlocator_viewer
    
    * add objectArrowlocation to calculate coil norms and directions
    
    * Add UpdateObjectArrowOrientation and Getcellintersection
    
      - getcellintersection function calculates the intersection between the
      coil normal and the peel center
      -calculates the angle between the coil normal and the normal of the
      center of the intersected cell
      -shows the coil projected with arrow and disk
      -Color of the disk and arrow change according to the value of the
      angle between the normal of the coil and the peel center mesh
      intersected.
      -updateobjectarroworientation is used to show and update the position
      of the projected arrow and disk
    
    * add comments, removed not used code on class def, modify currentPeel as local variable
    
    * modify getPeelActor removing input currentPeel
    
    * add affine_vtk matrix as input to getPeelActor, add change position of curent peel
    
    * add case when not intersection found in getcellintersection function
    
    * add remove arrow and disk actor only when intersecting with the peel
    
    * add comments to getcellintersection function, remove TODO
    
    * add comment to getcellintersection
    
    * add transformpeelposition function
    
    * add setvisibility to arrow and disk actor on OnNavigationStatus
    
    * add tangent lines for debuggint at getcellintersection function
    
    * add coil_dir from coordinates from tracker to objectArrowlocation
    
    * modify visibility of disk and coil projection arrow, to be shown when coil is not shown
    
    * comment tangent lines for debuggin on getcellintersection
    
    * modify names of functions to invesalius naming convention
    
    * correct mispelling error when calling GetCellIntersection
    
    * add angle threshold for projectio arrow in constansts
    
    * add angle threshold for arrow projection in constants
    
    * change size of disk and arrow in coil projection
    
    * add normal lines for debugging arrow projection
    
    * Modify function names to invensalius convention
    
    * add condition for track if peel is loaded or not
    
    * fix removing arrow and disk projection when distance is larger than set value, removing normal lines for debugging
    
    * clean comments
    
    * add self.peel_loaded to vis_components
    
    * Modify UpdatePeelVisualization to pass peel_loaded from navigation class
    
    * change color disk and arrow
    sotodela