#include <ivfwidget/IvfSelectionHandler.h>
Inheritance diagram for CIvfSelectionHandler:
Public Member Functions | |
CIvfSelectionHandler (CIvfWidgetBase *widget, CIvfScene *scene) | |
IvfClassInfo ("CIvfSelectionHandler", CIvfHandlerBase) | |
void | setSingleSelectionEvent (CIvfSingleSelectionEvent *event) |
void | setMultipleSelectionEvent (CIvfMultipleSelectionEvent *event) |
void | setHighlightEvent (CIvfHighlightEvent *event) |
virtual void | doMouseUp (int x, int y) |
virtual void | doMouseMove (int x, int y) |
virtual void | doMouseDown (int x, int y) |
virtual void | onMouseMove (int x, int y) |
virtual void | onMouseUp (int x, int y) |
virtual void | onMouseDown (int x, int y) |
This class automatically handles OpenGL buffer selection. It can fire 3 kinds of events: onSelect which can be assigned to handle a simple selection of a single CIvfShape instance. onMultipleSelect which handles a selection with all objects located under the cursor. onHighlight for implementing highlighting of object under the cursor.
Definition at line 87 of file IvfSelectionHandler.h.
|
Class constructor
|
|
onMouseUp method The onMouse method is called when the mouse button is released. Reimplemented from CIvfMouseDownEvent. |
|
onMouseMove method The onMouseMove method is called whenever the mouse is moved in the window. Reimplemented from CIvfMouseMoveEvent. |
|
onMouseMove method The onMouseMove method is called whenever the mouse is moved in the window. Reimplemented from CIvfMouseUpEvent. |
|
Assign highlight event |
|
Assign multiple selection event |
|
Assign single selection event |