libs/flake

KoShapePainter Class Reference

A utility class to paint a subset of shapes onto a QPainter. More...

#include <KoShapePainter.h>

List of all members.

Public Member Functions

 KoShapePainter (KoShapeManagerPaintingStrategy *strategy=0)
 ~KoShapePainter ()
QRectF contentRect ()
bool paintShapes (QImage &image)
void paintShapes (QPainter &painter, const QRect &painterRect, const QRectF &documentRect)
void paintShapes (QPainter &painter, KoViewConverter &converter)
void setShapes (const QList< KoShape * > &shapes)

Detailed Description

A utility class to paint a subset of shapes onto a QPainter.

Definition at line 38 of file KoShapePainter.h.


Constructor & Destructor Documentation

KoShapePainter::KoShapePainter ( KoShapeManagerPaintingStrategy strategy = 0  ) 

Definition at line 119 of file KoShapePainter.cpp.

KoShapePainter::~KoShapePainter (  ) 

Definition at line 128 of file KoShapePainter.cpp.


Member Function Documentation

QRectF KoShapePainter::contentRect (  ) 

Returns the bounding rect of the shapes to paint.

Definition at line 195 of file KoShapePainter.cpp.

bool KoShapePainter::paintShapes ( QImage image  ) 

Paints shapes to the given image, so that all shapes fit onto it.

Parameters:
image the image to paint into
Returns:
false if image is empty, else true

Definition at line 183 of file KoShapePainter.cpp.

void KoShapePainter::paintShapes ( QPainter painter,
const QRect painterRect,
const QRectF documentRect 
)

Paints the shapes on the given painter.

The given document rectangle is painted to fit into the given painter rectangle.

Parameters:
painter the painter to paint on
painterRect the destination rectangle on the painter
documentRect the document region to paint

Definition at line 147 of file KoShapePainter.cpp.

void KoShapePainter::paintShapes ( QPainter painter,
KoViewConverter converter 
)

Paints the shapes on the given painter and using the zoom handler.

Parameters:
painter the painter to paint on
converted the view converter defining the zoom to use

Definition at line 138 of file KoShapePainter.cpp.

void KoShapePainter::setShapes ( const QList< KoShape * > &  shapes  ) 

Sets the shapes to be painted.

Parameters:
shape the shapes to paint

Definition at line 133 of file KoShapePainter.cpp.


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