Computer Assited Medical Intervention Tool Kit  version 4.1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
QtCanvasPixmap Class Reference

#include <qtcanvas.h>

Inherits QPixmap, and QPixmap.

Public Member Functions

int offsetX () const
 
int offsetX () const
 
int offsetY () const
 
int offsetY () const
 
 QtCanvasPixmap (const QString &datafilename)
 
 QtCanvasPixmap (const QString &datafilename)
 
 QtCanvasPixmap (const QImage &image)
 
 QtCanvasPixmap (const QImage &image)
 
 QtCanvasPixmap (const QPixmap &, const QPoint &hotspot)
 
 QtCanvasPixmap (const QPixmap &, const QPoint &hotspot)
 
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)

◆ QtCanvasPixmap() [2/6]

QtCanvasPixmap::QtCanvasPixmap ( const QImage &  image)

◆ QtCanvasPixmap() [3/6]

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

◆ ~QtCanvasPixmap() [1/2]

QtCanvasPixmap::~QtCanvasPixmap ( )

◆ 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

◆ init() [2/4]

void QtCanvasPixmap::init ( const QImage &  )
private

◆ init() [3/4]

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

◆ init() [4/4]

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

◆ offsetX() [1/2]

int QtCanvasPixmap::offsetX ( ) const
inline

◆ offsetX() [2/2]

int QtCanvasPixmap::offsetX ( ) const
inline

◆ offsetY() [1/2]

int QtCanvasPixmap::offsetY ( ) const
inline

◆ offsetY() [2/2]

int QtCanvasPixmap::offsetY ( ) const
inline

◆ setOffset() [1/2]

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

◆ setOffset() [2/2]

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

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

Referenced by QtCanvasSprite::topEdge().


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