IntelliPhoto  0.4
IntelliImage Class Referenceabstract

#include <IntelliImage.h>

Inheritance diagram for IntelliImage:

Public Member Functions

 IntelliImage (int weight, int height)
 
virtual ~IntelliImage ()=0
 
virtual void drawPixel (const QPoint &p1, const QColor &color)
 
virtual void drawLine (const QPoint &p1, const QPoint &p2, const QColor &color, const int &penWidth)
 
virtual void drawPlain (const QColor &color)
 
virtual QImage getDisplayable (const QSize &displaySize, int alpha)=0
 
virtual QImage getDisplayable (int alpha=255)=0
 
virtual IntelliImagegetDeepCopy ()=0
 
virtual void calculateVisiblity ()=0
 
virtual void setPolygon (const std::vector< QPoint > &polygonData)=0
 
virtual std::vector< QPoint > getPolygonData ()
 
virtual bool loadImage (const QString &fileName)
 

Protected Member Functions

void resizeImage (QImage *image, const QSize &newSize)
 

Protected Attributes

QImage imageData
 

Detailed Description

Definition at line 18 of file IntelliImage.h.

Constructor & Destructor Documentation

◆ IntelliImage()

IntelliImage::IntelliImage ( int  weight,
int  height 
)

Definition at line 5 of file IntelliImage.cpp.

◆ ~IntelliImage()

IntelliImage::~IntelliImage ( )
pure virtual

Definition at line 10 of file IntelliImage.cpp.

Member Function Documentation

◆ calculateVisiblity()

virtual void IntelliImage::calculateVisiblity ( )
pure virtual

Implemented in IntelliShapedImage, and IntelliRasterImage.

Here is the caller graph for this function:

◆ drawLine()

void IntelliImage::drawLine ( const QPoint &  p1,
const QPoint &  p2,
const QColor &  color,
const int &  penWidth 
)
virtual

Definition at line 55 of file IntelliImage.cpp.

Here is the caller graph for this function:

◆ drawPixel()

void IntelliImage::drawPixel ( const QPoint &  p1,
const QColor &  color 
)
virtual

Definition at line 44 of file IntelliImage.cpp.

Here is the caller graph for this function:

◆ drawPlain()

void IntelliImage::drawPlain ( const QColor &  color)
virtual

Definition at line 67 of file IntelliImage.cpp.

Here is the caller graph for this function:

◆ getDeepCopy()

virtual IntelliImage* IntelliImage::getDeepCopy ( )
pure virtual

Implemented in IntelliShapedImage, and IntelliRasterImage.

◆ getDisplayable() [1/2]

virtual QImage IntelliImage::getDisplayable ( const QSize &  displaySize,
int  alpha 
)
pure virtual

Implemented in IntelliShapedImage, and IntelliRasterImage.

◆ getDisplayable() [2/2]

virtual QImage IntelliImage::getDisplayable ( int  alpha = 255)
pure virtual

Implemented in IntelliShapedImage, and IntelliRasterImage.

◆ getPolygonData()

virtual std::vector<QPoint> IntelliImage::getPolygonData ( )
inlinevirtual

Reimplemented in IntelliShapedImage.

Definition at line 48 of file IntelliImage.h.

◆ loadImage()

bool IntelliImage::loadImage ( const QString &  fileName)
virtual

Definition at line 14 of file IntelliImage.cpp.

Here is the caller graph for this function:

◆ resizeImage()

void IntelliImage::resizeImage ( QImage *  image,
const QSize &  newSize 
)
protected

Definition at line 29 of file IntelliImage.cpp.

◆ setPolygon()

virtual void IntelliImage::setPolygon ( const std::vector< QPoint > &  polygonData)
pure virtual

Implemented in IntelliShapedImage, and IntelliRasterImage.

Member Data Documentation

◆ imageData

QImage IntelliImage::imageData
protected

Definition at line 23 of file IntelliImage.h.


The documentation for this class was generated from the following files: