CIvfSelectionHandler Class Reference

#include <ivfwidget/IvfSelectionHandler.h>

Inheritance diagram for CIvfSelectionHandler:

CIvfHandlerBase CIvfMouseDownEvent CIvfMouseMoveEvent CIvfMouseUpEvent CIvfBase CIvfRefCountBase CIvfRTTIBase List of all members.

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)

Detailed Description

Selection handler

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.

Examples:

handlers.cpp.

Definition at line 87 of file IvfSelectionHandler.h.


Constructor & Destructor Documentation

CIvfSelectionHandler::CIvfSelectionHandler CIvfWidgetBase widget,
CIvfScene scene
 

Class constructor

Parameters:
widget Reference to a CIvfWidgetBase instance.
scene Reference to a CIvfScene instance containing the complete scene graph setup.


Member Function Documentation

virtual void CIvfSelectionHandler::onMouseDown int  x,
int  y
[virtual]
 

onMouseUp method

The onMouse method is called when the mouse button is released.

Reimplemented from CIvfMouseDownEvent.

virtual void CIvfSelectionHandler::onMouseMove int  x,
int  y
[virtual]
 

onMouseMove method

The onMouseMove method is called whenever the mouse is moved in the window.

Reimplemented from CIvfMouseMoveEvent.

virtual void CIvfSelectionHandler::onMouseUp int  x,
int  y
[virtual]
 

onMouseMove method

The onMouseMove method is called whenever the mouse is moved in the window.

Reimplemented from CIvfMouseUpEvent.

void CIvfSelectionHandler::setHighlightEvent CIvfHighlightEvent event  ) 
 

Assign highlight event

void CIvfSelectionHandler::setMultipleSelectionEvent CIvfMultipleSelectionEvent event  ) 
 

Assign multiple selection event

void CIvfSelectionHandler::setSingleSelectionEvent CIvfSingleSelectionEvent event  ) 
 

Assign single selection event


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 15:36:57 2006 for Interactive Visualisation Framework - Ivf++ by  doxygen 1.4.6-NO