QElectroTech  0.70
Public Member Functions | Private Attributes | List of all members
ESEventAddPolygon Class Reference

The ESEventAddPolygon class This ESEvent manage creation of polygon in an ElementScene. More...

#include <eseventaddpolygon.h>

Public Member Functions

 ESEventAddPolygon (ElementScene *scene)
 ESEventAddPolygon::ESEventAddPolygon. More...
 
 ~ESEventAddPolygon () override
 ESEventAddPolygon::~ESEventAddPolygon. More...
 
bool mousePressEvent (QGraphicsSceneMouseEvent *event) override
 ESEventAddPolygon::mousePressEvent. More...
 
bool mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
 ESEventAddPolygon::mouseMoveEvent. More...
 
bool mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 ESEventAddPolygon::mouseReleaseEvent. More...
 
bool mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) override
 ESEventAddPolygon::mouseDoubleClickEvent. More...
 
- Public Member Functions inherited from ESEventInterface
 ESEventInterface (ElementScene *scene)
 
virtual ~ESEventInterface ()
 ESEventInterface::~ESEventInterface Destructor. More...
 
void init ()
 ESEventInterface::init Init this event interface. More...
 
virtual bool wheelEvent (QGraphicsSceneWheelEvent *event)
 
virtual bool keyPressEvent (QKeyEvent *event)
 ESEventInterface::keyPressEvent By default, press escape key abort the curent action. More...
 
virtual bool KeyReleaseEvent (QKeyEvent *event)
 
virtual bool isRunning () const
 
virtual bool isFinish () const
 

Private Attributes

PartPolygonm_polygon
 

Additional Inherited Members

- Protected Member Functions inherited from ESEventInterface
void updateHelpCross (const QPointF &p)
 
- Protected Attributes inherited from ESEventInterface
ElementScenem_scene
 
QETElementEditorm_editor
 
QGraphicsLineItem * m_help_horiz
 
QGraphicsLineItem * m_help_verti
 
bool m_running
 
bool m_abort
 

Detailed Description

The ESEventAddPolygon class This ESEvent manage creation of polygon in an ElementScene.

Definition at line 31 of file eseventaddpolygon.h.

Constructor & Destructor Documentation

◆ ESEventAddPolygon()

ESEventAddPolygon::ESEventAddPolygon ( ElementScene scene)

ESEventAddPolygon::ESEventAddPolygon.

Parameters
scene

Definition at line 29 of file eseventaddpolygon.cpp.

◆ ~ESEventAddPolygon()

ESEventAddPolygon::~ESEventAddPolygon ( )
override

Member Function Documentation

◆ mouseDoubleClickEvent()

bool ESEventAddPolygon::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent *  event)
overridevirtual

◆ mouseMoveEvent()

bool ESEventAddPolygon::mouseMoveEvent ( QGraphicsSceneMouseEvent *  event)
overridevirtual

ESEventAddPolygon::mouseMoveEvent.

Parameters
event
Returns

Reimplemented from ESEventInterface.

Definition at line 70 of file eseventaddpolygon.cpp.

References m_polygon, ESEventInterface::m_scene, and ESEventInterface::updateHelpCross().

◆ mousePressEvent()

bool ESEventAddPolygon::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
overridevirtual

◆ mouseReleaseEvent()

bool ESEventAddPolygon::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
overridevirtual

ESEventAddPolygon::mouseReleaseEvent.

Parameters
event
Returns

Reimplemented from ESEventInterface.

Definition at line 83 of file eseventaddpolygon.cpp.

References m_polygon, ESEventInterface::m_running, and ESEventInterface::m_scene.

Member Data Documentation

◆ m_polygon

PartPolygon* ESEventAddPolygon::m_polygon
private

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