kpresenter

KPrPolygonObject Class Reference

Inheritance diagram for KPrPolygonObject:

KPr2DObject KPrShadowObject KPrObject List of all members.

Detailed Description

Definition at line 34 of file KPrPolygonObject.h.


Public Member Functions

 KPrPolygonObject ()
 KPrPolygonObject (const KoPointArray &_points, const KoSize &_size, const KoPen &_pen, const QBrush &_brush, FillType _fillType, const QColor &_gColor1, const QColor &_gColor2, BCType _gType, bool _unbalanced, int _xfactor, int _yfactor, bool _checkConcavePolygon, int _cornersValue, int _sharpnessValue)
virtual ~KPrPolygonObject ()
virtual DCOPObject * dcopObject ()
KPrPolygonObjectoperator= (const KPrPolygonObject &)
virtual void setSize (double _width, double _height)
virtual void setSize (const KoSize &_size)
virtual ObjType getType () const
virtual QString getTypeString () const
void setCheckConcavePolygon (bool _concavePolygon)
void setCornersValue (int _cornersValue)
void setSharpnessValue (int _sharpnessValue)
bool getCheckConcavePolygon () const
int getCornersValue () const
int getSharpnessValue () 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 flip (bool horizontal)
virtual KoSize getRealSize () const
virtual KoPoint getRealOrig () const

Protected Member Functions

virtual const char * getOasisElementName () const
virtual bool saveOasisObjectAttributes (KPOasisSaveContext &sc) const
virtual void paint (QPainter *_painter, KoTextZoomHandler *_zoomHandler, int, bool drawingShadow, bool drawContour)
void updatePoints (double _fx, double _fy)
void drawPolygon ()

Protected Attributes

KoPointArray points
bool checkConcavePolygon
int cornersValue
int sharpnessValue

Member Function Documentation

const char * KPrPolygonObject::getOasisElementName  )  const [protected, virtual]
 

Get the element name for saving the object.

Implements KPrObject.

Definition at line 84 of file KPrPolygonObject.cpp.

void KPrPolygonObject::paint QPainter *  _painter,
KoTextZoomHandler *  _zoomHandler,
int  ,
bool  drawingShadow,
bool  drawContour
[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 204 of file KPrPolygonObject.cpp.


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