Computer Assited Medical Intervention Tool Kit  version 5.0
QtCanvasPixmap Class Reference

#include <qtcanvas.h>

+ Inheritance diagram for QtCanvasPixmap:
+ Collaboration diagram for QtCanvasPixmap:

Public Member Functions

int offsetX () const
 
int offsetX () const
 
int offsetY () const
 
int offsetY () const
 
 QtCanvasPixmap (const QImage &image)
 
 QtCanvasPixmap (const QImage &image)
 
 QtCanvasPixmap (const QPixmap &, const QPoint &hotspot)
 
 QtCanvasPixmap (const QPixmap &, const QPoint &hotspot)
 
 QtCanvasPixmap (const QString &datafilename)
 
 QtCanvasPixmap (const QString &datafilename)
 
void setOffset (int x, int y)
 
void setOffset (int x, int y)
 
 ~QtCanvasPixmap ()
 
 ~QtCanvasPixmap ()
 

Private Member Functions

void init (const QImage &)
 
void init (const QImage &)
 
void init (const QPixmap &pixmap, int hx, int hy)
 
void init (const QPixmap &pixmap, int hx, int hy)
 

Private Attributes

QImage * collision_mask
 
int hotx
 
int hoty
 

Friends

bool qt_testCollision (const QtCanvasSprite *s1, const QtCanvasSprite *s2)
 
bool qt_testCollision (const QtCanvasSprite *s1, const QtCanvasSprite *s2)
 
class QtCanvasPixmapArray
 
class QtCanvasSprite
 

Constructor & Destructor Documentation

◆ QtCanvasPixmap() [1/6]

QtCanvasPixmap::QtCanvasPixmap ( const QString &  datafilename)

References init().

+ Here is the call graph for this function:

◆ QtCanvasPixmap() [2/6]

QtCanvasPixmap::QtCanvasPixmap ( const QImage &  image)

References init().

+ Here is the call graph for this function:

◆ QtCanvasPixmap() [3/6]

QtCanvasPixmap::QtCanvasPixmap ( const QPixmap &  pm,
const QPoint &  hotspot 
)

References init().

+ Here is the call graph for this function:

◆ ~QtCanvasPixmap() [1/2]

QtCanvasPixmap::~QtCanvasPixmap ( )

References collision_mask.

◆ QtCanvasPixmap() [4/6]

QtCanvasPixmap::QtCanvasPixmap ( const QString &  datafilename)

◆ QtCanvasPixmap() [5/6]

QtCanvasPixmap::QtCanvasPixmap ( const QImage &  image)

◆ QtCanvasPixmap() [6/6]

QtCanvasPixmap::QtCanvasPixmap ( const QPixmap &  ,
const QPoint &  hotspot 
)

◆ ~QtCanvasPixmap() [2/2]

QtCanvasPixmap::~QtCanvasPixmap ( )

Member Function Documentation

◆ init() [1/4]

void QtCanvasPixmap::init ( const QImage &  image)
private

References collision_mask, hotx, and hoty.

Referenced by QtCanvasPixmap().

+ Here is the caller graph for this function:

◆ init() [2/4]

void QtCanvasPixmap::init ( const QImage &  )
private

◆ init() [3/4]

void QtCanvasPixmap::init ( const QPixmap &  pixmap,
int  hx,
int  hy 
)
private

References collision_mask, hotx, and hoty.

◆ init() [4/4]

void QtCanvasPixmap::init ( const QPixmap &  pixmap,
int  hx,
int  hy 
)
private

◆ offsetX() [1/2]

int QtCanvasPixmap::offsetX ( ) const
inline

References hotx.

◆ offsetX() [2/2]

int QtCanvasPixmap::offsetX ( ) const
inline

References hotx.

◆ offsetY() [1/2]

int QtCanvasPixmap::offsetY ( ) const
inline

References hoty.

◆ offsetY() [2/2]

int QtCanvasPixmap::offsetY ( ) const
inline

References hoty.

◆ setOffset() [1/2]

void QtCanvasPixmap::setOffset ( int  x,
int  y 
)
inline

References hotx, and hoty.

◆ setOffset() [2/2]

void QtCanvasPixmap::setOffset ( int  x,
int  y 
)
inline

References hotx, and hoty.

Friends And Related Function Documentation

◆ qt_testCollision [1/2]

bool qt_testCollision ( const QtCanvasSprite s1,
const QtCanvasSprite s2 
)
friend

◆ qt_testCollision [2/2]

bool qt_testCollision ( const QtCanvasSprite s1,
const QtCanvasSprite s2 
)
friend

◆ QtCanvasPixmapArray

◆ QtCanvasSprite

Member Data Documentation

◆ collision_mask

QImage * QtCanvasPixmap::collision_mask
private

◆ hotx

int QtCanvasPixmap::hotx
private

◆ hoty

int QtCanvasPixmap::hoty
private

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