IntelliPhoto  0.4
IntelliToolLine Class Reference

The IntelliToolFloodFill class represents a tool to draw a line. More...

#include <IntelliToolLine.h>

Inheritance diagram for IntelliToolLine:
Collaboration diagram for IntelliToolLine:

Public Member Functions

 IntelliToolLine (PaintingArea *Area, IntelliColorPicker *colorPicker)
 A constructor setting the general paintingArea and colorPicker. And reading in the lineWidth and lineStyle. More...
 
virtual ~IntelliToolLine () override
 An abstract Destructor. More...
 
virtual void onMouseRightPressed (int x, int y) override
 A function managing the right click pressed of a mouse. Clearing the canvas. More...
 
virtual void onMouseRightReleased (int x, int y) override
 A function managing the right click released of a mouse. More...
 
virtual void onMouseLeftPressed (int x, int y) override
 A function managing the left click pressed of a mouse. Sets the starting point of the line. More...
 
virtual void onMouseLeftReleased (int x, int y) override
 A function managing the left click released of a mouse. More...
 
virtual void onWheelScrolled (int value) override
 A function managing the scroll event. Changing the lineWidth relative to value. More...
 
virtual void onMouseMoved (int x, int y) override
 A function managing the mouse moved event. Drawing a Line from the startpoint to the current mouse position. More...
 
- Public Member Functions inherited from IntelliTool
 IntelliTool (PaintingArea *Area, IntelliColorPicker *colorPicker)
 A constructor setting the general Painting Area and colorPicker. More...
 
virtual ~IntelliTool ()=0
 An abstract Destructor. More...
 

Additional Inherited Members

- Protected Attributes inherited from IntelliTool
PaintingAreaArea
 A pointer to the general PaintingArea to interact with. More...
 
IntelliColorPickercolorPicker
 A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors. More...
 
LayerObjectActive
 A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or previews. More...
 
LayerObjectCanvas
 A pointer to the drawing canvas of the tool, work on this. More...
 
bool drawing = false
 A flag checking if the user is currently drawing or not. More...
 

Detailed Description

The IntelliToolFloodFill class represents a tool to draw a line.

Definition at line 18 of file IntelliToolLine.h.

Constructor & Destructor Documentation

◆ IntelliToolLine()

IntelliToolLine::IntelliToolLine ( PaintingArea Area,
IntelliColorPicker colorPicker 
)

A constructor setting the general paintingArea and colorPicker. And reading in the lineWidth and lineStyle.

Parameters
Area- The general paintingArea used by the project.
colorPicker- The general colorPicker used by the project.

Definition at line 6 of file IntelliToolLine.cpp.

◆ ~IntelliToolLine()

IntelliToolLine::~IntelliToolLine ( )
overridevirtual

An abstract Destructor.

Definition at line 13 of file IntelliToolLine.cpp.

Member Function Documentation

◆ onMouseLeftPressed()

void IntelliToolLine::onMouseLeftPressed ( int  x,
int  y 
)
overridevirtual

A function managing the left click pressed of a mouse. Sets the starting point of the line.

Parameters
x- The x coordinate relative to the active/canvas layer.
y- The y coordinate relative to the active/canvas layer.

Reimplemented from IntelliTool.

Definition at line 26 of file IntelliToolLine.cpp.

Here is the call graph for this function:

◆ onMouseLeftReleased()

void IntelliToolLine::onMouseLeftReleased ( int  x,
int  y 
)
overridevirtual

A function managing the left click released of a mouse.

Parameters
x- The x coordinate relative to the active/canvas layer.
y- The y coordinate relative to the active/canvas layer.

Reimplemented from IntelliTool.

Definition at line 33 of file IntelliToolLine.cpp.

Here is the call graph for this function:

◆ onMouseMoved()

void IntelliToolLine::onMouseMoved ( int  x,
int  y 
)
overridevirtual

A function managing the mouse moved event. Drawing a Line from the startpoint to the current mouse position.

Parameters
x- The x coordinate of the new mouse position.
y- The y coordinate of the new mouse position.

Reimplemented from IntelliTool.

Definition at line 45 of file IntelliToolLine.cpp.

Here is the call graph for this function:

◆ onMouseRightPressed()

void IntelliToolLine::onMouseRightPressed ( int  x,
int  y 
)
overridevirtual

A function managing the right click pressed of a mouse. Clearing the canvas.

Parameters
x- The x coordinate relative to the active/canvas layer.
y- The y coordinate relative to the active/canvas layer.

Reimplemented from IntelliTool.

Definition at line 18 of file IntelliToolLine.cpp.

Here is the call graph for this function:

◆ onMouseRightReleased()

void IntelliToolLine::onMouseRightReleased ( int  x,
int  y 
)
overridevirtual

A function managing the right click released of a mouse.

Parameters
x- The x coordinate relative to the active/canvas layer.
y- The y coordinate relative to the active/canvas layer.

Reimplemented from IntelliTool.

Definition at line 22 of file IntelliToolLine.cpp.

Here is the call graph for this function:

◆ onWheelScrolled()

void IntelliToolLine::onWheelScrolled ( int  value)
overridevirtual

A function managing the scroll event. Changing the lineWidth relative to value.

Parameters
value- The absolute the scroll has changed.

Reimplemented from IntelliTool.

Definition at line 37 of file IntelliToolLine.cpp.

Here is the call graph for this function:

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