#include <renderitems.h>
Inheritance diagram for RenderItems:
Public Types | |
enum | AlphaMode { NoAlphaMode, FlatAlphaMode } |
Public Methods | |
RenderItems (QObject *parent, QCanvas *canvas, pXmlNode *contentroot, pXmlNode *styleroot, QList< pImage > *i) | |
Constructor. | |
~RenderItems () | |
Deconstructor. | |
void | render (pXmlNode *node) |
Renders to canvas. Reimplemented by descendents. | |
QImage * | makeGradientImage (pXmlNode *gradnode, int steps, QSize *size=NULL) |
Generates a gradient image. | |
QImage * | makeHatchImage (pXmlNode *hatchnode, QColor *color, int tpcy=0xFF, QSize *size=NULL) |
Generates a hatched image. | |
void | showImage (int x, int y, int w, int h, QImage *image, int alphamode=0, int alphas=0xFF, int alphae=0xFF) |
shows the image on the canvas after alpha blending it. | |
void | setFactor (float f) |
Sets factor. | |
void | clearLayers () |
Sets layer to 0. | |
void | setReplace (bool b) |
Sets replaceItems. | |
void | setRect (QRect *r) |
Sets internal rect value. | |
Protected Methods | |
QCanvas * | canvas () |
returns a pointer to the canvas to render too. | |
QString | findStylePropertyInStyleRecursive (pXmlNode *node, const QString &val) |
Deprecated alias for findStyleProperty. | |
QString | findStyleProperty (pXmlNode *node, const QString &val) |
Finds style property for node. Searches logically through defined nodes and back to master-page-style. | |
QString | findStylePropertyWithParentDelimiter (pXmlNode *node, const QString &val, const QString &delimiter) |
Finds style property for node Searches back up pXmlNode tree till it encounters a node named delimiter. Used in text rendering. | |
Protected Attributes | |
QCanvas * | thiscanvas |
Pointer to rendering canvas. | |
pXmlNode * | style |
Pointer to style xml tree. | |
pXmlNode * | content |
Pointer to content xml tree. | |
QList< pImage > | images |
Pointer to image data. | |
float | factor |
Factor to scale the rendered item by. | |
int | layer |
Internal layer counter for items on canvas. | |
bool | replaceitems |
Replaces non implemented items with blank grey box if true. | |
int | lbcount |
Internal count of linebreaks in text rendering. | |
bool | listinc |
Internal list incrementer. | |
int | lastbottom |
Internal count of last bottom item. | |
int | textlvl |
Internal count of text level. | |
QList< QCanvasText > | currline |
List of text of current text line. | |
QList< QCanvasText > | currtxt |
List of current text. | |
pXmlNode * | indentnode |
Node of text indent style definition. | |
QRect * | rect |
Pointer to internal QRect for size overriding. |
Definition at line 45 of file renderitems.h.
|
Definition at line 116 of file renderitems.h.
00116 { NoAlphaMode, FlatAlphaMode }; |
|
|
|
Definition at line 61 of file renderitems.h.
00061 {}; |
|
Definition at line 123 of file renderitems.h. References thiscanvas.
00123 { return thiscanvas; }; |
|
Definition at line 104 of file renderitems.h. References layer.
00104 { layer = 0; }; |
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in Render3D, RenderBG, RenderEllipse, RenderImage, and RenderRect. |
|
Definition at line 100 of file renderitems.h. References factor.
00100 { factor = f; }; |
|
Definition at line 114 of file renderitems.h. References rect.
00114 { rect = r; }; |
|
Definition at line 109 of file renderitems.h. References replaceitems.
00109 { replaceitems = b; }; |
|
|
|
Definition at line 157 of file renderitems.h. |
|
Definition at line 193 of file renderitems.h. |
|
Definition at line 197 of file renderitems.h. |
|
Definition at line 165 of file renderitems.h. Referenced by setFactor(). |
|
Definition at line 161 of file renderitems.h. |
|
Definition at line 201 of file renderitems.h. |
|
Definition at line 185 of file renderitems.h. |
|
Definition at line 169 of file renderitems.h. Referenced by clearLayers(). |
|
Definition at line 177 of file renderitems.h. |
|
Definition at line 181 of file renderitems.h. |
|
Definition at line 205 of file renderitems.h. Referenced by setRect(). |
|
Definition at line 173 of file renderitems.h. Referenced by setReplace(). |
|
Definition at line 153 of file renderitems.h. |
|
Definition at line 189 of file renderitems.h. |
|
Definition at line 149 of file renderitems.h. Referenced by canvas(). |