Mercurial > hg > orthanc-stone
comparison Framework/Widgets/EmptyWidget.cpp @ 235:ce4405d98b92 am
Added SimpleViewerApplication (working in SDL)
author | am@osimis.io |
---|---|
date | Tue, 19 Jun 2018 16:02:41 +0200 |
parents | 5412adf19980 |
children | e33659decec5 |
comparison
equal
deleted
inserted
replaced
234:9afb50d1ac14 | 235:ce4405d98b92 |
---|---|
11 * | 11 * |
12 * This program is distributed in the hope that it will be useful, but | 12 * This program is distributed in the hope that it will be useful, but |
13 * WITHOUT ANY WARRANTY; without even the implied warranty of | 13 * WITHOUT ANY WARRANTY; without even the implied warranty of |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 * Affero General Public License for more details. | 15 * Affero General Public License for more details. |
16 * | 16 * |
17 * You should have received a copy of the GNU Affero General Public License | 17 * You should have received a copy of the GNU Affero General Public License |
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 **/ | 19 **/ |
20 | 20 |
21 | 21 |
24 #include <Core/Images/ImageProcessing.h> | 24 #include <Core/Images/ImageProcessing.h> |
25 #include <Core/OrthancException.h> | 25 #include <Core/OrthancException.h> |
26 | 26 |
27 namespace OrthancStone | 27 namespace OrthancStone |
28 { | 28 { |
29 namespace Samples | 29 bool EmptyWidget::Render(Orthanc::ImageAccessor& surface) |
30 { | 30 { |
31 bool EmptyWidget::Render(Orthanc::ImageAccessor& surface) | 31 // Note: This call is slow |
32 { | 32 Orthanc::ImageProcessing::Set(surface, red_, green_, blue_, 255); |
33 // Note: This call is slow | 33 return true; |
34 Orthanc::ImageProcessing::Set(surface, red_, green_, blue_, 255); | 34 } |
35 return true; | |
36 } | |
37 | 35 |
38 | 36 |
39 void EmptyWidget::UpdateContent() | 37 void EmptyWidget::UpdateContent() |
40 { | 38 { |
41 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); | 39 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); |
42 } | |
43 } | 40 } |
44 } | 41 } |