Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

LensItem Class Reference

#include <lensdialog.h>

Collaboration diagram for LensItem:

Collaboration graph
[legend]

List of all members.

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

LensDialogdialog


Detailed Description

Definition at line 44 of file lensdialog.h.


Constructor & Destructor Documentation

LensItem::LensItem ( QRectF  geom,
LensDialog parent 
)

Definition at line 35 of file lensdialog.cpp.

References dialog, handle, scaling, and strength.

LensItem::~LensItem (  )  [inline]

Definition at line 48 of file lensdialog.h.


Member Function Documentation

void LensItem::setStrength ( double  s  ) 

Definition at line 190 of file lensdialog.cpp.

References strength.

void LensItem::updateEffect (  ) 

QPainterPath LensItem::lensDeform ( const QPainterPath &  source,
const QPointF &  offset,
double  m_radius,
double  s 
)

Definition at line 230 of file lensdialog.cpp.

Referenced by updateEffect().

void LensItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  item,
QWidget *  widget 
)

Definition at line 54 of file lensdialog.cpp.

References scaling.

QVariant LensItem::itemChange ( GraphicsItemChange  change,
const QVariant &  value 
) [protected]

void LensItem::mousePressEvent ( QGraphicsSceneMouseEvent *  event  )  [protected]

Definition at line 84 of file lensdialog.cpp.

References handle, mousePoint, and scaling.

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]

Definition at line 140 of file lensdialog.cpp.

References handle, and updateEffect().

void LensItem::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event  )  [protected]

Definition at line 147 of file lensdialog.cpp.

References p.

void LensItem::hoverMoveEvent ( QGraphicsSceneHoverEvent *  event  )  [protected]

Definition at line 157 of file lensdialog.cpp.

References p, and scaling.

void LensItem::hoverLeaveEvent ( QGraphicsSceneHoverEvent *   )  [protected]

Definition at line 185 of file lensdialog.cpp.


Member Data Documentation

Definition at line 53 of file lensdialog.h.

Referenced by LensItem(), LensDialog::lensSelected(), setStrength(), and updateEffect().

Definition at line 54 of file lensdialog.h.

Referenced by hoverMoveEvent(), LensItem(), mouseMoveEvent(), mousePressEvent(), and paint().

Definition at line 55 of file lensdialog.h.

Referenced by LensItem(), mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().

Definition at line 56 of file lensdialog.h.

Referenced by mouseMoveEvent(), and mousePressEvent().

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:
Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.