Pencil2D  ff90c0872e88be3bf81c548cd60f01983012ec49
Pencil2D is an animation software for both bitmap and vector graphics. It is free, multi-platform, and open source.
 All Classes Functions
Public Member Functions | Protected Attributes | List of all members
BrushTool Class Reference
+ Inheritance diagram for BrushTool:

Public Member Functions

 BrushTool (QObject *parent=0)
 
ToolType type () override
 
void loadSettings () override
 
QCursor cursor () override
 
void mouseMoveEvent (QMouseEvent *) override
 
void mousePressEvent (QMouseEvent *) override
 
void mouseReleaseEvent (QMouseEvent *) override
 
void adjustPressureSensitiveProperties (qreal pressure, bool mouseDevice) override
 
void drawStroke ()
 
void paintVectorStroke ()
 
void paintBitmapStroke ()
 
void paintAt (QPointF point)
 
void setWidth (const qreal width) override
 
void setFeather (const qreal feather) override
 
void setUseFeather (const bool usingFeather) override
 
void setPressure (const bool pressure) override
 
void setInvisibility (const bool invisibility) override
 
void setAA (const int useAA) override
 
void setInpolLevel (const int level) override
 
- Public Member Functions inherited from StrokeTool
 StrokeTool (QObject *parent=0)
 
void startStroke ()
 
void drawStroke ()
 
void endStroke ()
 
bool keyPressEvent (QKeyEvent *event) override
 
bool keyReleaseEvent (QKeyEvent *event) override
 
- Public Member Functions inherited from BaseTool
 BaseTool (QObject *parent=0)
 
void initialize (Editor *editor)
 
QString typeName ()
 
virtual void mouseDoubleClickEvent (QMouseEvent *)
 
virtual void startAdjusting (ToolPropertyType argSettingType, qreal argStep)
 
virtual void stopAdjusting ()
 
virtual void adjustCursor (qreal argOffsetX, ToolPropertyType type)
 
virtual void clear ()
 
QPixmap canvasCursor ()
 precision circular cursor: used for drawing a cursor within scribble area. More...
 
QPixmap quickSizeCursor ()
 precision circular cursor: used for drawing stroke size while adjusting More...
 
virtual void setBezier (const bool bezier_state)
 
virtual void setPreserveAlpha (const bool preserveAlpha)
 
virtual void setVectorMergeEnabled (const bool vectorMergeEnabled)
 
virtual void setTolerance (const int tolerance)
 
virtual void setUseFillContour (const bool useFillContour)
 
virtual void leavingThisTool ()
 
virtual void switchingLayers ()
 
QPointF getCurrentPixel ()
 
QPointF getCurrentPoint ()
 
QPointF getLastPixel ()
 
QPointF getLastPoint ()
 
QPointF getLastPressPixel ()
 
QPointF getLastPressPoint ()
 
bool isPropertyEnabled (ToolPropertyType t)
 

Protected Attributes

QPointF mLastBrushPoint
 
QPointF mMouseDownPoint
 
BitmapImage mImg
 
QColor mCurrentPressuredColor
 
qreal mOpacity
 
- Protected Attributes inherited from StrokeTool
bool mFirstDraw = false
 
QList< QPointF > mStrokePoints
 
QList< qreal > mStrokePressures
 
qreal mCurrentWidth = 0.0
 
qreal mCurrentPressure = 0.5
 
- Protected Attributes inherited from BaseTool
QHash< ToolPropertyType, bool > m_enabledProperties
 
EditormEditor = nullptr
 
ScribbleAreamScribbleArea = nullptr
 
StrokeManagerm_pStrokeManager = nullptr
 
qreal mAdjustmentStep = 0.0f
 

Additional Inherited Members

- Static Public Member Functions inherited from BaseTool
static QString TypeName (ToolType)
 
- Public Attributes inherited from BaseTool
Properties properties
 
- Static Public Attributes inherited from BaseTool
static ToolPropertyType assistedSettingType
 
static qreal OriginalSettingValue
 
static bool isAdjusting = false
 
- Protected Member Functions inherited from BaseTool
Editoreditor ()
 

Detailed Description

Definition at line 24 of file brushtool.h.


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