KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
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

 PrerenderedElement ()
 
virtual ~PrerenderedElement ()
 
virtual const QPixmappixmap () const =0
 
const QPointFposition () const
 
KDChartEnums::PositionValue referencePoint () const
 
virtual QPointF referencePointLocation (KDChartEnums::PositionValue) const =0
 
void setPosition (const QPointF &position)
 
void setReferencePoint (KDChartEnums::PositionValue)
 

Protected Member Functions

virtual void invalidate () const =0
 

Detailed Description

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

Definition at line 24 of file KDChartTextLabelCache.h.

Constructor & Destructor Documentation

◆ PrerenderedElement()

PrerenderedElement::PrerenderedElement ( )

Definition at line 46 of file KDChartTextLabelCache.cpp.

◆ ~PrerenderedElement()

virtual PrerenderedElement::~PrerenderedElement ( )
inlinevirtual

Definition at line 28 of file KDChartTextLabelCache.h.

Member Function Documentation

◆ invalidate()

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.

◆ pixmap()

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.

◆ position()

const QPointF & PrerenderedElement::position ( ) const

Get the position of the element.

Definition at line 55 of file KDChartTextLabelCache.cpp.

Referenced by PrerenderedLabel::referencePointLocation(), and setPosition().

◆ referencePoint()

KDChartEnums::PositionValue PrerenderedElement::referencePoint ( ) const

Get the reference point of the element.

Definition at line 65 of file KDChartTextLabelCache.cpp.

Referenced by PrerenderedLabel::referencePointLocation().

◆ referencePointLocation()

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.

◆ setPosition()

void PrerenderedElement::setPosition ( const QPointF position)

Set the position of the element.

Definition at line 50 of file KDChartTextLabelCache.cpp.

References position().

◆ setReferencePoint()

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 60 of file KDChartTextLabelCache.cpp.


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

© 2001 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/
Generated on Fri Apr 26 2024 00:04:57 for KD Chart API Documentation by doxygen 1.9.8