NDEVR
API Documentation
WidgetMouseController

Allows the user to click a 3D object and have it converted into a rendering click. More...

Inheritance diagram for WidgetMouseController:
[legend]
Collaboration diagram for WidgetMouseController:
[legend]

Public Member Functions

 WidgetMouseController (QWidgetModel *model)
 Constructs a mouse controller that forwards 3D clicks to a QWidgetModel.
bool processMouseEvent (const MouseEvent &event, DesignObjectLookup *lookup, SelectionInfo &info)
 Processes a raw mouse event and converts it to a widget click.
virtual bool processMouseEvent (MouseControllerEvent &event, SelectionInfo &info) override
 Processes a mouse controller event and converts it to a widget click.

Protected Attributes

QWidgetModelm_widget
 The widget model receiving forwarded events.

Detailed Description

Allows the user to click a 3D object and have it converted into a rendering click.


Definition at line 70 of file QTWidgetModel.h.

Constructor & Destructor Documentation

◆ WidgetMouseController()

WidgetMouseController::WidgetMouseController ( QWidgetModel * model)

Constructs a mouse controller that forwards 3D clicks to a QWidgetModel.

Parameters
[in]modelThe widget model to forward events to.

Member Function Documentation

◆ processMouseEvent() [1/2]

bool WidgetMouseController::processMouseEvent ( const MouseEvent & event,
DesignObjectLookup * lookup,
SelectionInfo & info )

Processes a raw mouse event and converts it to a widget click.

Parameters
[in]eventThe mouse event.
[in]lookupThe design object lookup.
[in]infoThe selection information.
Returns
True if the event was handled.

◆ processMouseEvent() [2/2]

virtual bool WidgetMouseController::processMouseEvent ( MouseControllerEvent & event,
SelectionInfo & info )
overridevirtual

Processes a mouse controller event and converts it to a widget click.

Parameters
[in]eventThe mouse controller event.
[in]infoThe selection information.
Returns
True if the event was handled.

Implements MouseControllerBase.


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