Mercurial > hg > orthanc-stone
diff Samples/Common/RtViewerApp.cpp @ 1409:07fac4fdbe07
Removed dead code (RtViewer is not supposed to demonstrate measuring tools in a simple example)
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 04 May 2020 13:18:06 +0200 |
parents | 3e644f6fadd4 |
children | cecedf0b1be6 |
line wrap: on
line diff
--- a/Samples/Common/RtViewerApp.cpp Mon May 04 13:17:31 2020 +0200 +++ b/Samples/Common/RtViewerApp.cpp Mon May 04 13:18:06 2020 +0200 @@ -60,33 +60,6 @@ namespace OrthancStone { - const char* RtViewerGuiToolToString(size_t i) - { - static const char* descs[] = { - "RtViewerGuiTool_Rotate", - "RtViewerGuiTool_Pan", - "RtViewerGuiTool_Zoom", - "RtViewerGuiTool_LineMeasure", - "RtViewerGuiTool_CircleMeasure", - "RtViewerGuiTool_AngleMeasure", - "RtViewerGuiTool_EllipseMeasure", - "RtViewerGuiTool_LAST" - }; - if (i >= RtViewerGuiTool_LAST) - { - throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError, "Wrong tool index"); - } - return descs[i]; - } - - void RtViewerApp::SelectNextTool() - { - currentTool_ = static_cast<RtViewerGuiTool>(currentTool_ + 1); - if (currentTool_ == RtViewerGuiTool_LAST) - currentTool_ = static_cast<RtViewerGuiTool>(0);; - printf("Current tool is now: %s\n", RtViewerGuiToolToString(currentTool_)); - } - void RtViewerApp::InvalidateAllViewports() { for (size_t i = 0; i < views_.size(); ++i) @@ -104,8 +77,7 @@ } RtViewerApp::RtViewerApp() - : currentTool_(RtViewerGuiTool_Rotate) - , undoStack_(new UndoStack) + : undoStack_(new UndoStack) { // Create the volumes that will be filled later on ctVolume_ = boost::make_shared<DicomVolumeImage>();