QElectroTech  0.8-dev
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ESEventAddArc Class Reference

The ESEventAddArc class This ESEvent manage creation of arc in an ElementScene. More...

#include <eseventaddarc.h>

Inheritance diagram for ESEventAddArc:
Inheritance graph
Collaboration diagram for ESEventAddArc:
Collaboration graph

Public Member Functions

 ESEventAddArc (ElementScene *scene)
 ESEventAddArc::ESEventAddArc. More...
 
 ~ESEventAddArc () override
 ESEventAddArc::~ESEventAddArc. More...
 
bool mousePressEvent (QGraphicsSceneMouseEvent *event) override
 ESEventAddPolygon::mousePressEvent. More...
 
bool mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
 ESEventAddArc::mouseMoveEvent. More...
 
bool mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 ESEventAddArc::mouseReleaseEvent. More...
 
bool keyPressEvent (QKeyEvent *event) override
 ESEventAddArc::keyPressEvent. 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 mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event)
 
virtual bool wheelEvent (QGraphicsSceneWheelEvent *event)
 
virtual bool KeyReleaseEvent (QKeyEvent *event)
 
virtual bool isRunning () const
 
virtual bool isFinish () const
 

Private Member Functions

void updateArc ()
 ESEventAddArc::updateArc Redraw the arc with curent value. More...
 

Private Attributes

PartArcm_arc
 
QPointF m_origin
 
QPointF m_mouse_pos
 
bool m_inverted
 

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 ESEventAddArc class This ESEvent manage creation of arc in an ElementScene.

Constructor & Destructor Documentation

◆ ESEventAddArc()

ESEventAddArc::ESEventAddArc ( ElementScene scene)

ESEventAddArc::ESEventAddArc.

Parameters
scene

◆ ~ESEventAddArc()

ESEventAddArc::~ESEventAddArc ( )
override

Member Function Documentation

◆ keyPressEvent()

bool ESEventAddArc::keyPressEvent ( QKeyEvent *  event)
overridevirtual

ESEventAddArc::keyPressEvent.

Parameters
event
Returns

Reimplemented from ESEventInterface.

Here is the call graph for this function:

◆ mouseMoveEvent()

bool ESEventAddArc::mouseMoveEvent ( QGraphicsSceneMouseEvent *  event)
overridevirtual

ESEventAddArc::mouseMoveEvent.

Parameters
event
Returns

Reimplemented from ESEventInterface.

Here is the call graph for this function:

◆ mousePressEvent()

bool ESEventAddArc::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
overridevirtual

ESEventAddPolygon::mousePressEvent.

Parameters
event
Returns

Reimplemented from ESEventInterface.

Here is the call graph for this function:

◆ mouseReleaseEvent()

bool ESEventAddArc::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
overridevirtual

ESEventAddArc::mouseReleaseEvent.

Parameters
event
Returns

Reimplemented from ESEventInterface.

◆ updateArc()

void ESEventAddArc::updateArc ( )
private

ESEventAddArc::updateArc Redraw the arc with curent value.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_arc

PartArc* ESEventAddArc::m_arc
private

◆ m_inverted

bool ESEventAddArc::m_inverted
private

◆ m_mouse_pos

QPointF ESEventAddArc::m_mouse_pos
private

◆ m_origin

QPointF ESEventAddArc::m_origin
private

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