IntelliPhoto  1
IntelliShapedImage.h
Go to the documentation of this file.
1 #ifndef INTELLISHAPE_H
2 #define INTELLISHAPE_H
3 
5 #include <vector>
6 
7 //for unit testing
8 class UnitTest;
9 
14 friend UnitTest;
15 friend IntelliTool;
16 private:
20 std::vector<Triangle> triangles;
21 
25 virtual void calculateVisiblity() override;
26 protected:
27 
31 std::vector<QPoint> polygonData;
32 public:
39 IntelliShapedImage(int width, int height, bool fastRendererOn);
40 
44 virtual ~IntelliShapedImage() override;
45 
52 virtual QImage getDisplayable(const QSize& displaySize, int alpha = 255) override;
53 
59 virtual QImage getDisplayable(int alpha = 255) override;
60 
65 virtual IntelliImage* getDeepCopy() override;
66 
71 virtual std::vector<QPoint> getPolygonData() override {
72  return polygonData;
73 }
74 
79 virtual void setPolygon(const std::vector<QPoint>& polygonData) override;
80 
81 
86 virtual std::vector<QPoint> getPolygon() override;
87 };
88 
89 
90 #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:69
IntelliShapedImage::getPolygon
virtual std::vector< QPoint > getPolygon() override
getPolygon
Definition: IntelliShapedImage.cpp:114
IntelliShapedImage
The IntelliShapedImage manages a Shapedimage.
Definition: IntelliShapedImage.h:13
IntelliShapedImage::getDeepCopy
virtual IntelliImage * getDeepCopy() override
A function that copys all that returns a [allocated] Image.
Definition: IntelliShapedImage.cpp:20
IntelliRasterImage.h
IntelliTool
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:17
IntelliShapedImage::getPolygonData
virtual std::vector< QPoint > getPolygonData() override
A function that returns the Polygondata if existent.
Definition: IntelliShapedImage.h:71
UnitTest
Definition: mainUnitTest.cpp:8
IntelliImage
An abstract class which manages the basic IntelliImage operations.
Definition: IntelliImage.h:30
IntelliShapedImage::polygonData
std::vector< QPoint > polygonData
The Vertices of The Polygon. Needs to be a planar Polygon.
Definition: IntelliShapedImage.h:31
IntelliShapedImage::IntelliShapedImage
IntelliShapedImage(int width, int height, bool fastRendererOn)
The Construcor of the IntelliShapedImage. Given the Image dimensions.
Definition: IntelliShapedImage.cpp:7
IntelliShapedImage::~IntelliShapedImage
virtual ~IntelliShapedImage() override
An Destructor.
Definition: IntelliShapedImage.cpp:12
IntelliRasterImage
The IntelliRasterImage manages a RASTERIMAGE.
Definition: IntelliRasterImage.h:12
IntelliShapedImage::setPolygon
virtual void setPolygon(const std::vector< QPoint > &polygonData) override
A function that sets the data of the visible Polygon.
Definition: IntelliShapedImage.cpp:87