Mercurial > hg > orthanc-stone
comparison Framework/Layers/OrthancFrameLayerSource.cpp @ 90:64e60018943f wasm
fix and observer refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 29 May 2017 11:04:18 +0200 |
parents | f244018a4e4b |
children | 5945e81734a3 |
comparison
equal
deleted
inserted
replaced
89:f244018a4e4b | 90:64e60018943f |
---|---|
35 | 35 |
36 namespace OrthancStone | 36 namespace OrthancStone |
37 { | 37 { |
38 void OrthancFrameLayerSource::NotifyGeometryReady(const OrthancSlicesLoader& loader) | 38 void OrthancFrameLayerSource::NotifyGeometryReady(const OrthancSlicesLoader& loader) |
39 { | 39 { |
40 #if 0 | |
41 if (loader.GetSliceCount() > 0) | 40 if (loader.GetSliceCount() > 0) |
42 { | 41 { |
43 // Make sure all the slices are parallel. TODO Alleviate this constraint | 42 // Make sure all the slices are parallel. TODO Alleviate this constraint |
44 for (size_t i = 1; i < loader.GetSliceCount(); i++) | 43 for (size_t i = 1; i < loader.GetSliceCount(); i++) |
45 { | 44 { |
51 } | 50 } |
52 } | 51 } |
53 } | 52 } |
54 | 53 |
55 LayerSourceBase::NotifyGeometryReady(); | 54 LayerSourceBase::NotifyGeometryReady(); |
56 #endif | |
57 | |
58 // TODO REMOVE THIS | |
59 /*if (GetObserver() != NULL) | |
60 { | |
61 dynamic_cast<LayerWidget*>(GetObserver())->SetSlice(loader.GetSlice(0).GetGeometry()); | |
62 }*/ | |
63 } | 55 } |
64 | 56 |
65 void OrthancFrameLayerSource::NotifyGeometryError(const OrthancSlicesLoader& loader) | 57 void OrthancFrameLayerSource::NotifyGeometryError(const OrthancSlicesLoader& loader) |
66 { | 58 { |
67 #if 0 | |
68 LayerSourceBase::NotifyGeometryError(); | 59 LayerSourceBase::NotifyGeometryError(); |
69 #endif | |
70 } | 60 } |
71 | 61 |
72 void OrthancFrameLayerSource::NotifySliceImageReady(const OrthancSlicesLoader& loader, | 62 void OrthancFrameLayerSource::NotifySliceImageReady(const OrthancSlicesLoader& loader, |
73 unsigned int sliceIndex, | 63 unsigned int sliceIndex, |
74 const Slice& slice, | 64 const Slice& slice, |