Go to the documentation of this file.
27 void resizeImage(QImage*image,
const QSize &newSize);
52 virtual void drawPixel(
const QPoint &p1,
const QColor& color);
61 virtual void drawLine(
const QPoint &p1,
const QPoint& p2,
const QColor& color,
const int& penWidth);
69 virtual void drawPoint(
const QPoint &p1,
const QColor& color,
const int& penWidth);
75 virtual void drawPlain(
const QColor& color);
83 virtual QImage
getDisplayable(
const QSize& displaySize,
int alpha) = 0;
107 virtual void setPolygon(
const std::vector<QPoint>& polygonData) = 0;
114 return std::vector<QPoint>();
122 virtual bool loadImage(
const QString &fileName);
ImageType
The Types, which an Image can be.
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.
virtual ~IntelliImage()=0
An Abstract Destructor.
virtual void drawPixel(const QPoint &p1, const QColor &color)
A funtcion used to draw a pixel on the Image with the given Color.
virtual bool loadImage(const QString &fileName)
A function that loads and sclaes an image to the fitting dimensions.
virtual QImage getDisplayable(const QSize &displaySize, int alpha)=0
A function returning the displayable ImageData in a requested transparence and size.
virtual std::vector< QPoint > getPolygonData()
A function that returns the Polygondata if existent.
virtual void drawPoint(const QPoint &p1, const QColor &color, const int &penWidth)
A.
IntelliImage(int weight, int height)
The Construcor of the IntelliImage. Given the Image dimensions.
void resizeImage(QImage *image, const QSize &newSize)
virtual QColor getPixelColor(QPoint &point)
A function that returns the pixelcolor at a certain point.
QImage imageData
The underlying image data.
An abstract class which manages the basic IntelliImage operations.
virtual IntelliImage * getDeepCopy()=0
A function that copys all that returns a [allocated] Image.
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.
virtual void setPolygon(const std::vector< QPoint > &polygonData)=0
An abstract function that sets the data of the visible Polygon, if needed.