Views
Manager Package API Reference Guide
Product Documentation:
Views Documentation Home
List of all members | Public Member Functions
IlvMakeMoveInteractor Class Reference

Manager interactor class. More...

#include <ilviews/manager/geointer.h>

Inheritance diagram for IlvMakeMoveInteractor:
IlvManagerViewInteractor IlvValueInterface

Public Member Functions

 IlvMakeMoveInteractor (IlvManager *manager, IlvView *view, unsigned short button=IlvLeftButton)
 Constructor. More...
 
virtual void doIt (IlvPos dx, IlvPos dy)
 Action performed to finalize the interaction. More...
 
virtual void drawGhost ()
 Visual feedback during interaction. More...
 
IlUShort getButton () const
 Gets the button used by the interactor.
 
virtual IlBoolean handleEvent (IlvEvent &event)
 Handles keyboard and mouse events. More...
 
void setButton (IlUShort b)
 Sets the mouse button used by the interactor. More...
 
void useDefaultTransitionScheduler (IlBoolean value=IlTrue, IlUInt duration=1000)
 Tells the interactor whether to use the default transition scheduler to translate the view. More...
 
- Public Member Functions inherited from IlvManagerViewInteractor
 IlvManagerViewInteractor (IlvManager *manager, IlvView *view)
 Initializes a new IlvManagerViewInteractor. More...
 
virtual void abort ()
 Aborts the interaction. More...
 
virtual void ensureVisible (const IlvPoint &point)
 Ensures the visibility of a given location. More...
 
IlvDisplaygetDisplay () const
 Returns the display of the manager view. More...
 
IlvManagergetManager () const
 Returns the manager. More...
 
IlvTransformergetTransformer () const
 Returns the transformer used with the manager view. More...
 
IlvViewgetView () const
 Returns the manager view. More...
 
virtual void handleExpose (IlvRegion *clip=0)
 Called when the manager view receives an expose event. More...
 
virtual void init ()
 Initialization, when the interactor is attached to a view. More...
 

Detailed Description

Manager interactor class.

Library: ilvmgr

Use this class to translate a view.

See also
IlvManager, IlvView, IlvTransformer.

Constructor & Destructor Documentation

◆ IlvMakeMoveInteractor()

IlvMakeMoveInteractor::IlvMakeMoveInteractor ( IlvManager manager,
IlvView view,
unsigned short  button = IlvLeftButton 
)

Constructor.

Initializes a new instance of the IlvMakeMoveInteractor class. Lets you specify the mouse button to use during the interaction.

Parameters
managerThe manager.
viewThe manager view.
buttonThe mouse button to use.

Member Function Documentation

◆ doIt()

virtual void IlvMakeMoveInteractor::doIt ( IlvPos  dx,
IlvPos  dy 
)
virtual

Action performed to finalize the interaction.

Translates the view by the specified offsets.

Parameters
dxHorizontal translation offset.
dyVertical translation offset.

◆ drawGhost()

virtual void IlvMakeMoveInteractor::drawGhost ( )
virtual

Visual feedback during interaction.

Draws a rectangle in XOR mode. The rectangle has the size of the client area of the view, showing where the translated view would be.

Reimplemented from IlvManagerViewInteractor.

◆ handleEvent()

virtual IlBoolean IlvMakeMoveInteractor::handleEvent ( IlvEvent event)
virtual

Handles keyboard and mouse events.

Parameters
eventThe event to handle.
Returns
IlTrue if the event is consumed, IlFalse otherwise.

Implements IlvManagerViewInteractor.

◆ setButton()

void IlvMakeMoveInteractor::setButton ( IlUShort  b)

Sets the mouse button used by the interactor.

Parameters
bSpecifies the mouse button to use.

◆ useDefaultTransitionScheduler()

void IlvMakeMoveInteractor::useDefaultTransitionScheduler ( IlBoolean  value = IlTrue,
IlUInt  duration = 1000 
)

Tells the interactor whether to use the default transition scheduler to translate the view.

Parameters
valueA Boolean value specifying whether to use or not the default transition scheduler to translate the view. If value is IlFalse, no transition scheduler will be used.
durationThe duration that the transition will take to complete. The value is a number of milliseconds.