comparison Applications/Samples/Samples-status.md @ 529:7b29a8599318 bgo-commands-codegen

Personal notes on sample flags
author Benjamin Golinvaux <bgo@osimis.io>
date Sun, 17 Mar 2019 20:15:12 +0100
parents
children
comparison
equal deleted inserted replaced
528:45f4953f4162 529:7b29a8599318
1 Executable versions
2 ================
3 Generic options
4 ----------------------
5 ```
6 ("help", "Display this help and exit")
7 ("verbose", "Be verbose in logs")
8 ("orthanc", boost::program_options::value<std::string>()
9 ->default_value("http://localhost:8042/"),
10 "URL to the Orthanc server")
11 ("username", "Username for the Orthanc server")
12 ("password", "Password for the Orthanc server")
13 ("https-verify", boost::program_options::value<bool>()
14 ->default_value(true), "Check HTTPS certificates")
15 ```
16 OrthancStoneSimpleViewer
17 -------------------------------------
18 - Options:
19 ```
20 - "studyId", std::string, "Orthanc ID of the study"
21 ```
22 - study loading works OK
23 - Invert does not work:
24 ```
25 void SimpleViewerApplication::ExecuteAction(SimpleViewerApplication::Actions action)
26 {
27 // TODO
28 }
29 ```
30
31 OrthancStoneSimpleViewerSingleFile
32 -------------------------------------
33 - Options:
34 ```
35 - "studyId", std::string, "Orthanc ID of the study"
36 ```
37
38 Study loading works.
39
40 The `line` and `circle` buttons work and call this:
41 ```
42 virtual void OnTool1Clicked()
43 {
44 currentTool_ = Tools_LineMeasure;
45 }
46
47 virtual void OnTool2Clicked()
48 {
49 currentTool_ = Tools_CircleMeasure;
50 }
51 ```
52 The `action1` and `action2` buttons are not connected
53
54 The following is displayed in the console at launch time:
55 ```
56 W0313 12:20:12.790449 NativeStoneApplicationRunner.cpp:55] Use the key "s" to reinitialize the layout
57 W0313 12:20:12.790449 NativeStoneApplicationRunner.cpp:55] Use the key "n" to go to next image in the main viewport
58 ```
59 However, when looking at `MainWidgetInteractor::KeyPressed` (`SimpleViewerApplicationSingleFile.h:169`), only the following is processed:
60 - 's': reset layout
61 - 'l': select line tool
62 - 'c': select circle tool
63
64 OrthancStoneSingleFrame
65 -------------------------------------
66 ```
67 generic.add_options()
68 ("instance", boost::program_options::value<std::string>(),
69 "Orthanc ID of the instance")
70 ("frame", boost::program_options::value<unsigned int>()
71 ->default_value(0),
72 "Number of the frame, for multi-frame DICOM instances")
73 ("smooth", boost::program_options::value<bool>()
74 ->default_value(true),
75 "Enable bilinear interpolation to smooth the image");
76 ```
77 only key handled in `KeyPressed` is `s` to call `widget.FitContent()`
78
79
80 OrthancStoneSingleFrameEditor
81 -------------------------------------
82 ```
83 generic.add_options()
84 ("instance", boost::program_options::value<std::string>(),
85 "Orthanc ID of the instance")
86 ("frame", boost::program_options::value<unsigned int>()
87 ->default_value(0),
88 "Number of the frame, for multi-frame DICOM instances");
89 ```
90 Available commands in `KeyPressed` (`SingleFrameEditorApplication.h:280`):
91 - 'a' widget.FitContent()
92 - 'c' Crop tool
93 - 'm' Mask tool
94 - 'd' dump to json and diplay result (?)
95 - 'e' export current view to Dicom with dummy tags (?)
96 - 'i' wdiget.SwitchInvert
97 - 't' Move tool
98 - 'n' switch between nearest and bilinear interpolation
99 - 'r' Rotate tool
100 - 's' Resize tool
101 - 'w' Windowing tool
102 - 'ctrl+y' redo
103 - 'ctrl+z' undo