annotate Applications/Samples/Samples-status.md @ 1324:4d8d642f7036 broker

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