Mercurial > hg > orthanc-stone
comparison Applications/Samples/Sdl/SingleFrameViewer/SdlSimpleViewer.cpp @ 1998:1fa3f484008e
added arrows to AnnotationsSceneLayer::Segment
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 02 Nov 2022 13:08:50 +0100 |
parents | ba45e1b0812a |
children | 07964689cb0b |
comparison
equal
deleted
inserted
replaced
1997:c622219a3388 | 1998:1fa3f484008e |
---|---|
79 #if SAMPLE_USE_ANNOTATIONS_LAYER == 1 | 79 #if SAMPLE_USE_ANNOTATIONS_LAYER == 1 |
80 << " a\tCreate angle annotations" << std::endl | 80 << " a\tCreate angle annotations" << std::endl |
81 << " c\tCreate circle annotations" << std::endl | 81 << " c\tCreate circle annotations" << std::endl |
82 << " d\tDelete mode for annotations" << std::endl | 82 << " d\tDelete mode for annotations" << std::endl |
83 << " e\tCreate ellipse probe" << std::endl | 83 << " e\tCreate ellipse probe" << std::endl |
84 << " l\tCreate line annotations" << std::endl | 84 << " l\tCreate length annotations" << std::endl |
85 << " m\tModification/edit mode, don't create annotation (default)" << std::endl | 85 << " m\tModification/edit mode, don't create annotation (default)" << std::endl |
86 << " p\tCreate pixel probe" << std::endl | 86 << " p\tCreate pixel probe" << std::endl |
87 << " r\tCreate rectangle probe" << std::endl | 87 << " r\tCreate rectangle probe" << std::endl |
88 #else | 88 #else |
89 << " a\tEnable/disable the angle annotation tool" << std::endl | 89 << " a\tEnable/disable the angle annotation tool" << std::endl |
315 break; | 315 break; |
316 #endif | 316 #endif |
317 | 317 |
318 case SDLK_l: | 318 case SDLK_l: |
319 #if SAMPLE_USE_ANNOTATIONS_LAYER == 1 | 319 #if SAMPLE_USE_ANNOTATIONS_LAYER == 1 |
320 annotations.SetActiveTool(OrthancStone::AnnotationsSceneLayer::Tool_Segment); | 320 annotations.SetActiveTool(OrthancStone::AnnotationsSceneLayer::Tool_Length); |
321 #else | 321 #else |
322 if (activeTool == ActiveTool_Line) | 322 if (activeTool == ActiveTool_Line) |
323 { | 323 { |
324 lineMeasureTool->Disable(); | 324 lineMeasureTool->Disable(); |
325 activeTool = ActiveTool_None; | 325 activeTool = ActiveTool_None; |