Mercurial > hg > orthanc-stone
comparison UnitTestsSources/UnitTestsMain.cpp @ 953:118fc5c85d07
Fixed call to renamed method SetSize --> SetSizeInVoxels
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Fri, 16 Aug 2019 16:24:11 +0200 |
parents | e8fdf29cd0ca |
children | 2d69b8bee484 |
comparison
equal
deleted
inserted
replaced
952:bf35bffd93da | 953:118fc5c85d07 |
---|---|
640 } | 640 } |
641 | 641 |
642 TEST(VolumeImageGeometry, Basic) | 642 TEST(VolumeImageGeometry, Basic) |
643 { | 643 { |
644 OrthancStone::VolumeImageGeometry g; | 644 OrthancStone::VolumeImageGeometry g; |
645 g.SetSize(10, 20, 30); | 645 g.SetSizeInVoxels(10, 20, 30); |
646 g.SetVoxelDimensions(1, 2, 3); | 646 g.SetVoxelDimensions(1, 2, 3); |
647 | 647 |
648 OrthancStone::Vector p = g.GetCoordinates(0, 0, 0); | 648 OrthancStone::Vector p = g.GetCoordinates(0, 0, 0); |
649 ASSERT_EQ(3u, p.size()); | 649 ASSERT_EQ(3u, p.size()); |
650 ASSERT_FLOAT_EQ(-1.0 / 2.0, p[0]); | 650 ASSERT_FLOAT_EQ(-1.0 / 2.0, p[0]); |