IntelliPhoto  0.4
IntelliShapedImage.h
Go to the documentation of this file.
1 #ifndef INTELLISHAPE_H
2 #define INTELLISHAPE_H
3 
5 
7  friend IntelliTool;
8 protected:
9 
10  std::vector<QPoint> polygonData;
11 public:
12  IntelliShapedImage(int weight, int height);
13  virtual ~IntelliShapedImage() override;
14 
15  virtual void calculateVisiblity() override;
16 
17  //returns the filtered output
18  virtual QImage getDisplayable(const QSize& displaySize, int alpha=255) override;
19  virtual QImage getDisplayable(int alpha=255) override;
20 
21  //gets a copy of the image !allocated
22  virtual IntelliImage* getDeepCopy() override;
23  virtual std::vector<QPoint> getPolygonData() override{return polygonData;}
24 
25  //sets the data for the visible image
26  virtual void setPolygon(const std::vector<QPoint>& polygonData) override;
27 };
28 
29 #endif
IntelliShapedImage::getDisplayable
virtual QImage getDisplayable(const QSize &displaySize, int alpha=255) override
Definition: IntelliShapedImage.cpp:62
IntelliShapedImage
Definition: IntelliShapedImage.h:6
IntelliShapedImage::getDeepCopy
virtual IntelliImage * getDeepCopy() override
Definition: IntelliShapedImage.cpp:19
IntelliRasterImage.h
IntelliTool
Definition: IntelliTool.h:10
IntelliShapedImage::getPolygonData
virtual std::vector< QPoint > getPolygonData() override
Definition: IntelliShapedImage.h:23
IntelliImage
Definition: IntelliImage.h:18
IntelliShapedImage::polygonData
std::vector< QPoint > polygonData
Definition: IntelliShapedImage.h:10
IntelliShapedImage::IntelliShapedImage
IntelliShapedImage(int weight, int height)
Definition: IntelliShapedImage.cpp:7
IntelliShapedImage::~IntelliShapedImage
virtual ~IntelliShapedImage() override
Definition: IntelliShapedImage.cpp:11
IntelliRasterImage
Definition: IntelliRasterImage.h:6
IntelliShapedImage::calculateVisiblity
virtual void calculateVisiblity() override
Definition: IntelliShapedImage.cpp:26
IntelliShapedImage::setPolygon
virtual void setPolygon(const std::vector< QPoint > &polygonData) override
Definition: IntelliShapedImage.cpp:74