Mercurial > hg > orthanc-stone
comparison Applications/Samples/SingleFrameApplication.h @ 92:961ee171d933 wasm
cleaning up
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 29 May 2017 11:42:53 +0200 |
parents | 64e60018943f |
children | 7b14c12a3be5 |
comparison
equal
deleted
inserted
replaced
91:81f73efd81a1 | 92:961ee171d933 |
---|---|
92 } | 92 } |
93 }; | 93 }; |
94 | 94 |
95 virtual void NotifyGeometryReady(const ILayerSource& source) | 95 virtual void NotifyGeometryReady(const ILayerSource& source) |
96 { | 96 { |
97 // Once the geometry of the series is downloaded from Orthanc, | |
98 // display its first slice, and adapt the viewport to fit this | |
99 // slice | |
100 | |
97 const OrthancFrameLayerSource& frame = | 101 const OrthancFrameLayerSource& frame = |
98 dynamic_cast<const OrthancFrameLayerSource&>(source); | 102 dynamic_cast<const OrthancFrameLayerSource&>(source); |
99 | 103 |
100 if (frame.GetSliceCount() > 0) | 104 if (frame.GetSliceCount() > 0) |
101 { | 105 { |