krita/ui

KisToolFreehand Class Reference

#include <kis_tool_freehand.h>

Inheritance diagram for KisToolFreehand:

List of all members.

Public Member Functions

EIGEN_MAKE_ALIGNED_OPERATOR_NEW KisToolFreehand (KoCanvasBase *canvas, const QCursor &cursor, const QString &transactionText)
virtual ~KisToolFreehand ()
virtual void customMoveEvent (KoPointerEvent *event)
virtual void keyPressEvent (QKeyEvent *event)
virtual void mouseMoveEvent (KoPointerEvent *e)
virtual void mousePressEvent (KoPointerEvent *e)
virtual void mouseReleaseEvent (KoPointerEvent *e)
virtual void setDirty (const QRegion &region)
virtual bool wantsAutoScroll ()

Protected Slots

void setAssistant (bool assistant)
void setSmooth (bool smooth)

Protected Member Functions

virtual void endPaint ()
virtual void endPan ()
virtual void initPaint (KoPointerEvent *e)
virtual void initPan (KoPointerEvent *e)
virtual void paint (QPainter &gc, const KoViewConverter &converter)
virtual void paintAt (const KisPaintInformation &pi)
virtual void paintBezierCurve (const KisPaintInformation &pi1, const QPointF &control1, const QPointF &control2, const KisPaintInformation &pi2)
virtual void paintLine (const KisPaintInformation &pi1, const KisPaintInformation &pi2)
virtual void pan (KoPointerEvent *e)

Protected Attributes

bool m_assistant
double m_dragDist
double m_magnetism
enumBrushMode m_mode
KisPainter * m_painter
bool m_paintIncremental
bool m_paintOnSelection
QPointF m_previousDrag
KisPaintInformation m_previousPaintInformation
QPointF m_previousTangent
bool m_smooth
double m_smoothness
KisPaintDeviceSP m_source
KisPaintDeviceSP m_target
KisLayerSP m_tempLayer
QString m_transactionText

Detailed Description

Definition at line 51 of file kis_tool_freehand.h.


Constructor & Destructor Documentation

KisToolFreehand::KisToolFreehand ( KoCanvasBase canvas,
const QCursor cursor,
const QString transactionText 
)

Definition at line 83 of file kis_tool_freehand.cc.

KisToolFreehand::~KisToolFreehand (  )  [virtual]

Definition at line 111 of file kis_tool_freehand.cc.


Member Function Documentation

void KisToolFreehand::customMoveEvent ( KoPointerEvent *  event  )  [virtual]

Definition at line 717 of file kis_tool_freehand.cc.

void KisToolFreehand::endPaint (  )  [protected, virtual]

Definition at line 452 of file kis_tool_freehand.cc.

void KisToolFreehand::endPan (  )  [protected, virtual]

Definition at line 711 of file kis_tool_freehand.cc.

void KisToolFreehand::initPaint ( KoPointerEvent *  e  )  [protected, virtual]

Definition at line 342 of file kis_tool_freehand.cc.

void KisToolFreehand::initPan ( KoPointerEvent *  e  )  [protected, virtual]

Definition at line 686 of file kis_tool_freehand.cc.

void KisToolFreehand::keyPressEvent ( QKeyEvent event  )  [virtual]

Definition at line 329 of file kis_tool_freehand.cc.

void KisToolFreehand::mouseMoveEvent ( KoPointerEvent *  event  )  [virtual]

reimplemented from superclass

Reimplemented from KisTool.

Definition at line 199 of file kis_tool_freehand.cc.

void KisToolFreehand::mousePressEvent ( KoPointerEvent *  event  )  [virtual]

reimplemented from superclass

Reimplemented from KisTool.

Definition at line 116 of file kis_tool_freehand.cc.

void KisToolFreehand::mouseReleaseEvent ( KoPointerEvent *  event  )  [virtual]

reimplemented from superclass

Reimplemented from KisToolPaint.

Definition at line 311 of file kis_tool_freehand.cc.

void KisToolFreehand::paint ( QPainter gc,
const KoViewConverter converter 
) [protected, virtual]

Reimplemented from KisToolPaint.

Definition at line 594 of file kis_tool_freehand.cc.

void KisToolFreehand::paintAt ( const KisPaintInformation &  pi  )  [protected, virtual]

Paint a single brush footprint on the current layer.

Definition at line 529 of file kis_tool_freehand.cc.

void KisToolFreehand::paintBezierCurve ( const KisPaintInformation &  pi1,
const QPointF control1,
const QPointF control2,
const KisPaintInformation &  pi2 
) [protected, virtual]

Definition at line 542 of file kis_tool_freehand.cc.

void KisToolFreehand::paintLine ( const KisPaintInformation &  pi1,
const KisPaintInformation &  pi2 
) [protected, virtual]

Paint a line between the specified positions on the current layer.

Definition at line 535 of file kis_tool_freehand.cc.

void KisToolFreehand::pan ( KoPointerEvent *  e  )  [protected, virtual]

Definition at line 694 of file kis_tool_freehand.cc.

void KisToolFreehand::setAssistant ( bool  assistant  )  [protected, slot]

Definition at line 588 of file kis_tool_freehand.cc.

void KisToolFreehand::setDirty ( const QRegion region  )  [virtual]

Definition at line 566 of file kis_tool_freehand.cc.

void KisToolFreehand::setSmooth ( bool  smooth  )  [protected, slot]

Definition at line 583 of file kis_tool_freehand.cc.

bool KisToolFreehand::wantsAutoScroll (  )  [virtual]

Definition at line 558 of file kis_tool_freehand.cc.


Member Data Documentation

bool KisToolFreehand::m_assistant [protected]

Definition at line 123 of file kis_tool_freehand.h.

double KisToolFreehand::m_dragDist [protected]

Definition at line 109 of file kis_tool_freehand.h.

double KisToolFreehand::m_magnetism [protected]

Definition at line 124 of file kis_tool_freehand.h.

Definition at line 119 of file kis_tool_freehand.h.

KisPainter* KisToolFreehand::m_painter [protected]

Definition at line 120 of file kis_tool_freehand.h.

Definition at line 111 of file kis_tool_freehand.h.

Definition at line 112 of file kis_tool_freehand.h.

Definition at line 108 of file kis_tool_freehand.h.

KisPaintInformation KisToolFreehand::m_previousPaintInformation [protected]

Definition at line 106 of file kis_tool_freehand.h.

Definition at line 107 of file kis_tool_freehand.h.

bool KisToolFreehand::m_smooth [protected]

Definition at line 121 of file kis_tool_freehand.h.

double KisToolFreehand::m_smoothness [protected]

Definition at line 122 of file kis_tool_freehand.h.

KisPaintDeviceSP KisToolFreehand::m_source [protected]

Definition at line 116 of file kis_tool_freehand.h.

KisPaintDeviceSP KisToolFreehand::m_target [protected]

Definition at line 114 of file kis_tool_freehand.h.

KisLayerSP KisToolFreehand::m_tempLayer [protected]

Definition at line 115 of file kis_tool_freehand.h.

Definition at line 118 of file kis_tool_freehand.h.


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