Mercurial > hg > orthanc-stone
view Samples/Qt/Scene2DInteractor.h @ 1013:53cc787bd7bc toa2019092301
- Added an optimized ProjectPoint2 to CoordinateSystem3D. It has *not* replaced
the ProjectPoint method because more tests need to be written.
- ProjectPointOntoPlane2 is a faster version of
GeometryToolbox::ProjectPointOntoPlane. Same remark as above.
- DicomStructureSet.cpp now uses this optimized call.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 23 Sep 2019 15:18:33 +0200 |
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); };