Go to the documentation of this file.
3 #include "QInputDialog"
14 void IntelliToolRectangle::drawRectangle(QPoint otherCorner){
15 int xMin = std::min(originCorner.x(), otherCorner.x());
16 int xMax = std::max(originCorner.x(), otherCorner.x());
18 int yMin = std::min(originCorner.y(), otherCorner.y());
19 int yMax = std::max(originCorner.y(), otherCorner.y());
23 for(
int y = yMin; y<=yMax; y++) {
42 this->originCorner = QPoint(x,y);
43 drawRectangle(originCorner);
QColor getFirstColor() const
A function to read the primary selected color.
virtual void drawLine(const QPoint &p1, const QPoint &p2, const QColor &color, const int &penWidth)
A function that draws a line between two given points in a given color.
The PaintingArea class manages the methods and stores information about the current painting area,...
QColor getSecondColor() const
A function to read the secondary selected color.
The IntelliColorPicker manages the selected colors for one whole project.
IntelliImage * image
image - Stores the imageData of the current LayerObject.
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.
virtual void drawPlain(const QColor &color)
A function that clears the whole image in a given Color.