LensItem Class Reference
#include <lensdialog.h>

Public Member Functions | |
| LensItem (QRectF geom, LensDialog *parent) | |
| ~LensItem () | |
| void | setStrength (double s) |
| void | updateEffect () |
| QPainterPath | lensDeform (const QPainterPath &source, const QPointF &offset, double m_radius, double s) |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *item, QWidget *widget) |
Public Attributes | |
| double | strength |
| double | scaling |
| int | handle |
| QPointF | mousePoint |
Protected Member Functions | |
| QVariant | itemChange (GraphicsItemChange change, const QVariant &value) |
| void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
| void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
| void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
| void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) |
| void | hoverMoveEvent (QGraphicsSceneHoverEvent *event) |
| void | hoverLeaveEvent (QGraphicsSceneHoverEvent *) |
Protected Attributes | |
| LensDialog * | dialog |
Detailed Description
Definition at line 44 of file lensdialog.h.
Constructor & Destructor Documentation
| LensItem::LensItem | ( | QRectF | geom, | |
| LensDialog * | parent | |||
| ) |
| LensItem::~LensItem | ( | ) | [inline] |
Definition at line 48 of file lensdialog.h.
Member Function Documentation
| void LensItem::setStrength | ( | double | s | ) |
| void LensItem::updateEffect | ( | ) |
Definition at line 212 of file lensdialog.cpp.
References dialog, lensDeform(), LensDialog::lensList, LensDialog::origPath, LensDialog::origPathItem, and strength.
Referenced by itemChange(), and mouseReleaseEvent().
| QPainterPath LensItem::lensDeform | ( | const QPainterPath & | source, | |
| const QPointF & | offset, | |||
| double | m_radius, | |||
| double | s | |||
| ) |
| void LensItem::paint | ( | QPainter * | painter, | |
| const QStyleOptionGraphicsItem * | item, | |||
| QWidget * | widget | |||
| ) |
| QVariant LensItem::itemChange | ( | GraphicsItemChange | change, | |
| const QVariant & | value | |||
| ) | [protected] |
Definition at line 195 of file lensdialog.cpp.
References dialog, LensDialog::lensSelected(), LensDialog::setLensPositionValues(), and updateEffect().
| void LensItem::mousePressEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected] |
| void LensItem::mouseMoveEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected] |
Definition at line 102 of file lensdialog.cpp.
References dialog, handle, LensDialog::lensSelected(), mousePoint, and scaling.
| void LensItem::mouseReleaseEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected] |
| void LensItem::hoverEnterEvent | ( | QGraphicsSceneHoverEvent * | event | ) | [protected] |
| void LensItem::hoverMoveEvent | ( | QGraphicsSceneHoverEvent * | event | ) | [protected] |
| void LensItem::hoverLeaveEvent | ( | QGraphicsSceneHoverEvent * | ) | [protected] |
Definition at line 185 of file lensdialog.cpp.
Member Data Documentation
| double LensItem::strength |
Definition at line 53 of file lensdialog.h.
Referenced by LensItem(), LensDialog::lensSelected(), setStrength(), and updateEffect().
| double LensItem::scaling |
Definition at line 54 of file lensdialog.h.
Referenced by hoverMoveEvent(), LensItem(), mouseMoveEvent(), mousePressEvent(), and paint().
| int LensItem::handle |
Definition at line 55 of file lensdialog.h.
Referenced by LensItem(), mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().
| QPointF LensItem::mousePoint |
LensDialog* LensItem::dialog [protected] |
Definition at line 65 of file lensdialog.h.
Referenced by itemChange(), LensItem(), mouseMoveEvent(), and updateEffect().
The documentation for this class was generated from the following files:
