Mercurial > hg > orthanc-stone
comparison Framework/Layers/OrthancFrameLayerSource.cpp @ 329:b10dfdb96866 am-2
removing WorldSceneWidget::IWorldObserver
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 17 Oct 2018 12:30:32 +0200 |
parents | 3a4ca166fafa |
children | 8eb4fe74000f |
comparison
equal
deleted
inserted
replaced
328:c80b5bddf86b | 329:b10dfdb96866 |
---|---|
103 | 103 |
104 bool OrthancFrameLayerSource::GetExtent(std::vector<Vector>& points, | 104 bool OrthancFrameLayerSource::GetExtent(std::vector<Vector>& points, |
105 const CoordinateSystem3D& viewportSlice) | 105 const CoordinateSystem3D& viewportSlice) |
106 { | 106 { |
107 size_t index; | 107 size_t index; |
108 | |
108 if (loader_.IsGeometryReady() && | 109 if (loader_.IsGeometryReady() && |
109 loader_.LookupSlice(index, viewportSlice)) | 110 loader_.LookupSlice(index, viewportSlice)) |
110 { | 111 { |
111 loader_.GetSlice(index).GetExtent(points); | 112 loader_.GetSlice(index).GetExtent(points); |
112 return true; | 113 return true; |
120 | 121 |
121 void OrthancFrameLayerSource::ScheduleLayerCreation(const CoordinateSystem3D& viewportSlice) | 122 void OrthancFrameLayerSource::ScheduleLayerCreation(const CoordinateSystem3D& viewportSlice) |
122 { | 123 { |
123 size_t index; | 124 size_t index; |
124 | 125 |
125 if (loader_.IsGeometryReady()) | 126 if (loader_.IsGeometryReady() && |
127 loader_.LookupSlice(index, viewportSlice)) | |
126 { | 128 { |
127 if (loader_.LookupSlice(index, viewportSlice)) | 129 loader_.ScheduleLoadSliceImage(index, quality_); |
128 { | |
129 loader_.ScheduleLoadSliceImage(index, quality_); | |
130 } | |
131 else | |
132 { | |
133 Slice slice; | |
134 LayerSourceBase::NotifyLayerReady(NULL, slice.GetGeometry(), true); | |
135 } | |
136 } | 130 } |
137 } | 131 } |
138 } | 132 } |