The selection mouse model class Draws a rectangle for selection. More...
#include <MouseSelection.h>
Public Member Functions | |
virtual void | initialize () |
do nothing | |
RectangleSelection () | |
virtual void | terminate () |
do nothing | |
virtual | ~RectangleSelection () |
Protected Member Functions | |
virtual void | draw () |
draw the rectangle | |
virtual int | keyboardEvent (const SoKeyboardEvent *const e) |
virtual int | locationEvent (const SoLocation2Event *const e, const QPoint &pos) |
virtual int | mouseButtonEvent (const SoMouseButtonEvent *const e, const QPoint &pos) |
The selection mouse model class Draws a rectangle for selection.
Definition at line 166 of file MouseSelection.h.
RectangleSelection::RectangleSelection | ( | ) |
Definition at line 448 of file MouseSelection.cpp.
RectangleSelection::~RectangleSelection | ( | ) | [virtual] |
Definition at line 453 of file MouseSelection.cpp.
void RectangleSelection::draw | ( | ) | [protected, virtual] |
draw the rectangle
Reimplemented from Gui::AbstractMouseSelection.
Definition at line 465 of file MouseSelection.cpp.
References Gui::AbstractMouseSelection::_pcView3D, Gui::View3DInventorViewer::drawRect(), Gui::AbstractMouseSelection::m_iXnew, Gui::AbstractMouseSelection::m_iXold, Gui::AbstractMouseSelection::m_iYnew, and Gui::AbstractMouseSelection::m_iYold.
Referenced by locationEvent().
void RectangleSelection::initialize | ( | ) | [virtual] |
do nothing
Implements Gui::AbstractMouseSelection.
Definition at line 457 of file MouseSelection.cpp.
int RectangleSelection::keyboardEvent | ( | const SoKeyboardEvent *const | e | ) | [protected, virtual] |
Reimplemented from Gui::AbstractMouseSelection.
Definition at line 518 of file MouseSelection.cpp.
References Gui::AbstractMouseSelection::Continue.
int RectangleSelection::locationEvent | ( | const SoLocation2Event *const | e, | |
const QPoint & | pos | |||
) | [protected, virtual] |
Reimplemented from Gui::AbstractMouseSelection.
Definition at line 509 of file MouseSelection.cpp.
References Gui::AbstractMouseSelection::Continue, draw(), Gui::AbstractMouseSelection::m_iXnew, and Gui::AbstractMouseSelection::m_iYnew.
int RectangleSelection::mouseButtonEvent | ( | const SoMouseButtonEvent *const | e, | |
const QPoint & | pos | |||
) | [protected, virtual] |
Reimplemented from Gui::AbstractMouseSelection.
Definition at line 471 of file MouseSelection.cpp.
References Gui::AbstractMouseSelection::Continue, Gui::AbstractMouseSelection::Finish, Gui::AbstractMouseSelection::m_iXnew, Gui::AbstractMouseSelection::m_iXold, Gui::AbstractMouseSelection::m_iYnew, Gui::AbstractMouseSelection::m_iYold, and Gui::AbstractMouseSelection::releaseMouseModel().
void RectangleSelection::terminate | ( | ) | [virtual] |
do nothing
Implements Gui::AbstractMouseSelection.
Reimplemented in Gui::BoxZoomSelection.
Definition at line 461 of file MouseSelection.cpp.