OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ViewerInteractor Class Reference

Manages input events. More...

#include "ViewerInteractor.h"

Inheritance diagram for ViewerInteractor:

Public Member Functions

 ViewerInteractor (const Handle(V3d_View)&view, const Handle(AIS_InteractiveContext)&ctx)
 Ctor.
 
virtual ~ViewerInteractor ()
 Dtor.
 
const Handle (AIS_InteractiveContext) &GetContext() const
 Return interactive context.
 
virtual bool UpdateMouseButtons (const Graphic3d_Vec2i &thePoint, Aspect_VKeyMouse theButtons, Aspect_VKeyFlags theModifiers, bool theIsEmulated) Standard_OVERRIDE
 Handle mouse button press/release event.
 
virtual void KeyDown (Aspect_VKey theKey, double theTime, double thePressure=1.0) Standard_OVERRIDE
 Release key.
 
virtual void KeyUp (Aspect_VKey theKey, double theTime) Standard_OVERRIDE
 Release key.
 
virtual void ProcessExpose ()
 Redraw the View on an Expose Event.
 
virtual void handleViewRedraw (const Handle(AIS_InteractiveContext)&theCtx, const Handle(V3d_View)&theView) Standard_OVERRIDE
 Handle redraw.
 
virtual void ProcessConfigure ()
 Resize View.
 
void ProcessKeyPress (Aspect_VKey theKey)
 Handle KeyPress event.
 

Detailed Description

Manages input events.

Constructor & Destructor Documentation

◆ ViewerInteractor()

ViewerInteractor::ViewerInteractor ( const Handle(V3d_View)& view,
const Handle(AIS_InteractiveContext)& ctx )

Ctor.

Parameters
[in]viewthe V3d view instance.
[in]ctxthe interactive context.

◆ ~ViewerInteractor()

ViewerInteractor::~ViewerInteractor ( )
virtual

Dtor.

Member Function Documentation

◆ Handle()

const ViewerInteractor::Handle ( AIS_InteractiveContext ) const &
inline

Return interactive context.

◆ handleViewRedraw()

void ViewerInteractor::handleViewRedraw ( const Handle(AIS_InteractiveContext)& theCtx,
const Handle(V3d_View)& theView )
virtual

Handle redraw.

◆ KeyDown()

void ViewerInteractor::KeyDown ( Aspect_VKey theKey,
double theTime,
double thePressure = 1.0 )
virtual

Release key.

◆ KeyUp()

void ViewerInteractor::KeyUp ( Aspect_VKey theKey,
double theTime )
virtual

Release key.

◆ ProcessConfigure()

void ViewerInteractor::ProcessConfigure ( )
virtual

Resize View.

◆ ProcessExpose()

void ViewerInteractor::ProcessExpose ( )
virtual

Redraw the View on an Expose Event.

◆ ProcessKeyPress()

void ViewerInteractor::ProcessKeyPress ( Aspect_VKey theKey)

Handle KeyPress event.

◆ UpdateMouseButtons()

bool ViewerInteractor::UpdateMouseButtons ( const Graphic3d_Vec2i & thePoint,
Aspect_VKeyMouse theButtons,
Aspect_VKeyFlags theModifiers,
bool theIsEmulated )
virtual

Handle mouse button press/release event.


The documentation for this class was generated from the following files: