Mercurial > hg > orthanc-stone
comparison Samples/Sdl/Loader.cpp @ 780:f81655ed96ab
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 27 May 2019 10:39:35 +0200 |
parents | e72a9fef3d19 |
children | 2bb72826fa3f |
comparison
equal
deleted
inserted
replaced
779:e72a9fef3d19 | 780:f81655ed96ab |
---|---|
90 LookupTableStyleConfigurator() : | 90 LookupTableStyleConfigurator() : |
91 revision_(0), | 91 revision_(0), |
92 hasLut_(false), | 92 hasLut_(false), |
93 hasRange_(false) | 93 hasRange_(false) |
94 { | 94 { |
95 SetLookupTable(Orthanc::EmbeddedResources::COLORMAP_HOT); // TODO - test | |
96 } | 95 } |
97 | 96 |
98 void SetLookupTable(Orthanc::EmbeddedResources::FileResourceId resource) | 97 void SetLookupTable(Orthanc::EmbeddedResources::FileResourceId resource) |
99 { | 98 { |
100 hasLut_ = true; | 99 hasLut_ = true; |
1775 loader2.reset(new OrthancStone::OrthancSeriesVolumeProgressiveLoader(oracle, lock.GetOracleObservable())); | 1774 loader2.reset(new OrthancStone::OrthancSeriesVolumeProgressiveLoader(oracle, lock.GetOracleObservable())); |
1776 loader3.reset(new OrthancStone::OrthancMultiframeVolumeLoader(oracle, lock.GetOracleObservable())); | 1775 loader3.reset(new OrthancStone::OrthancMultiframeVolumeLoader(oracle, lock.GetOracleObservable())); |
1777 } | 1776 } |
1778 | 1777 |
1779 toto->SetVolume1(0, loader1, new OrthancStone::GrayscaleStyleConfigurator); | 1778 toto->SetVolume1(0, loader1, new OrthancStone::GrayscaleStyleConfigurator); |
1780 toto->SetVolume2(1, loader3, new OrthancStone::LookupTableStyleConfigurator); | 1779 |
1780 { | |
1781 std::auto_ptr<OrthancStone::LookupTableStyleConfigurator> config(new OrthancStone::LookupTableStyleConfigurator); | |
1782 config->SetLookupTable(Orthanc::EmbeddedResources::COLORMAP_HOT); | |
1783 toto->SetVolume2(1, loader3, config.release()); | |
1784 } | |
1781 | 1785 |
1782 oracle.Schedule(*toto, new OrthancStone::SleepOracleCommand(100)); | 1786 oracle.Schedule(*toto, new OrthancStone::SleepOracleCommand(100)); |
1783 | 1787 |
1784 if (0) | 1788 if (0) |
1785 { | 1789 { |