ScheditBitmap Class Reference

#include <ScheditBitmap.h>

Inheritance diagram for ScheditBitmap:

CanvasPixmap

List of all members.

Classes

struct  BitmapHdr
struct  Orient
struct  SectionData
struct  SectionDataLine

Public Types

enum  eRotate { none, anti90, anti180, anti270 }

Public Member Functions

 ScheditBitmap (QCanvas *canvas, unsigned char *&puc)
virtual int rtti () const
void drawTransformed (QPainter &painter)
void drawUntransformed (QPainter &painter)
int getExtension (void)
QSize getBmpSize (void)
virtual bool collidesWith (const QCanvasItem *other) const
virtual bool collidesWith (const QCanvasSprite *, const QCanvasPolygonalItem *, const QCanvasRectangle *, const QCanvasEllipse *, const QCanvasText *) const
virtual void draw (QPainter &painter)
virtual QRect boundingRect () const
void flipH (void)
void flipV (void)
int width (void)
int height (void)
void rotate (void)
void setRotation (eRotate orthoAngle)
eRotate rotation (void)
QPixmap * pixmap (void)
void setPixmap (QPixmap *_pm)

Static Public Member Functions

static void setup (KDialogBase *dlg)
static void readProperties (KConfig *config)
static void writeProperties (KConfig *config)
static QFontMetrics & getNumFontMetrics (void)
static QFontMetrics & getFunFontMetrics (void)

Protected Attributes

eRotate orthoAngle
bool bFlippedX
bool bFlippedY

Static Protected Attributes

static QWMatrix wmFlipH = QWMatrix ( -1, 0, 0, 1, 0, 0 )
static QWMatrix wmFlipV = QWMatrix ( 1, 0, 0, -1, 0, 0 )
static QWMatrix wmOrtho [4]


Detailed Description

Author:
James Fuller,,, <james>

Member Function Documentation

QRect CanvasPixmap::boundingRect (  )  const [virtual, inherited]

Returns the bounding rectangle of the object

Returns:
QRect

bool CanvasPixmap::collidesWith ( const QCanvasSprite *  cs,
const QCanvasPolygonalItem *  pi,
const QCanvasRectangle *  cr,
const QCanvasEllipse *  ce,
const QCanvasText *  ct 
) const [virtual, inherited]

Determines if this object overlaps another QCanvasItem object

Parameters:
cs QCanvasSprite object to check for overlap
pi QCanvasPolygonalItem object to check for overlap
cr QCanvasRectangle object to check for overlap
ce QCanvasEllipse object to check for overlap
ct QCanvasText object to check for overlap
Returns:
True if any specified object overlaps with this object

bool CanvasPixmap::collidesWith ( const QCanvasItem *  other  )  const [virtual, inherited]

Determines if this object overlaps another QCanvasItem object

Parameters:
other The other object
Returns:
True if an overlap is detected

void CanvasPixmap::draw ( QPainter &  painter  )  [virtual, inherited]

Draw the object onto the canvas

Parameters:
painter 

void ScheditBitmap::drawTransformed ( QPainter &  painter  )  [virtual]

Stub to perform additional drawing before rotation

Parameters:
painter 

Reimplemented from CanvasPixmap.

void ScheditBitmap::drawUntransformed ( QPainter &  painter  )  [virtual]

Stub to perform additional drawing after rotation

Parameters:
painter 

Reimplemented from CanvasPixmap.

void CanvasPixmap::flipH ( void   )  [inherited]

Cause the pixmap to be flipped horizontally

Parameters:
none 

void CanvasPixmap::flipV ( void   )  [inherited]

Cause the pixmap to be flipped vertically

Parameters:
 

int CanvasPixmap::height ( void   )  [inherited]

Returns the height of the bitmap

Parameters:
none 
Returns:
Pixel count

QPixmap * CanvasPixmap::pixmap ( void   )  [inherited]

Returns a pointer to the internal QPixmap object

Parameters:
none 
Returns:
Pointer to QPixmap object

void CanvasPixmap::rotate ( void   )  [inherited]

Cause the pixmap to be rotated as previously specified

Parameters:
none 

CanvasPixmap::eRotate CanvasPixmap::rotation ( void   )  [inherited]

Return how far the pixmap is rotated (in 90 deg units)

Parameters:
none 
Returns:
Number of 90 deg steps

int ScheditBitmap::rtti ( void   )  const [virtual]

Unique representation of class derived from ScheditItem

Parameters:
none 
Returns:
int

Reimplemented from CanvasPixmap.

void CanvasPixmap::setPixmap ( QPixmap *  _pm  )  [inherited]

Set the QPixmap object that is to be displayed

Parameters:
_pm QPixmap object to display

void CanvasPixmap::setRotation ( eRotate  _orthoAngle  )  [inherited]

Specifies the rotation of the pixmap (in 90 deg units)

Parameters:
_orthoAngle Number of 90 deg steps

int CanvasPixmap::width ( void   )  [inherited]

Returns the width of the object

Parameters:
none 
Returns:
Pixel count


Member Data Documentation

QWMatrix CanvasPixmap::wmOrtho [static, protected, inherited]

Initial value:

 { QWMatrix ( 1, 0, 0, 1, 0, 0 ),
                                                                          QWMatrix ( 0, -1, 1, 0, 0, 0 ),
                                                                          QWMatrix ( -1, 0, 0, -1, 0, 0 ),
                                                                          QWMatrix ( 0, 1, -1, 0, 0, 0 ) }


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

Generated on Wed Feb 19 20:13:54 2014 for Schematux by  doxygen 1.5.7