IntelliPhoto 0.5

IntelliShapedImage.h
Go to the documentation of this file.
1 #ifndef INTELLISHAPE_H
2 #define INTELLISHAPE_H
3
4 #include "Image/IntelliRasterImage.h"
5 #include <vector>
6 #include "IntelliHelper/IntelliHelper.h"
7
11 class IntelliShapedImage : public IntelliRasterImage {
12 friend IntelliTool;
13 private:
17 std::vector<Triangle> triangles;
18
22 virtual void calculateVisiblity() override;
23 protected:
24
28 std::vector<QPoint> polygonData;
29 public:
35 IntelliShapedImage(int weight, int height);
36
40 virtual ~IntelliShapedImage() override;
41
48 virtual QImage getDisplayable(const QSize& displaySize, int alpha=255) override;
49
55 virtual QImage getDisplayable(int alpha=255) override;
56
61 virtual IntelliImage* getDeepCopy() override;
62
67 virtual std::vector<QPoint> getPolygonData() override {
68 return polygonData;
69 }
70
75 virtual void setPolygon(const std::vector<QPoint>& polygonData) override;
76 };
77
78 #endif
IntelliShapedImage::getDisplayable
virtual QImage getDisplayable(const QSize &displaySize, int alpha=255) override
A function returning the displayable ImageData in a requested transparence and size.
Definition: IntelliShapedImage.cpp:54
IntelliHelper.h
IntelliShapedImage
The IntelliShapedImage manages a Shapedimage.
Definition: IntelliShapedImage.h:11
IntelliShapedImage::getDeepCopy
virtual IntelliImage * getDeepCopy() override
A function that copys all that returns a [allocated] Image.
Definition: IntelliShapedImage.cpp:19
IntelliRasterImage.h
IntelliTool
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:13
IntelliShapedImage::getPolygonData
virtual std::vector< QPoint > getPolygonData() override
A function that returns the Polygondata if existent.
Definition: IntelliShapedImage.h:67
IntelliImage
An abstract class which manages the basic IntelliImage operations.
Definition: IntelliImage.h:24
IntelliShapedImage::polygonData
std::vector< QPoint > polygonData
The Vertices of The Polygon. Needs to be a planar Polygon.
Definition: IntelliShapedImage.h:28
IntelliShapedImage::IntelliShapedImage
IntelliShapedImage(int weight, int height)
The Construcor of the IntelliShapedImage. Given the Image dimensions.
Definition: IntelliShapedImage.cpp:7
IntelliShapedImage::~IntelliShapedImage
virtual ~IntelliShapedImage() override
An Destructor.
Definition: IntelliShapedImage.cpp:11
IntelliRasterImage
The IntelliRasterImage manages a Rasterimage.
Definition: IntelliRasterImage.h:9
IntelliShapedImage::setPolygon
virtual void setPolygon(const std::vector< QPoint > &polygonData) override
A function that sets the data of the visible Polygon.
Definition: IntelliShapedImage.cpp:66