KD Chart 2  [rev.2.7]
Public Member Functions | Protected Member Functions | List of all members
PrerenderedElement Class Referenceabstract

base class for prerendered elements like labels, pixmaps, markers, etc. More...

#include <KDChartTextLabelCache.h>

Inheritance diagram for PrerenderedElement:
Inheritance graph
[legend]

Public Member Functions

virtual const QPixmap & pixmap () const =0
 Returns the rendered element. More...
 
const QPointF & position () const
 Get the position of the element. More...
 
 PrerenderedElement ()
 
KDChartEnums::PositionValue referencePoint () const
 Get the reference point of the element. More...
 
virtual QPointF referencePointLocation (KDChartEnums::PositionValue) const =0
 Return the location of the reference point relatively to the pixmap's origin. More...
 
void setPosition (const QPointF &position)
 Set the position of the element. More...
 
void setReferencePoint (KDChartEnums::PositionValue)
 Set the reference point of the element. More...
 
virtual ~PrerenderedElement ()
 

Protected Member Functions

virtual void invalidate () const =0
 invalidate() needs to be called if any of the properties that determine the visual appearance of the prerendered element change. More...
 

Detailed Description

base class for prerendered elements like labels, pixmaps, markers, etc.

Definition at line 36 of file KDChartTextLabelCache.h.

Constructor & Destructor Documentation

PrerenderedElement::PrerenderedElement ( )

Definition at line 52 of file KDChartTextLabelCache.cpp.

virtual PrerenderedElement::~PrerenderedElement ( )
virtual

Member Function Documentation

virtual void PrerenderedElement::invalidate ( ) const
protectedpure virtual

invalidate() needs to be called if any of the properties that determine the visual appearance of the prerendered element change.

It can be called for a const object, as objects may need to force recalculation of the pixmap.

Implemented in PrerenderedLabel.

Referenced by ~PrerenderedElement().

virtual const QPixmap& PrerenderedElement::pixmap ( ) const
pure virtual

Returns the rendered element.

If any of the properties have change, the element will be regenerated.

Implemented in PrerenderedLabel.

Referenced by ~PrerenderedElement().

const QPointF & PrerenderedElement::position ( ) const

Get the position of the element.

Definition at line 62 of file KDChartTextLabelCache.cpp.

Referenced by KDChart::TernaryAxis::paintCtx(), PrerenderedLabel::pixmap(), setPosition(), and ~PrerenderedElement().

KDChartEnums::PositionValue PrerenderedElement::referencePoint ( ) const

Get the reference point of the element.

Definition at line 72 of file KDChartTextLabelCache.cpp.

Referenced by PrerenderedLabel::referencePointLocation(), and ~PrerenderedElement().

virtual QPointF PrerenderedElement::referencePointLocation ( KDChartEnums::PositionValue  ) const
pure virtual

Return the location of the reference point relatively to the pixmap's origin.

Implemented in PrerenderedLabel.

Referenced by ~PrerenderedElement().

void PrerenderedElement::setPosition ( const QPointF &  position)

Set the position of the element.

Definition at line 57 of file KDChartTextLabelCache.cpp.

References position().

Referenced by KDChart::TernaryAxis::hasDefaultTitleTextAttributes(), and ~PrerenderedElement().

void PrerenderedElement::setReferencePoint ( KDChartEnums::PositionValue  point)

Set the reference point of the element.

Every element has nine possible reference points (all compass directions, plus the center.

Definition at line 67 of file KDChartTextLabelCache.cpp.

Referenced by KDChart::TernaryAxis::hasDefaultTitleTextAttributes(), and ~PrerenderedElement().


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

Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/

https://www.kdab.com/development-resources/qt-tools/kd-chart/