annotate Samples/Shared/RadiographyEditorApp.h @ 848:80829436ce0c am-mainline

starting to re-implement radiography editor with latest framework
author Alain Mazy <alain@mazy.be>
date Thu, 13 Jun 2019 16:47:02 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
848
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
1 /**
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
2 * Stone of Orthanc
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
4 * Department, University Hospital of Liege, Belgium
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
5 * Copyright (C) 2017-2019 Osimis S.A., Belgium
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
6 *
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
7 * This program is free software: you can redistribute it and/or
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
8 * modify it under the terms of the GNU Affero General Public License
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
9 * as published by the Free Software Foundation, either version 3 of
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
10 * the License, or (at your option) any later version.
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
11 *
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful, but
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
15 * Affero General Public License for more details.
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
16 *
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
17 * You should have received a copy of the GNU Affero General Public License
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
19 **/
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
20
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
21
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
22 #include "../../Framework/Messages/IObserver.h"
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
23 #include "../../Framework/Oracle/IOracle.h"
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
24 #include "../../Framework/Scene2D/OpenGLCompositor.h"
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
25 #include "../../Framework/Scene2D/Internals/CompositorHelper.h"
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
26 #include "../../Framework/Scene2DViewport/IFlexiblePointerTracker.h"
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
27 #include "../../Framework/Scene2DViewport/MeasureTool.h"
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
28 #include "../../Framework/Scene2DViewport/PredeclaredTypes.h"
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
29 #include "../../Framework/Scene2DViewport/ViewportController.h"
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
30
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
31 #include <SDL.h>
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
32
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
33 #include <boost/make_shared.hpp>
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
34 #include <boost/shared_ptr.hpp>
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
35 #include <boost/enable_shared_from_this.hpp>
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
36
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
37
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
38 namespace OrthancStone
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
39 {
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
40 class ICompositorFactory
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
41 {
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
42 public:
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
43 virtual OrthancStone::ICompositor* GetCompositor(const OrthancStone::Scene2D& scene) = 0;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
44 };
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
45
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
46 class IInteractor
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
47 {
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
48 public:
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
49 virtual void OnMouseDown(int x, int y, OrthancStone::KeyboardModifiers modifiers, OrthancStone::MouseButton button) = 0;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
50 virtual void OnMouseMove(int x, int y, OrthancStone::KeyboardModifiers modifiers) = 0;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
51 virtual void OnMouseUp(int x, int y, OrthancStone::KeyboardModifiers modifiers, OrthancStone::MouseButton button) = 0;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
52 virtual void OnKeyPressed(char keyChar, OrthancStone::KeyboardModifiers modifiers) = 0;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
53 };
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
54
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
55
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
56
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
57
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
58 enum GuiTool
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
59 {
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
60 GuiTool_Rotate = 0,
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
61 GuiTool_Pan,
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
62 GuiTool_Zoom,
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
63 GuiTool_LineMeasure,
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
64 GuiTool_CircleMeasure,
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
65 GuiTool_AngleMeasure,
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
66 GuiTool_EllipseMeasure,
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
67 GuiTool_LAST
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
68 };
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
69
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
70 const char* MeasureToolToString(size_t i);
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
71
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
72 static const unsigned int FONT_SIZE_0 = 32;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
73 static const unsigned int FONT_SIZE_1 = 24;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
74
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
75 class Scene2D;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
76
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
77 class RadiographyEditorApp : public IObserver
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
78 , public IInteractor, public boost::enable_shared_from_this<RadiographyEditorApp>
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
79 {
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
80 OrthancStone::IOracle& oracle_;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
81 std::auto_ptr<ICompositorFactory> compositorFactory_;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
82 std::auto_ptr<ICompositor> compositor_;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
83
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
84 public:
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
85 // 12 because.
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
86 RadiographyEditorApp(OrthancStone::IOracle& oracle, IObservable& oracleObservable, ICompositorFactory* compositorFactory);
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
87
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
88 void PrepareScene();
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
89 void FitContent(unsigned int width, unsigned int height);
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
90 void Refresh();
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
91 void UpdateSize();
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
92 void SetInfoDisplayMessage(std::string key, std::string value);
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
93 void DisableTracker();
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
94
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
95 virtual void OnMouseMove(int x, int y, OrthancStone::KeyboardModifiers modifiers);
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
96 virtual void OnKeyPressed(char keyChar, OrthancStone::KeyboardModifiers modifiers);
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
97 virtual void OnMouseDown(int x, int y, OrthancStone::KeyboardModifiers modifiers, OrthancStone::MouseButton button);
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
98 virtual void OnMouseUp(int x, int y, OrthancStone::KeyboardModifiers modifiers, OrthancStone::MouseButton button);
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
99
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
100 boost::shared_ptr<Scene2D> GetScene();
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
101 boost::shared_ptr<const Scene2D> GetScene() const;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
102
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
103 void HandleApplicationEvent(const SDL_Event& event);
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
104
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
105 /**
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
106 This method is called when the scene transform changes. It allows to
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
107 recompute the visual elements whose content depend upon the scene transform
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
108 */
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
109 void OnSceneTransformChanged(
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
110 const ViewportController::SceneTransformChanged& message);
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
111
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
112 private:
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
113 void SelectNextTool();
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
114 void CreateRandomMeasureTool();
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
115
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
116 /**
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
117 This returns a random point in the canvas part of the scene, but in
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
118 scene coordinates
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
119 */
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
120 ScenePoint2D GetRandomPointInScene() const;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
121
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
122 boost::shared_ptr<IFlexiblePointerTracker> TrackerHitTest(const PointerEvent& e);
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
123
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
124 boost::shared_ptr<IFlexiblePointerTracker> CreateSuitableTracker(
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
125 OrthancStone::MouseButton button,
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
126 const PointerEvent& e);
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
127
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
128 void TakeScreenshot(
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
129 const std::string& target,
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
130 unsigned int canvasWidth,
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
131 unsigned int canvasHeight);
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
132
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
133 /**
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
134 This adds the command at the top of the undo stack
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
135 */
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
136 void Commit(boost::shared_ptr<TrackerCommand> cmd);
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
137 void Undo();
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
138 void Redo();
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
139
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
140 private:
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
141 void DisplayFloatingCtrlInfoText(const PointerEvent& e);
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
142 void DisplayInfoText();
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
143 void HideInfoText();
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
144
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
145 private:
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
146 /**
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
147 WARNING: the measuring tools do store a reference to the scene, and it
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
148 paramount that the scene gets destroyed AFTER the measurement tools.
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
149 */
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
150 boost::shared_ptr<ViewportController> controller_;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
151
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
152 std::map<std::string, std::string> infoTextMap_;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
153 boost::shared_ptr<IFlexiblePointerTracker> activeTracker_;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
154
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
155 //static const int LAYER_POSITION = 150;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
156
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
157 int TEXTURE_2x2_1_ZINDEX;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
158 int TEXTURE_1x1_ZINDEX;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
159 int TEXTURE_2x2_2_ZINDEX;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
160 int LINESET_1_ZINDEX;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
161 int LINESET_2_ZINDEX;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
162 int FLOATING_INFOTEXT_LAYER_ZINDEX;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
163 int FIXED_INFOTEXT_LAYER_ZINDEX;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
164
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
165 GuiTool currentTool_;
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
166 };
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
167
80829436ce0c starting to re-implement radiography editor with latest framework
Alain Mazy <alain@mazy.be>
parents:
diff changeset
168 }