view Samples/Qt/Scene2DInteractor.h @ 1262:ca2058bd74ef toa2020012702

Changed fingerprint from uuid_t to int64_t + poor man's checksum (to fix emscripten syscall error + make it faster)
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 27 Jan 2020 15:13:00 +0100
parents aad5ccf1be10
children
line wrap: on
line source

#pragma once

#include "../../Applications/Generic/Scene2DInteractor.h"
#include "../../Framework/Scene2DViewport/IFlexiblePointerTracker.h"


class BasicScene2DInteractor : public OrthancStone::Scene2DInteractor
{
  boost::shared_ptr<OrthancStone::IFlexiblePointerTracker>  currentTracker_;
public:
  BasicScene2DInteractor(boost::shared_ptr<OrthancStone::ViewportController> viewportController) :
    Scene2DInteractor(viewportController)
  {}

  virtual bool OnMouseEvent(const OrthancStone::GuiAdapterMouseEvent& event, const OrthancStone::PointerEvent& pointerEvent) override;
  virtual bool OnKeyboardEvent(const OrthancStone::GuiAdapterKeyboardEvent& guiEvent);
  virtual bool OnWheelEvent(const OrthancStone::GuiAdapterWheelEvent& guiEvent);
};