Go to the documentation of this file.
73 PaintingArea(
int newMaxWidth = 600,
int newMaxHeight = 600, QWidget*parent =
nullptr);
97 bool open(
const QString &filePath);
104 bool save(
const QString &filePath,
const char*fileFormat);
368 int offsetXDimension;
373 int offsetYDimension;
378 void selectLayerUp();
383 void selectLayerDown();
414 bool isSettingPolygon =
false;
434 std::vector<LayerObject> layerBundle;
439 int activeLayer = -1;
445 void drawLayers(
bool forSaving =
false);
452 bool createTempTopLayer(
int idx);
462 std::vector<std::vector<LayerObject> > history = {layerBundle};
467 int historyPresent = 0;
int getWidthOfActive()
The getWidthOfActive gets the horizontal dimensions of the active layer.
void createCircleTool()
createCircleTool creates a Circle Tool.
ImageType
The Types, which an Image can be.
int addLayerAt(int idx, int width, int height, int widthOffset=0, int heightOffset=0, ImageType type=ImageType::RASTERIMAGE)
The addLayerAt adds a layer to the current project/ painting area at a specific position in the layer...
void setRenderSettings(bool isFastRenderingOn)
setRenderSettings updates all Images to the new Rendersetting.
IntelliImage * getImageOfActiveLayer()
getImageOfActiveLayer returns the image of the active Layer.
void mouseReleaseEvent(QMouseEvent *event) override
mouseReleaseEvent handles a mouse released event
void createRectangleTool()
createRectangleTool creates a Rectangle Tool.
int getMaxWidth()
getMaxWidth gets the max width of the Canvas.
PaintingArea(int newMaxWidth=600, int newMaxHeight=600, QWidget *parent=nullptr)
PaintingArea is the constructor of the PaintingArea class, which initiates the working environment.
bool save(const QString &filePath, const char *fileFormat)
The save method is used for exporting the current project as one picture.
void setLayerAlpha(int idx, int alpha)
The setAlphaOfLayer method sets the alpha value of a specific layer.
std::vector< QPoint > getPolygonDataOfActiveLayer()
getPolygonDataOfActiveLayer get the polygon data of the active Layer.
The IntelliRenderSettings class which manages the render Settings.
void setLayerActive(int idx)
The setLayerToActive method marks a specific layer as active.
int widthOffset
widthOffset - Stores the number of pixles from the left side of the painting area.
int getMaxHeight()
getMaxHeight gets the max height of the Canvas.
void deleteLayer(int idx, bool isTool=false)
The deleteLayer method removes a layer at a given idx.
The IntelliPhotoGui base class handles the graphical user interface and events for the intelliPhoto p...
int heightOffset
heightOffset - Stores the number of pixles from the top of the painting area.
int getHeightOfActive()
The getHeightOfActive gets the vertical dimensions of the active layer.
void createPlainTool()
createPlainTool creates a Plain Tool.
void wheelEvent(QWheelEvent *event) override
wheelEvent handles a mouse wheel event
The PaintingArea class manages the methods and stores information about the current painting area,...
The LayerObject struct holds all the information needed to construct a layer.
void createPenTool()
createPenTool creates a Pen Tool.
void mousePressEvent(QMouseEvent *event) override
mousePressEvent handles a mouse pressed event.
int alpha
alpha - Stores the alpha value of the layer (default=255).
void drawPixelOntoActive(QColor color, QPoint point)
drawPixelOntoActive draws a pixel onto the image data of the active Layer.
int getIndexOfActiveLayer()
getIndexOfActiveLayer returns the index of athe active Layer.
void historyGoBack()
historyGoBack go back in hisotry
void createLineTool()
createLineTool creates a Line Tool.
void colorPickerSetSecondColor()
The colorPickerSetSecondColor calls the QTColorPicker to determine the secondary drawing color.
void colorPickerSetFirstColor()
The colorPickerSetFirstColor calls the QTColorPicker to determine the primary drawing color.
std::vector< LayerObject > * getLayerBundle()
getLayerBundle returns the real active layerbundle (care!)
int width
width - Stores the width of a layer in pixels.
~PaintingArea() override
This deconstructor is used to clear up the memory and remove the currently active window.
void mouseMoveEvent(QMouseEvent *event) override
mouseMoveEvent handles a mouse moved event
void slotDeleteActiveLayer()
The slotDeleteActiveLayer method handles the deletion of the active layer.
ImageType getTypeOfImageActiveLayer()
getTypeOfImageActiveLayer get the type of the active Layer.
bool open(const QString &filePath)
The open method is used for loading a picture into the current layer.
void createPolygonTool()
createPolygonTool creates a Polygon Tool.
void moveActiveLayer(int idx)
The moveActiveLayer moves the active layer to a specific position in the layer stack.
IntelliColorPicker colorPicker
colorPicker a class to manage Tool color.
int height
height - Stores the height of a layer in pixels.
void deleteAllLayers()
deleteAllLayers deletes all layers
QImage getImageDataOfActiveLayer()
getImageDataOfActiveLayer used to get the currents active imageData (if there isn't any active layer ...
void createFloodFillTool()
createFloodFillTool creates a Floodfill Tool.
void slotActivateLayer(int a)
The slotActivateLayer method handles the event of selecting one layer as active.
The IntelliColorPicker manages the selected colors for one whole project.
void setCanvasDimensions(int newMaxWidth, int newMaxHeight)
setCanvasDimensions sets the dimension of the Canvas
void paintEvent(QPaintEvent *event) override
paintEvent handles a painting event
bool getRenderSettings()
getRenderSettings updates all Images to the new Rendersetting.
IntelliImage * image
image - Stores the imageData of the current LayerObject.
IntelliToolsettings Toolsettings
Toolsettings - a class to manage Tool settings.
void setPolygon(int idx)
setPolygon is used for setting polygondata, it only works on RASTER images
void colorPickerSwapColors()
The colorPickerSwitchColor swaps the primary color with the secondary drawing color.
void movePositionActive(int x, int y)
The movePositionActive method moves the active layer to certain position.
An abstract class which manages the basic IntelliImage operations.
int addLayer(int width, int height, int widthOffset=0, int heightOffset=0, int alpha=255, ImageType type=ImageType::RASTERIMAGE)
The addLayer adds a layer to the current project/ painting area.
void historyGoForward()
historyGoForward a function to undo the return of the previous state of the project.
void historyadd()
historyadd adds an hisotry step
void setPolygonDataToActive(std::vector< QPoint > points)
setPolygonDataToActive sets polygondata to the active Layer.
void createGradientTool()
createGradientTool creates a Gradient Tool.