The selection mouse model class Draws a rectangle for selection. More...
#include <MouseSelection.h>
Public Member Functions | |
virtual void initialize () | |
implement this in derived classes More... | |
RubberbandSelection () | |
void setColor (float r, float g, float b, float a=1.0) | |
virtual void terminate () | |
implement this in derived classes More... | |
virtual ~RubberbandSelection () | |
![]() | |
BaseMouseSelection () | |
virtual ~BaseMouseSelection () | |
![]() | |
AbstractMouseSelection () | |
const std::vector< SbVec2s > & getPositions () const | |
void grabMouseModel (Gui::View3DInventorViewer *) | |
void redraw () | |
void releaseMouseModel (void) | |
SelectionRole selectedRole () const | |
virtual ~AbstractMouseSelection (void) | |
int handleEvent (const SoEvent *const ev, const SbViewportRegion &vp) | |
Protected Member Functions | |
virtual void draw () | |
draw the rectangle More... | |
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) | |
![]() |
Protected Attributes | |
Gui::Rubberband rubberband | |
![]() | |
QCursor m_cPrevCursor | |
int m_iXold | |
int m_iYold | |
int m_iXnew | |
int m_iYnew | |
SelectionRole m_selectedRole | |
Additional Inherited Members | |
![]() | |
enum { Continue =0, Restart =1, Finish =2, Cancel =3, Ignore =4 } | |
Detailed Description
The selection mouse model class Draws a rectangle for selection.
Constructor & Destructor Documentation
◆ RubberbandSelection()
RubberbandSelection::RubberbandSelection | ( | ) |
References rubberband, and Gui::Rubberband::setColor().
◆ ~RubberbandSelection()
|
virtual |
Member Function Documentation
◆ draw()
|
protectedvirtual |
◆ initialize()
|
virtual |
implement this in derived classes
Implements Gui::AbstractMouseSelection.
References Gui::View3DInventorViewer::Image, rubberband, Gui::Rubberband::setViewer(), and Gui::Rubberband::setWorking().
◆ keyboardEvent()
|
protectedvirtual |
Reimplemented from Gui::AbstractMouseSelection.
References Gui::AbstractMouseSelection::Continue.
◆ locationEvent()
|
protectedvirtual |
Reimplemented from Gui::AbstractMouseSelection.
References Gui::AbstractMouseSelection::Continue, draw(), Gui::AbstractMouseSelection::m_iXnew, Gui::AbstractMouseSelection::m_iXold, Gui::AbstractMouseSelection::m_iYnew, Gui::AbstractMouseSelection::m_iYold, rubberband, and Gui::Rubberband::setCoords().
◆ mouseButtonEvent()
|
protectedvirtual |
Reimplemented from Gui::AbstractMouseSelection.
References Gui::AbstractMouseSelection::Continue, Gui::AbstractMouseSelection::Finish, Gui::AbstractMouseSelection::m_iXnew, Gui::AbstractMouseSelection::m_iXold, Gui::AbstractMouseSelection::m_iYnew, Gui::AbstractMouseSelection::m_iYold, Gui::AbstractMouseSelection::releaseMouseModel(), rubberband, and Gui::Rubberband::setWorking().
◆ setColor()
void RubberbandSelection::setColor | ( | float | r, |
float | g, | ||
float | b, | ||
float | a = 1.0 |
||
) |
References rubberband, and Gui::Rubberband::setColor().
◆ terminate()
|
virtual |
implement this in derived classes
Implements Gui::AbstractMouseSelection.
Reimplemented in Gui::BoxZoomSelection.
References Gui::View3DInventorViewer::Native, and rubberband.
Referenced by Gui::BoxZoomSelection::terminate().
Member Data Documentation
◆ rubberband
|
protected |
The documentation for this class was generated from the following files:
- src/Gui/MouseSelection.h
- src/Gui/MouseSelection.cpp