Skip to content

Commit 8b5ab04

Browse files
committed
Updating the samples with the new ImmVis names.
1 parent 4d274bb commit 8b5ab04

File tree

7 files changed

+203
-125
lines changed

7 files changed

+203
-125
lines changed

Assets/ImmVisClientGrpcUnity/Examples/BasicUsage/ExampleSceneBehaviour.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ private async void ClientIsReady()
3030
{
3131
var datasetPath = datasetsPaths[0];
3232

33-
var datasetMetadata = await grpcClient.LoadDatasetAsync(new LoadDatasetRequestMessage()
33+
var datasetMetadata = await grpcClient.LoadDatasetAsync(new LoadDatasetRequest()
3434
{
3535
DatasetPath = datasetPath
3636
});

Assets/ImmVisClientGrpcUnity/Examples/Scatterplot/Prefabs/Axis Colored.prefab

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/ImmVisClientGrpcUnity/Examples/Scatterplot/Scatterplot.unity

Lines changed: 81 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/ImmVisClientGrpcUnity/Examples/Scatterplot/Scripts/DataManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ private async void ClientIsReady()
3232
{
3333
var datasetPath = datasetsPaths[0];
3434

35-
var datasetMetadata = await grpcClient.LoadDatasetAsync(new LoadDatasetRequestMessage()
35+
var datasetMetadata = await grpcClient.LoadDatasetAsync(new LoadDatasetRequest()
3636
{
3737
DatasetPath = datasetPath
3838
});
3939

4040
var pointsCount = datasetMetadata.RowsCount;
4141

42-
var datasetToPlot = await grpcClient.GetDatasetToPlotAsync(new GetDatasetToPlotRequestMessage());
42+
var datasetToPlot = await grpcClient.GetNormalisedDatasetAsync(new GetNormalisedDatasetRequest());
4343

4444
scatterplotBehaviour?.PlotData(datasetToPlot);
4545
}

Assets/ImmVisClientGrpcUnity/Examples/Scatterplot/Scripts/ScatterplotBehaviour.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void Start()
4646
argsBuffer = new ComputeBuffer(1, args.Length * sizeof(uint), ComputeBufferType.IndirectArguments);
4747
}
4848

49-
internal void PlotData(DatasetToPlot data)
49+
internal void PlotData(NormalisedDataset data)
5050
{
5151
var values = data.Rows;
5252
var pointsCount = values.Count;
@@ -59,7 +59,7 @@ internal void PlotData(DatasetToPlot data)
5959

6060
for (int i = 0; i < pointsCount; i++)
6161
{
62-
var point = values[i].RowValues;
62+
var point = values[i].Values;
6363

6464
Vector3 position = new Vector3();
6565
Vector4 color = new Vector4();

0 commit comments

Comments
 (0)