Skip to content

Commit

Permalink
Merge branch 'release/4.3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
zigaroula committed Aug 4, 2023
2 parents 211ff83 + 48611eb commit efb1729
Show file tree
Hide file tree
Showing 39 changed files with 1,130 additions and 635 deletions.
2 changes: 1 addition & 1 deletion Assets/Plugins/x86_64/Linux/libEEGFormat.so.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Assets/Plugins/x86_64/Linux/libhbp_export.so.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Assets/Plugins/x86_64/Linux/libhbp_math.so.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Assets/Plugins/x86_64/Windows/opencv_core3416.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Assets/Plugins/x86_64/Windows/opencv_imgproc3416.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Assets/Plugins/x86_64/Windows/opencv_videoio3416.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified Assets/Prefabs/3D/UI/3D Menu.prefab
Binary file not shown.
Binary file modified Assets/Prefabs/CustomUI/ColorPicker.prefab
Binary file not shown.
Binary file modified Assets/Prefabs/CustomUI/Range Slider.prefab
Binary file not shown.
Binary file not shown.
Binary file modified Assets/Prefabs/Graph/pref_Legend.prefab
Binary file not shown.
Binary file modified Assets/Prefabs/Graph/pref_SimpleLegend.prefab
Binary file not shown.
Binary file modified Assets/Prefabs/Informations/Graph/Graph.prefab
Binary file not shown.
Binary file modified Assets/Resources/Prefabs/UI/Windows/Icon modifier window.prefab
Binary file not shown.
Binary file modified Assets/Resources/Prefabs/UI/Windows/Quick start window.prefab
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 1 addition & 2 deletions Assets/Scripts/HBP/Data/Module3D/Modules/AtlasManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public bool DisplayMarsAtlas
if (m_Scene.MeshManager.SelectedMesh.Type == MeshType.MNI)
{
UpdateAtlasIndices();
UpdateAtlasColors();
}
}
}
Expand All @@ -59,7 +58,6 @@ public bool DisplayJuBrainAtlas
m_DisplayJuBrainAtlas = value;
m_Scene.BrainMaterials.SetDisplayAtlas(m_DisplayJuBrainAtlas);
UpdateAtlasIndices();
UpdateAtlasColors();
}
}

Expand Down Expand Up @@ -138,6 +136,7 @@ public void UpdateAtlasIndices()
{
m_JuBrainAtlasIndices = Object3DManager.JuBrain.GetSurfaceAreaLabels(m_Scene.MeshManager.BrainSurface);
m_MarsAtlasIndices = Object3DManager.MarsAtlas.GetSurfaceAreaLabels(m_Scene.MeshManager.BrainSurface);
UpdateAtlasColors();
}
/// <summary>
/// Update all colors for the atlas for all vertices
Expand Down
4 changes: 4 additions & 0 deletions Assets/Scripts/HBP/Data/Module3D/Modules/TriangleEraser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ public void ResetEraser()

m_Scene.ResetGenerators();
m_Scene.MeshManager.UpdateMeshesFromDLL();
m_Scene.FMRIManager.UpdateSurfaceFMRIValues();
m_Scene.AtlasManager.UpdateAtlasColors();
Module3DMain.OnRequestUpdateInToolbar.Invoke();
}
/// <summary>
Expand All @@ -210,6 +212,7 @@ public void EraseTriangles(Vector3 rayDirection, Vector3 hitPoint)
m_Scene.ResetGenerators();
m_Scene.MeshManager.UpdateMeshesFromDLL();
m_Scene.FMRIManager.UpdateSurfaceFMRIValues();
m_Scene.AtlasManager.UpdateAtlasColors();
Module3DMain.OnRequestUpdateInToolbar.Invoke();
}
/// <summary>
Expand All @@ -226,6 +229,7 @@ public void CancelLastAction()
m_Scene.ResetGenerators();
m_Scene.MeshManager.UpdateMeshesFromDLL();
m_Scene.FMRIManager.UpdateSurfaceFMRIValues();
m_Scene.AtlasManager.UpdateAtlasColors();
Module3DMain.OnRequestUpdateInToolbar.Invoke();
}
#endregion
Expand Down
7 changes: 3 additions & 4 deletions Assets/Scripts/HBP/UI/Toolbar/Activity/ActivityGlobal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,11 @@ public override void UpdateInteractable()
m_Toggle.interactable = true;
}
/// <summary>
/// Set the global mode
///
/// </summary>
/// <param name="isOn">Global mode activated</param>
public void Set(bool isOn)
public override void UpdateStatus()
{
m_Toggle.isOn = isOn;
m_Toggle.isOn = GetComponentInParent<ActivitySettingsToolbar>(true).IsGlobal;
}
#endregion
}
Expand Down
15 changes: 4 additions & 11 deletions Assets/Scripts/HBP/UI/Toolbar/Activity/ActivitySettingsToolbar.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using UnityEngine;
using HBP.Data.Module3D;
using UnityEngine;

namespace HBP.UI.Toolbar
{
Expand Down Expand Up @@ -93,18 +94,10 @@ protected override void AddListeners()
m_ActivityGlobal.OnChangeValue.AddListener((global) =>
{
IsGlobal = global;
m_ToolbarMenu.TimelineToolbar.IsGlobal = global;
Module3DMain.OnRequestUpdateInToolbar.Invoke();
});
}
#endregion

#region Public Methods
/// <summary>
/// Called when showing this toolbar
/// </summary>
public override void ShowToolbarCallback()
{
m_ActivityGlobal.Set(m_ToolbarMenu.TimelineToolbar.IsGlobal);
}
#endregion
}
}
7 changes: 3 additions & 4 deletions Assets/Scripts/HBP/UI/Toolbar/Timeline/TimelineGlobal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,11 @@ public override void UpdateInteractable()
m_Toggle.interactable = isColumnDynamicOrFMRI && areAmplitudesComputed;
}
/// <summary>
/// Set the global mode
///
/// </summary>
/// <param name="isOn">Global mode activated</param>
public void Set(bool isOn)
public override void UpdateStatus()
{
m_Toggle.isOn = isOn;
m_Toggle.isOn = GetComponentInParent<TimelineToolbar>(true).IsGlobal;
}
#endregion
}
Expand Down
15 changes: 4 additions & 11 deletions Assets/Scripts/HBP/UI/Toolbar/Timeline/TimelineToolbar.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using UnityEngine;
using HBP.Data.Module3D;
using UnityEngine;

namespace HBP.UI.Toolbar
{
Expand Down Expand Up @@ -73,18 +74,10 @@ protected override void AddListeners()
m_TimelineGlobal.OnChangeValue.AddListener((global) =>
{
IsGlobal = global;
m_ToolbarMenu.ActivitySettingsToolbar.IsGlobal = global;
Module3DMain.OnRequestUpdateInToolbar.Invoke();
});
}
#endregion

#region Public Methods
/// <summary>
/// Called when showing this toolbar
/// </summary>
public override void ShowToolbarCallback()
{
m_TimelineGlobal.Set(m_ToolbarMenu.ActivitySettingsToolbar.IsGlobal);
}
#endregion
}
}
Binary file modified Assets/_Scenes/HiBoP.unity
Binary file not shown.
Loading

0 comments on commit efb1729

Please sign in to comment.