Go to the documentation of this file.
36 void resizeImage(QImage*image,
const QSize &newSize);
60 IntelliImage(
int width,
int height,
bool fastRendererOn);
73 virtual void drawPixel(
const QPoint &p1,
const QColor& color);
82 virtual void drawLine(
const QPoint &p1,
const QPoint& p2,
const QColor& color,
const int& penWidth);
90 virtual void drawPoint(
const QPoint &p1,
const QColor& color,
const int& penWidth);
96 virtual void drawPlain(
const QColor& color);
104 virtual QImage
getDisplayable(
const QSize& displaySize,
int alpha) = 0;
128 virtual void setPolygon(
const std::vector<QPoint>& polygonData) = 0;
135 return std::vector<QPoint>();
147 virtual bool loadImage(
const QString &filePath);
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 QImage getDisplayable(const QSize &displaySize, int alpha)=0
A function returning the displayable ImageData in a requested transparence and size.
virtual ImageType getTypeOfImage()
virtual std::vector< QPoint > getPolygonData()
A function that returns the Polygondata if existent.
IntelliImage(int width, int height, bool fastRendererOn)
The Construcor of the IntelliImage. Given the Image dimensions.
virtual void drawPoint(const QPoint &p1, const QColor &color, const int &penWidth)
A function that draws a point between on a given point in a given color.
virtual void updateRendererSetting(bool fastRendererOn)
updateRendererSetting updates the existing image format to the new format.
bool fastRenderering
fastRendering is the flag that represents the usage of 8bit pictures.
virtual QImage getImageData()
getImageData returns the data of the current image (Note: It will allways return a ARGB32bit QImage!...
void resizeImage(QImage *image, const QSize &newSize)
virtual void setImageData(const QImage &newData)
setImageData overwrites the old imageData the new imageData.
ImageType TypeOfImage
The Type, an Image is.
virtual QColor getPixelColor(QPoint &point)
A function that returns the pixelcolor at a certain point.
QImage imageData
The underlying image data.
virtual bool loadImage(const QString &filePath)
A function that loads and sclaes an image to the fitting dimensions.
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.
ImageType
The Types, which an Image can be.
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.