Skip to content

Commit

Permalink
v.0.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ekatrukha committed Nov 22, 2023
1 parent 377523e commit 821c272
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions src/main/java/bigtrace/BigTraceControlPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -574,17 +574,21 @@ public void updateViewDataSources()
bt.sources.set(i,btdata.getDataSourceCropped(i, btdata.nCurrTimepoint));
}

//update bvv sources crop
double [][] doubleCrop = new double [2][3];
for (i=0;i<3;i++)
for(int j=0;j<2;j++)
doubleCrop[j][i] = (double)btdata.nDimCurr[j][i];

final FinalRealInterval cropInt = new FinalRealInterval(doubleCrop[0],doubleCrop[1]);
for(i=0;i<bt.bvv_sources.size();i++)
//TODO: remove when a proper crop for transformed source is made
if(!bt.bTestLLSTransform)
{
((BvvStackSource)bt.bvv_sources.get(i)).setCropInterval(cropInt);
}
//update bvv sources crop
double [][] doubleCrop = new double [2][3];
for (i=0;i<3;i++)
for(int j=0;j<2;j++)
doubleCrop[j][i] = (double)btdata.nDimCurr[j][i];

final FinalRealInterval cropInt = new FinalRealInterval(doubleCrop[0],doubleCrop[1]);
for(i=0;i<bt.bvv_sources.size();i++)
{
((BvvStackSource)bt.bvv_sources.get(i)).setCropInterval(cropInt);
}
}
}

synchronized void voxelChanged(double [] newVoxelSize)
Expand Down

0 comments on commit 821c272

Please sign in to comment.