879
|
1 #pragma once
|
|
2
|
884
|
3 #include "../../Applications/Generic/Scene2DInteractor.h"
|
881
|
4 #include "../../Framework/Scene2DViewport/IFlexiblePointerTracker.h"
|
883
|
5
|
|
6
|
879
|
7 class BasicScene2DInteractor : public OrthancStone::Scene2DInteractor
|
|
8 {
|
884
|
9 boost::shared_ptr<OrthancStone::IFlexiblePointerTracker> currentTracker_;
|
879
|
10 public:
|
|
11 BasicScene2DInteractor(boost::shared_ptr<OrthancStone::ViewportController> viewportController) :
|
|
12 Scene2DInteractor(viewportController)
|
|
13 {}
|
|
14
|
883
|
15 virtual bool OnMouseEvent(const OrthancStone::GuiAdapterMouseEvent& event, const OrthancStone::PointerEvent& pointerEvent) override;
|
|
16 virtual bool OnKeyboardEvent(const OrthancStone::GuiAdapterKeyboardEvent& guiEvent);
|
|
17 virtual bool OnWheelEvent(const OrthancStone::GuiAdapterWheelEvent& guiEvent);
|
879
|
18 };
|
|
19
|