Mercurial > hg > orthanc-stone
diff Applications/Samples/Sdl/SingleFrameViewer/SdlSimpleViewer.cpp @ 1975:5a434f5889f8
starting pixel probe
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 29 Oct 2022 11:57:00 +0200 |
parents | 184b0aeae1af |
children | ba45e1b0812a |
line wrap: on
line diff
--- a/Applications/Samples/Sdl/SingleFrameViewer/SdlSimpleViewer.cpp Fri Oct 28 17:58:59 2022 +0200 +++ b/Applications/Samples/Sdl/SingleFrameViewer/SdlSimpleViewer.cpp Sat Oct 29 11:57:00 2022 +0200 @@ -82,6 +82,7 @@ << " d\tDelete mode for annotations" << std::endl << " e\tEdit mode, don't create annotation (default)" << std::endl << " l\tCreate line annotations" << std::endl + << " p\tCreate pixel probe" << std::endl #else << " a\tEnable/disable the angle annotation tool" << std::endl << " l\tEnable/disable the line annotation tool" << std::endl @@ -194,6 +195,7 @@ #if SAMPLE_USE_ANNOTATIONS_LAYER == 1 OrthancStone::AnnotationsSceneLayer annotations(10); annotations.SetActiveTool(OrthancStone::AnnotationsSceneLayer::Tool_Edit); + annotations.SetProbedLayer(0); #else ActiveTool activeTool = ActiveTool_None; @@ -380,6 +382,12 @@ #endif break; +#if SAMPLE_USE_ANNOTATIONS_LAYER == 1 + case SDLK_p: + annotations.SetActiveTool(OrthancStone::AnnotationsSceneLayer::Tool_PixelProbe); + break; +#endif + default: break; }