Gui::PolyPickerSelection Class Reference

The poly picker mouse selection class Create a polygon. More...

#include <MouseSelection.h>

Inheritance diagram for Gui::PolyPickerSelection:
Gui::BaseMouseSelection Gui::AbstractMouseSelection Gui::PolyClipSelection

List of all members.

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

Detailed Description

The poly picker mouse selection class Create a polygon.

Author:
Werner Mayer

Definition at line 116 of file MouseSelection.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

void PolyPickerSelection::draw (  )  [protected, virtual]
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]
int PolyPickerSelection::mouseButtonEvent ( const SoMouseButtonEvent *const   e,
const QPoint &  pos 
) [protected, virtual]
int PolyPickerSelection::popupMenu (  )  [protected, virtual]
void PolyPickerSelection::terminate (  )  [virtual]

do nothing

Implements Gui::AbstractMouseSelection.

Definition at line 256 of file MouseSelection.cpp.


Member Data Documentation

std::vector<QPoint> Gui::PolyPickerSelection::_cNodeVector [protected]

Definition at line 137 of file MouseSelection.h.

Referenced by draw(), and mouseButtonEvent().

Definition at line 139 of file MouseSelection.h.

Referenced by draw(), locationEvent(), mouseButtonEvent(), and PolyPickerSelection().

Definition at line 138 of file MouseSelection.h.

Referenced by draw(), mouseButtonEvent(), and PolyPickerSelection().

Definition at line 138 of file MouseSelection.h.

Referenced by PolyPickerSelection().


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:00 2011 for FreeCAD by  doxygen 1.6.1