Unified ENUM Names

This commit is contained in:
2020-01-09 10:15:02 +01:00
parent 37b8642497
commit ee64fa6997
6 changed files with 14 additions and 14 deletions

View File

@@ -24,8 +24,8 @@ public:
* \brief The Types, which an Image can be.
*/
enum class ImageType {
Raster_Image,
Shaped_Image
RASTERIMAGE,
SHAPEDIMAGE
};
protected:

View File

@@ -5,7 +5,7 @@
IntelliRasterImage::IntelliRasterImage(int weight, int height)
: IntelliImage(weight, height){
TypeOfImage = IntelliImage::ImageType::Raster_Image;
TypeOfImage = IntelliImage::ImageType::RASTERIMAGE;
}
IntelliRasterImage::~IntelliRasterImage(){
@@ -15,7 +15,7 @@ IntelliRasterImage::~IntelliRasterImage(){
IntelliImage* IntelliRasterImage::getDeepCopy(){
IntelliRasterImage* raster = new IntelliRasterImage(imageData.width(), imageData.height());
raster->imageData.fill(Qt::transparent);
raster->TypeOfImage = IntelliImage::ImageType::Raster_Image;
raster->TypeOfImage = IntelliImage::ImageType::RASTERIMAGE;
return raster;
}

View File

@@ -6,7 +6,7 @@
IntelliShapedImage::IntelliShapedImage(int weight, int height)
: IntelliRasterImage(weight, height){
TypeOfImage = IntelliImage::ImageType::Shaped_Image;
TypeOfImage = IntelliImage::ImageType::SHAPEDIMAGE;
}
IntelliShapedImage::~IntelliShapedImage(){
@@ -21,7 +21,7 @@ IntelliImage* IntelliShapedImage::getDeepCopy(){
IntelliShapedImage* shaped = new IntelliShapedImage(imageData.width(), imageData.height());
shaped->setPolygon(this->polygonData);
shaped->imageData.fill(Qt::transparent);
shaped->TypeOfImage = IntelliImage::ImageType::Shaped_Image;
shaped->TypeOfImage = IntelliImage::ImageType::SHAPEDIMAGE;
return shaped;
}