|
IntelliPhoto
1
|
An abstract class which manages the basic IntelliImage operations. More...
#include <IntelliImage.h>
Public Member Functions | |
| IntelliImage (int width, int height, bool fastRendererOn) | |
| The Construcor of the IntelliImage. Given the Image dimensions. More... | |
| virtual | ~IntelliImage ()=0 |
| An Abstract Destructor. More... | |
| virtual void | drawPixel (const QPoint &p1, const QColor &color) |
| A funtcion used to draw a pixel on the Image with the given Color. More... | |
| 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. More... | |
| 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. More... | |
| virtual void | drawPlain (const QColor &color) |
| A function that clears the whole image in a given Color. More... | |
| virtual QImage | getDisplayable (const QSize &displaySize, int alpha)=0 |
| A function returning the displayable ImageData in a requested transparence and size. More... | |
| virtual QImage | getDisplayable (int alpha=255)=0 |
| A function returning the displayable ImageData in a requested transparence and it's standart size. More... | |
| virtual IntelliImage * | getDeepCopy ()=0 |
| A function that copys all that returns a [allocated] Image. More... | |
| virtual void | calculateVisiblity ()=0 |
| An abstract function that calculates the visiblity of the Image data if needed. More... | |
| virtual void | setPolygon (const std::vector< QPoint > &polygonData)=0 |
| An abstract function that sets the data of the visible Polygon, if needed. More... | |
| virtual std::vector< QPoint > | getPolygonData () |
| A function that returns the Polygondata if existent. More... | |
| virtual ImageType | getTypeOfImage () |
| virtual bool | loadImage (const QString &filePath) |
| A function that loads and sclaes an image to the fitting dimensions. More... | |
| virtual QColor | getPixelColor (QPoint &point) |
| A function that returns the pixelcolor at a certain point. More... | |
| virtual void | updateRendererSetting (bool fastRendererOn) |
| updateRendererSetting updates the existing image format to the new format. More... | |
| virtual QImage | getImageData () |
| getImageData returns the data of the current image (Note: It will allways return a ARGB32bit QImage!). More... | |
| virtual void | setImageData (const QImage &newData) |
| setImageData overwrites the old imageData the new imageData. More... | |
| virtual int | getWidth () const |
| getWidth returns the width of the Image. More... | |
| virtual int | getHeight () const |
| getHeight returns the height of the Image. More... | |
| virtual bool | isFastRendering () const |
| isFastRendering returns if the Image is in fast rendering mode. More... | |
Protected Member Functions | |
| void | resizeImage (QImage *image, const QSize &newSize) |
Protected Attributes | |
| QImage | imageData |
| The underlying image data. More... | |
| ImageType | TypeOfImage |
| The Type, an Image is. More... | |
| bool | fastRenderering |
| fastRendering is the flag that represents the usage of 8bit pictures. More... | |
An abstract class which manages the basic IntelliImage operations.
Definition at line 30 of file IntelliImage.h.
| IntelliImage::IntelliImage | ( | int | width, |
| int | height, | ||
| bool | fastRendererOn | ||
| ) |
The Construcor of the IntelliImage. Given the Image dimensions.
| width | - The width of the Image. |
| height | - The height of the Image. |
| fastRendererOn | - Represents the flag for 8bit picture handelling. |
Definition at line 5 of file IntelliImage.cpp.
|
pure virtual |
An Abstract Destructor.
Definition at line 19 of file IntelliImage.cpp.
|
pure virtual |
An abstract function that calculates the visiblity of the Image data if needed.
Implemented in IntelliRasterImage.
|
virtual |
A function that draws a line between two given points in a given color.
| p1 | - The coordinates of the first Point. |
| p2 | - The coordinates of the second Point. |
| color | - The color of the line. |
| penWidth | - The width of the line. |
Definition at line 97 of file IntelliImage.cpp.
|
virtual |
A funtcion used to draw a pixel on the Image with the given Color.
| p1 | - The coordinates of the pixel, which should be drawn. [Top-Left-System] |
| color | - The color of the pixel. |
Definition at line 58 of file IntelliImage.cpp.
|
virtual |
A function that clears the whole image in a given Color.
| color | - The color, in which the image will be filled. |
Definition at line 117 of file IntelliImage.cpp.
|
virtual |
A function that draws a point between on a given point in a given color.
| p1 | - The coordinates of the first Point. |
| color | - The color of the point. |
| penWidth | - The size of the point. |
Definition at line 78 of file IntelliImage.cpp.
|
pure virtual |
A function that copys all that returns a [allocated] Image.
Implemented in IntelliShapedImage, and IntelliRasterImage.
|
pure virtual |
A function returning the displayable ImageData in a requested transparence and size.
| displaySize | - The size, in whcih the Image should be displayed. |
| alpha | - The maximum alpha value, a pixel can have. |
Implemented in IntelliShapedImage, and IntelliRasterImage.
|
pure virtual |
A function returning the displayable ImageData in a requested transparence and it's standart size.
| alpha | - The maximum alpha value, a pixel can have. |
Implemented in IntelliShapedImage, and IntelliRasterImage.
|
virtual |
getHeight returns the height of the Image.
Definition at line 167 of file IntelliImage.cpp.
|
virtual |
getImageData returns the data of the current image (Note: It will allways return a ARGB32bit QImage!).
Definition at line 135 of file IntelliImage.cpp.
|
virtual |
A function that returns the pixelcolor at a certain point.
| point | - The point from whcih to get the coordinates. |
Definition at line 127 of file IntelliImage.cpp.
|
inlinevirtual |
A function that returns the Polygondata if existent.
Reimplemented in IntelliShapedImage.
Definition at line 135 of file IntelliImage.h.
|
inlinevirtual |
Definition at line 139 of file IntelliImage.h.
|
virtual |
getWidth returns the width of the Image.
Definition at line 163 of file IntelliImage.cpp.
|
virtual |
isFastRendering returns if the Image is in fast rendering mode.
Definition at line 171 of file IntelliImage.cpp.
|
virtual |
A function that loads and sclaes an image to the fitting dimensions.
| filePath | - The path+name of the image which to loaded. |
Definition at line 23 of file IntelliImage.cpp.
|
protected |
Definition at line 38 of file IntelliImage.cpp.
|
virtual |
setImageData overwrites the old imageData the new imageData.
| newData | - represents the new imageData |
Definition at line 143 of file IntelliImage.cpp.
|
pure virtual |
An abstract function that sets the data of the visible Polygon, if needed.
| polygonData | - The Vertices of the Polygon. Just Planar Polygons are allowed. |
Implemented in IntelliShapedImage, and IntelliRasterImage.
|
virtual |
updateRendererSetting updates the existing image format to the new format.
| fastRendererOn | flag for the 8bit image handeling. |
Definition at line 153 of file IntelliImage.cpp.
|
protected |
fastRendering is the flag that represents the usage of 8bit pictures.
Definition at line 51 of file IntelliImage.h.
|
protected |
The underlying image data.
Definition at line 41 of file IntelliImage.h.
|
protected |
The Type, an Image is.
Definition at line 46 of file IntelliImage.h.