The poly picker mouse selection class Create a polygon. More...
#include <MouseSelection.h>
Public Member Functions | |
virtual void initialize () | |
implement this in derived classes More... | |
PolyPickerSelection () | |
void setColor (float r, float g, float b, float a=1.0) | |
void setLineWidth (float l) | |
virtual void terminate () | |
implement this in derived classes More... | |
virtual ~PolyPickerSelection () | |
![]() | |
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 polygon 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) | |
virtual int popupMenu () | |
![]() |
Protected Attributes | |
bool lastConfirmed | |
Gui::Polyline polyline | |
![]() | |
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 poly picker mouse selection class Create a polygon.
Constructor & Destructor Documentation
◆ PolyPickerSelection()
PolyPickerSelection::PolyPickerSelection | ( | ) |
References lastConfirmed.
◆ ~PolyPickerSelection()
|
virtual |
Member Function Documentation
◆ draw()
|
protectedvirtual |
draw the polygon
Reimplemented from Gui::AbstractMouseSelection.
Referenced by locationEvent(), and Gui::FreehandSelection::locationEvent().
◆ initialize()
|
virtual |
implement this in derived classes
Implements Gui::AbstractMouseSelection.
References Gui::View3DInventorViewer::Image, lastConfirmed, polyline, and Gui::Polyline::setViewer().
◆ keyboardEvent()
|
protectedvirtual |
Reimplemented from Gui::AbstractMouseSelection.
References Gui::AbstractMouseSelection::Continue.
◆ locationEvent()
|
protectedvirtual |
Reimplemented from Gui::AbstractMouseSelection.
Reimplemented in Gui::FreehandSelection.
References Gui::Polyline::addNode(), Gui::AbstractMouseSelection::Continue, draw(), Gui::Polyline::isWorking(), lastConfirmed, Gui::AbstractMouseSelection::m_iXnew, Gui::AbstractMouseSelection::m_iYnew, polyline, and Gui::Polyline::popNode().
◆ mouseButtonEvent()
|
protectedvirtual |
Reimplemented from Gui::AbstractMouseSelection.
Reimplemented in Gui::FreehandSelection.
References Gui::Polyline::addNode(), Gui::AbstractMouseSelection::Cancel, Gui::Polyline::clear(), Gui::AbstractMouseSelection::Continue, Gui::AbstractMouseSelection::Finish, Gui::Polyline::isWorking(), lastConfirmed, Gui::AbstractMouseSelection::m_cPrevCursor, Gui::AbstractMouseSelection::m_iXnew, Gui::AbstractMouseSelection::m_iXold, Gui::AbstractMouseSelection::m_iYnew, Gui::AbstractMouseSelection::m_iYold, polyline, popupMenu(), Gui::AbstractMouseSelection::releaseMouseModel(), Gui::AbstractMouseSelection::Restart, and Gui::Polyline::setWorking().
◆ popupMenu()
|
protectedvirtual |
Reimplemented in Gui::FreehandSelection, and Gui::PolyClipSelection.
References Gui::AbstractMouseSelection::Cancel, Gui::AbstractMouseSelection::Finish, Gui::AbstractMouseSelection::getPositions(), and Gui::AbstractMouseSelection::Restart.
Referenced by mouseButtonEvent().
◆ setColor()
void PolyPickerSelection::setColor | ( | float | r, |
float | g, | ||
float | b, | ||
float | a = 1.0 |
||
) |
References polyline, and Gui::Polyline::setColor().
Referenced by MeshGui::MeshSelection::prepareFreehandSelection().
◆ setLineWidth()
void PolyPickerSelection::setLineWidth | ( | float | l | ) |
References polyline, and Gui::Polyline::setLineWidth().
Referenced by MeshGui::MeshSelection::prepareFreehandSelection().
◆ terminate()
|
virtual |
implement this in derived classes
Implements Gui::AbstractMouseSelection.
References Gui::View3DInventorViewer::Native, and polyline.
Member Data Documentation
◆ lastConfirmed
|
protected |
Referenced by initialize(), locationEvent(), mouseButtonEvent(), and PolyPickerSelection().
◆ polyline
|
protected |
Referenced by initialize(), locationEvent(), Gui::FreehandSelection::locationEvent(), mouseButtonEvent(), Gui::FreehandSelection::mouseButtonEvent(), Gui::FreehandSelection::setClosed(), setColor(), setLineWidth(), terminate(), config_control_design.advanced_face::wr10(), and automotive_design.advanced_face::wr10().
The documentation for this class was generated from the following files:
- src/Gui/MouseSelection.h
- src/Gui/MouseSelection.cpp