The poly picker mouse selection class Create a polygon. More...
#include <MouseSelection.h>
Public Member Functions | |
virtual void | initialize () |
set the new mouse cursor | |
PolyPickerSelection () | |
virtual void | terminate () |
do nothing | |
virtual | ~PolyPickerSelection () |
Protected Member Functions | |
virtual void | draw () |
draw the polygon | |
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 | |
std::vector< QPoint > | _cNodeVector |
bool | m_bWorking |
int | m_iNodes |
int | m_iRadius |
The poly picker mouse selection class Create a polygon.
Definition at line 116 of file MouseSelection.h.
PolyPickerSelection::PolyPickerSelection | ( | ) |
Definition at line 242 of file MouseSelection.cpp.
References m_bWorking, m_iNodes, and m_iRadius.
PolyPickerSelection::~PolyPickerSelection | ( | ) | [virtual] |
Definition at line 295 of file MouseSelection.cpp.
void PolyPickerSelection::draw | ( | ) | [protected, virtual] |
draw the polygon
Reimplemented from Gui::AbstractMouseSelection.
Definition at line 261 of file MouseSelection.cpp.
References _cNodeVector, Gui::AbstractMouseSelection::_pcView3D, Gui::View3DInventorViewer::drawLine(), Py::int, m_bWorking, m_iNodes, Gui::AbstractMouseSelection::m_iXnew, Gui::AbstractMouseSelection::m_iXold, Gui::AbstractMouseSelection::m_iYnew, Gui::AbstractMouseSelection::m_iYold, Gui::AbstractMouseSelection::mustRedraw, and Sketcher::start.
Referenced by locationEvent().
void PolyPickerSelection::initialize | ( | ) | [virtual] |
set the new mouse cursor
Implements Gui::AbstractMouseSelection.
Definition at line 249 of file MouseSelection.cpp.
References Gui::AbstractMouseSelection::_pcView3D, cursor_cut_scissors, and draftTools::p.
int PolyPickerSelection::keyboardEvent | ( | const SoKeyboardEvent *const | e | ) | [protected, virtual] |
Reimplemented from Gui::AbstractMouseSelection.
Definition at line 406 of file MouseSelection.cpp.
References Gui::AbstractMouseSelection::Continue.
int PolyPickerSelection::locationEvent | ( | const SoLocation2Event *const | e, | |
const QPoint & | pos | |||
) | [protected, virtual] |
Reimplemented from Gui::AbstractMouseSelection.
Definition at line 373 of file MouseSelection.cpp.
References Gui::AbstractMouseSelection::_pcView3D, Gui::AbstractMouseSelection::Continue, draw(), m_bWorking, Gui::AbstractMouseSelection::m_iXnew, and Gui::AbstractMouseSelection::m_iYnew.
int PolyPickerSelection::mouseButtonEvent | ( | const SoMouseButtonEvent *const | e, | |
const QPoint & | pos | |||
) | [protected, virtual] |
Reimplemented from Gui::AbstractMouseSelection.
Definition at line 316 of file MouseSelection.cpp.
References _cNodeVector, Gui::AbstractMouseSelection::_pcView3D, Gui::AbstractMouseSelection::Cancel, Gui::AbstractMouseSelection::Continue, Gui::AbstractMouseSelection::Finish, m_bWorking, Gui::AbstractMouseSelection::m_cPrevCursor, m_iNodes, Gui::AbstractMouseSelection::m_iXnew, Gui::AbstractMouseSelection::m_iXold, Gui::AbstractMouseSelection::m_iYnew, Gui::AbstractMouseSelection::m_iYold, popupMenu(), Gui::AbstractMouseSelection::releaseMouseModel(), and Gui::AbstractMouseSelection::Restart.
int PolyPickerSelection::popupMenu | ( | ) | [protected, virtual] |
Reimplemented in Gui::PolyClipSelection.
Definition at line 299 of file MouseSelection.cpp.
References Gui::AbstractMouseSelection::Cancel, Gui::AbstractMouseSelection::Finish, Gui::AbstractMouseSelection::getPositions(), RobotExample::pos, and Gui::AbstractMouseSelection::Restart.
Referenced by mouseButtonEvent().
void PolyPickerSelection::terminate | ( | ) | [virtual] |
do nothing
Implements Gui::AbstractMouseSelection.
Definition at line 256 of file MouseSelection.cpp.
std::vector<QPoint> Gui::PolyPickerSelection::_cNodeVector [protected] |
Definition at line 137 of file MouseSelection.h.
Referenced by draw(), and mouseButtonEvent().
bool Gui::PolyPickerSelection::m_bWorking [protected] |
Definition at line 139 of file MouseSelection.h.
Referenced by draw(), locationEvent(), mouseButtonEvent(), and PolyPickerSelection().
int Gui::PolyPickerSelection::m_iNodes [protected] |
Definition at line 138 of file MouseSelection.h.
Referenced by draw(), mouseButtonEvent(), and PolyPickerSelection().
int Gui::PolyPickerSelection::m_iRadius [protected] |
Definition at line 138 of file MouseSelection.h.
Referenced by PolyPickerSelection().