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 (bool abort=false) |
implement this in derived classes More... | |
virtual | ~PolyPickerSelection () |
Public Member Functions inherited from Gui::BaseMouseSelection | |
BaseMouseSelection () | |
virtual | ~BaseMouseSelection () |
Public Member Functions inherited from Gui::AbstractMouseSelection | |
AbstractMouseSelection () | |
const std::vector< SbVec2s > & | getPositions () const |
void | grabMouseModel (Gui::View3DInventorViewer *) |
virtual void | initialize ()=0 |
implement this in derived classes More... | |
void | redraw () |
void | releaseMouseModel (bool abort=false) |
SelectionRole | selectedRole () const |
virtual void | terminate (bool abort=false)=0 |
implement this in derived classes More... | |
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 Member Functions inherited from Gui::AbstractMouseSelection |
Protected Attributes | |
bool | lastConfirmed |
Gui::Polyline | polyline |
Protected Attributes inherited from Gui::AbstractMouseSelection | |
QCursor | m_cPrevCursor |
int | m_iXold |
int | m_iYold |
int | m_iXnew |
int | m_iYnew |
SelectionRole | m_selectedRole |
Additional Inherited Members | |
Public Types inherited from Gui::AbstractMouseSelection | |
enum | { Continue =0 , Restart =1 , Finish =2 , Cancel =3 , Ignore =4 } |
The poly picker mouse selection class Create a polygon.
PolyPickerSelection::PolyPickerSelection | ( | ) |
References lastConfirmed.
|
virtual |
|
protectedvirtual |
draw the polygon
Reimplemented from Gui::AbstractMouseSelection.
Referenced by locationEvent(), and Gui::FreehandSelection::locationEvent().
|
virtual |
implement this in derived classes
Implements Gui::AbstractMouseSelection.
References Gui::View3DInventorViewer::Image, lastConfirmed, polyline, and Gui::Polyline::setViewer().
|
protectedvirtual |
Reimplemented from Gui::AbstractMouseSelection.
References Gui::AbstractMouseSelection::Continue.
|
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().
|
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().
|
protectedvirtual |
Reimplemented in Gui::PolyClipSelection, and Gui::FreehandSelection.
References Gui::AbstractMouseSelection::Cancel, Gui::AbstractMouseSelection::Finish, Gui::AbstractMouseSelection::getPositions(), and Gui::AbstractMouseSelection::Restart.
Referenced by mouseButtonEvent().
void PolyPickerSelection::setColor | ( | float | r, |
float | g, | ||
float | b, | ||
float | a = 1.0 |
||
) |
References polyline, and Gui::Polyline::setColor().
Referenced by MeshGui::MeshSelection::prepareFreehandSelection().
void PolyPickerSelection::setLineWidth | ( | float | l | ) |
References polyline, and Gui::Polyline::setLineWidth().
Referenced by MeshGui::MeshSelection::prepareFreehandSelection().
|
virtual |
implement this in derived classes
Implements Gui::AbstractMouseSelection.
References Gui::View3DInventorViewer::Native, and polyline.
Referenced by addonmanager_workers.CacheMacroCode::update_and_advance().
|
protected |
Referenced by initialize(), locationEvent(), mouseButtonEvent(), and PolyPickerSelection().
|
protected |
Referenced by initialize(), locationEvent(), Gui::FreehandSelection::locationEvent(), mouseButtonEvent(), Gui::FreehandSelection::mouseButtonEvent(), Gui::FreehandSelection::setClosed(), setColor(), setLineWidth(), terminate(), automotive_design.advanced_face::wr10(), and config_control_design.advanced_face::wr10().