libs/flake

KoShapeManagerPaintingStrategy Class Reference

This implements the painting strategy for the KoShapeManager. More...

#include <KoShapeManagerPaintingStrategy.h>

List of all members.

Public Member Functions

 KoShapeManagerPaintingStrategy (KoShapeManager *shapeManager)
virtual ~KoShapeManagerPaintingStrategy ()
virtual void adapt (KoShape *shape, QRectF &rect)
virtual void paint (KoShape *shape, QPainter &painter, const KoViewConverter &converter, bool forPrint)
void setShapeManager (KoShapeManager *shapeManager)

Protected Member Functions

KoShapeManagershapeManager ()

Detailed Description

This implements the painting strategy for the KoShapeManager.

This is done to make it possible to have e.g. animations in kpresenter.

This class implements the default strategy which is normally used.

Definition at line 39 of file KoShapeManagerPaintingStrategy.h.


Constructor & Destructor Documentation

KoShapeManagerPaintingStrategy::KoShapeManagerPaintingStrategy ( KoShapeManager shapeManager  ) 

Definition at line 37 of file KoShapeManagerPaintingStrategy.cpp.

KoShapeManagerPaintingStrategy::~KoShapeManagerPaintingStrategy (  )  [virtual]

Definition at line 42 of file KoShapeManagerPaintingStrategy.cpp.


Member Function Documentation

void KoShapeManagerPaintingStrategy::adapt ( KoShape shape,
QRectF rect 
) [virtual]

Adapt the rect the shape occupies.

Parameters:
rect rect which will be updated to give the rect the shape occupies.

Definition at line 59 of file KoShapeManagerPaintingStrategy.cpp.

void KoShapeManagerPaintingStrategy::paint ( KoShape shape,
QPainter painter,
const KoViewConverter converter,
bool  forPrint 
) [virtual]

Paint the shape.

Parameters:
shape the shape to paint
painter the painter to paint to.
converter to convert between document and view coordinates.
forPrint if true, make sure only actual content is drawn and no decorations.

Definition at line 47 of file KoShapeManagerPaintingStrategy.cpp.

void KoShapeManagerPaintingStrategy::setShapeManager ( KoShapeManager shapeManager  ) 

Set the shape manager.

This is needed in case you cannot set the shape manager when creating the paiting strategy. It needs to be set before you paint otherwise nothing will be painted.

Parameters:
shapeManager The shape manager to use in the painting startegy

Definition at line 65 of file KoShapeManagerPaintingStrategy.cpp.

KoShapeManager * KoShapeManagerPaintingStrategy::shapeManager (  )  [protected]

Definition at line 70 of file KoShapeManagerPaintingStrategy.cpp.


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