Skip to content

Commit

Permalink
Set up the Blazor plot graph to start building the graph for the Rama…
Browse files Browse the repository at this point in the history
…n spectrometer
  • Loading branch information
frawgii committed Oct 1, 2024
1 parent a77b1c1 commit 3c1217b
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 7 deletions.
Binary file added Basestation_Software.Api/Data/data.db-shm
Binary file not shown.
Empty file.
1 change: 1 addition & 0 deletions Basestation_Software.Web/Basestation_Software.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="8.0.6" />
<PackageReference Include="OpenCvSharp4" Version="4.10.0.20240616" />
<PackageReference Include="OpenCvSharp4.runtime.ubuntu.22.04-x64" Version="4.6.0-SNAPSHOT" />
<PackageReference Include="ScottPlot.Blazor" Version="5.0.39" />
<PackageReference Include="System.Drawing.Common" Version="4.7.2" />
<PackageReference Include="Radzen.Blazor" Version="4.33.3" />
</ItemGroup>
Expand Down
24 changes: 24 additions & 0 deletions Basestation_Software.Web/Core/Components/RamanGraph.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@using ScottPlot
@using ScottPlot.Blazor

<div class="card full-height">
<div class="card-header">
<div class="row">
<div class="col-6 d-flex align-self-center">
<h5>RamanGraph</h5>
</div>
</div>
</div>
</div>


@code {

BlazorPlot BlazorPlot { get; set; } = new();

protected override void OnAfterRender(bool firstRender)
{
BlazorPlot.Plot.Add.Signal(Generate.Sin());
BlazorPlot.Plot.Add.Signal(Generate.Cos());
}
}
2 changes: 1 addition & 1 deletion Basestation_Software.Web/Core/Pages/RED.razor
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</div>
<div class="row flex-grow-1">
<div class="col-12">
@* <CameraDisplay /> *@
<RamanGraph />
</div>
</div>
</div>
Expand Down
12 changes: 12 additions & 0 deletions Basestation_Software.Web/Core/Services/RamanGraphService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using ScottPlot.Blazor;
using ScottPlot;

namespace Basestation_Software.Web.Core.Services
{
public class RamanGraphService
{
BlazorPlot BlazorPlot { get; set; } = new();


}
}
12 changes: 6 additions & 6 deletions Basestation_Software.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,17 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Basestation_Software.Web", "Basestation_Software.Web\Basestation_Software.Web.csproj", "{685AF553-D781-42C7-826A-34FC743DE774}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Basestation_Software.Web", "Basestation_Software.Web\Basestation_Software.Web.csproj", "{685AF553-D781-42C7-826A-34FC743DE774}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Basestation_Software.Models", "Basestation_Software.Models\Basestation_Software.Models.csproj", "{77205455-D724-4ABA-885D-56584808BD4A}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Basestation_Software.Models", "Basestation_Software.Models\Basestation_Software.Models.csproj", "{77205455-D724-4ABA-885D-56584808BD4A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Basestation_Software.Api", "Basestation_Software.Api\Basestation_Software.Api.csproj", "{1E94F4E9-944B-4373-96E8-2B15C550A4AF}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Basestation_Software.Api", "Basestation_Software.Api\Basestation_Software.Api.csproj", "{1E94F4E9-944B-4373-96E8-2B15C550A4AF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{685AF553-D781-42C7-826A-34FC743DE774}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{685AF553-D781-42C7-826A-34FC743DE774}.Debug|Any CPU.Build.0 = Debug|Any CPU
Expand All @@ -31,4 +28,7 @@ Global
{1E94F4E9-944B-4373-96E8-2B15C550A4AF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1E94F4E9-944B-4373-96E8-2B15C550A4AF}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

0 comments on commit 3c1217b

Please sign in to comment.