kpresenter

KPrPointObject Class Reference

Inheritance diagram for KPrPointObject:

KPrShadowObject KPrStartEndLine KPrObject KPrBezierCurveObject KPrFreehandObject KPrPolylineObject KPrCubicBezierCurveObject KPrQuadricBezierCurveObject List of all members.

Detailed Description

Definition at line 27 of file KPrPointObject.h.


Public Member Functions

 KPrPointObject ()
 KPrPointObject (const KoPen &_pen, LineEnd _lineBegin, LineEnd _lineEnd)
virtual KoSize getRealSize () const
virtual KoPoint getRealOrig () const
virtual QDomDocumentFragment save (QDomDocument &doc, double offset)
virtual double load (const QDomElement &element)
virtual void loadOasis (const QDomElement &element, KoOasisContext &context, KPrLoadingInfo *info)
virtual void setLineBegin (LineEnd _lineBegin)
virtual void setLineEnd (LineEnd _lineEnd)
virtual LineEnd getLineBegin () const
virtual LineEnd getLineEnd () const
virtual void setSize (double _width, double _height)
virtual void setSize (const KoSize &_size)
virtual void flip (bool horizontal)
virtual const KoPointArray getPoints () const

Protected Member Functions

virtual const char * getOasisElementName () const
void loadOasisMarker (KoOasisContext &context)
virtual void fillStyle (KoGenStyle &styleObjectAuto, KoGenStyles &mainStyles) const
virtual void paint (QPainter *_painter, KoTextZoomHandler *_zoomHandler, int, bool drawingShadow, bool drawContour=FALSE)
virtual void updatePoints (double _fx, double _fy)
virtual KoPointArray getDrawingPoints () const

Protected Attributes

KoPointArray points

Member Function Documentation

const char * KPrPointObject::getOasisElementName (  )  const [protected, virtual]

Get the element name for saving the object.

Implements KPrObject.

Reimplemented in KPrBezierCurveObject, KPrFreehandObject, and KPrPolylineObject.

Definition at line 101 of file KPrPointObject.cpp.

virtual const KoPointArray KPrPointObject::getPoints (  )  const [inline, virtual]

Get the points of the object.

Returns:
points of the object

Definition at line 58 of file KPrPointObject.h.

void KPrPointObject::paint ( QPainter *  _painter,
KoTextZoomHandler *  _zoomHandler,
int  ,
bool  drawingShadow,
bool  drawContour = FALSE 
) [protected, virtual]

This method is to be implemented by all KPShadowObjects, to draw themselves.

draw() took care of the shadow and of preparing painter for rotation. paint() must take care of the gradient itself!

Parameters:
drawingShadow true if called to draw the shadow of the object. Usually objects will want to draw a simpler version of themselves in that case.
This method isn't pure virtual because some objects implement draw() directly.

Reimplemented from KPrShadowObject.

Definition at line 196 of file KPrPointObject.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys