Gui::PolyPickerSelection Class Reference

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
}
 

Detailed Description

The poly picker mouse selection class Create a polygon.

Author
Werner Mayer

Constructor & Destructor Documentation

◆ PolyPickerSelection()

PolyPickerSelection::PolyPickerSelection ( )

References lastConfirmed.

◆ ~PolyPickerSelection()

PolyPickerSelection::~PolyPickerSelection ( )
virtual

Member Function Documentation

◆ draw()

void PolyPickerSelection::draw ( )
protectedvirtual

draw the polygon

Reimplemented from Gui::AbstractMouseSelection.

Referenced by locationEvent(), and Gui::FreehandSelection::locationEvent().

◆ initialize()

void PolyPickerSelection::initialize ( )
virtual

implement this in derived classes

Implements Gui::AbstractMouseSelection.

References Gui::View3DInventorViewer::Image, lastConfirmed, polyline, and Gui::Polyline::setViewer().

◆ keyboardEvent()

int PolyPickerSelection::keyboardEvent ( const SoKeyboardEvent *const  e)
protectedvirtual

◆ locationEvent()

int PolyPickerSelection::locationEvent ( const SoLocation2Event *const  e,
const QPoint &  pos 
)
protectedvirtual

◆ mouseButtonEvent()

◆ popupMenu()

◆ setColor()

void PolyPickerSelection::setColor ( float  r,
float  g,
float  b,
float  a = 1.0 
)

◆ setLineWidth()

void PolyPickerSelection::setLineWidth ( float  l)

◆ terminate()

void PolyPickerSelection::terminate ( bool  abort = false)
virtual

Member Data Documentation

◆ lastConfirmed

bool Gui::PolyPickerSelection::lastConfirmed
protected

◆ polyline


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