#include "Image/IntelliRasterImage.h" #include #include #include IntelliRasterImage::IntelliRasterImage(int width, int height, bool fastRendererOn) : IntelliImage(width, height, fastRendererOn){ TypeOfImage = ImageType::RASTERIMAGE; this->fastRenderering = fastRendererOn; } IntelliRasterImage::Copy(const IntelliRasterImage& image) : IntelliImage(image.getWidth(), image.getHeight(), image.isFastRendering()){ this->TypeOfImage = ImageType::RASTERIMAGE; IntelliRasterImage* raster = new IntelliRasterImage(imageData.width(), imageData.height(), this->fastRenderering); raster->imageData.copy(0,0,image.getWidth(),image.getWidth()); } IntelliRasterImage::~IntelliRasterImage(){ } IntelliImage* IntelliRasterImage::getDeepCopy(){ IntelliRasterImage* raster = new IntelliRasterImage(imageData.width(), imageData.height(), this->fastRenderering); raster->imageData.fill(Qt::transparent); raster->TypeOfImage = ImageType::RASTERIMAGE; return raster; } void IntelliRasterImage::calculateVisiblity(){ // not used in raster image } QImage IntelliRasterImage::getDisplayable(int alpha){ return getDisplayable(imageData.size(), alpha); } QImage IntelliRasterImage::getDisplayable(const QSize& displaySize, int alpha){ QImage copy = imageData; if(fastRenderering) { copy = copy.convertToFormat(QImage::Format_ARGB32); } for(int y = 0; y& polygonData){ return; }