34#include <AIS_ViewController.hxx>
35#include <TColgp_Array1OfPnt2d.hxx>
36#include <TCollection_AsciiString.hxx>
38class AIS_InteractiveContext;
55 const Handle(AIS_InteractiveContext)& ctx);
63 const Handle(AIS_InteractiveContext)&
64 GetContext()
const {
return m_ctx; }
68 Aspect_VKeyMouse theButtons,
69 Aspect_VKeyFlags theModifiers,
70 bool theIsEmulated) Standard_OVERRIDE;
73 virtual void KeyDown(Aspect_VKey theKey,
75 double thePressure = 1.0) Standard_OVERRIDE;
78 virtual
void KeyUp(Aspect_VKey theKey,
79 double theTime) Standard_OVERRIDE;
86 const
Handle(V3d_View)& theView) Standard_OVERRIDE;
97 Handle(AIS_InteractiveContext) m_ctx;
Manages input events.
Definition ViewerInteractor.h:43
ViewerInteractor(const Handle(V3d_View)&view, const Handle(AIS_InteractiveContext)&ctx)
Ctor.
Definition ViewerInteractor.cpp:43
virtual void KeyUp(Aspect_VKey theKey, double theTime) Standard_OVERRIDE
Release key.
Definition ViewerInteractor.cpp:105
virtual void ProcessExpose()
Redraw the View on an Expose Event.
Definition ViewerInteractor.cpp:66
const Handle(AIS_InteractiveContext) &GetContext() const
Return interactive context.
Definition ViewerInteractor.h:63
virtual bool UpdateMouseButtons(const Graphic3d_Vec2i &thePoint, Aspect_VKeyMouse theButtons, Aspect_VKeyFlags theModifiers, bool theIsEmulated) Standard_OVERRIDE
Handle mouse button press/release event.
Definition ViewerInteractor.cpp:56
virtual void ProcessConfigure()
Resize View.
Definition ViewerInteractor.cpp:85
void ProcessKeyPress(Aspect_VKey theKey)
Handle KeyPress event.
Definition ViewerInteractor.cpp:119
virtual ~ViewerInteractor()
Dtor.
Definition ViewerInteractor.cpp:51
virtual void KeyDown(Aspect_VKey theKey, double theTime, double thePressure=1.0) Standard_OVERRIDE
Release key.
Definition ViewerInteractor.cpp:96
virtual void handleViewRedraw(const Handle(AIS_InteractiveContext)&theCtx, const Handle(V3d_View)&theView) Standard_OVERRIDE
Handle redraw.
Definition ViewerInteractor.cpp:77