KD Chart 2  [rev.2.7]
Functions
KDChart::PaintingHelpers Namespace Reference

Functions

QPainterPath fitPoints (const QPolygonF &points, qreal tension)
 
void paintAreas (AbstractDiagram::Private *diagramPrivate, PaintContext *ctx, const QModelIndex &index, const QList< QPolygonF > &areas, uint opacity)
 
void paintAreas (AbstractDiagram::Private *diagramPrivate, PaintContext *ctx, const QModelIndex &index, const QList< QPainterPath > &areas, uint opacity)
 
void paintElements (AbstractDiagram::Private *diagramPrivate, PaintContext *ctx, const LabelPaintCache &lpc, const LineAttributesInfoList &lineList)
 
void paintObject (AbstractDiagram::Private *diagramPrivate, PaintContext *ctx, const QBrush &brush, const QPen &pen, const QPolygonF &points)
 
void paintPolyline (PaintContext *ctx, const QBrush &brush, const QPen &pen, const QPolygonF &points)
 
void paintSpline (PaintContext *ctx, const QBrush &brush, const QPen &pen, const QPolygonF &points, qreal tension)
 
void paintThreeDLines (PaintContext *ctx, AbstractDiagram *diagram, const QModelIndex &index, const QPointF &from, const QPointF &to, const ThreeDLineAttributes &tdAttributes, ReverseMapper *reverseMapper)
 
void paintValueTracker (PaintContext *ctx, const ValueTrackerAttributes &vt, const QPointF &at)
 
const QPointF project (const QPointF &point, const ThreeDLineAttributes &tdAttributes)
 
static ThreeDLineAttributes threeDLineAttributes (AbstractDiagram *diagram, const QModelIndex &index)
 
static ValueTrackerAttributes valueTrackerAttributes (AbstractDiagram *diagram, const QModelIndex &index)
 

Function Documentation

QPainterPath KDChart::PaintingHelpers::fitPoints ( const QPolygonF &  points,
qreal  tension 
)

Definition at line 57 of file PaintingHelpers_p.cpp.

Referenced by paintSpline().

void KDChart::PaintingHelpers::paintAreas ( AbstractDiagram::Private *  diagramPrivate,
PaintContext ctx,
const QModelIndex &  index,
const QList< QPolygonF > &  areas,
uint  opacity 
)
void KDChart::PaintingHelpers::paintAreas ( AbstractDiagram::Private *  diagramPrivate,
PaintContext ctx,
const QModelIndex &  index,
const QList< QPainterPath > &  areas,
uint  opacity 
)
void KDChart::PaintingHelpers::paintElements ( AbstractDiagram::Private *  diagramPrivate,
PaintContext ctx,
const LabelPaintCache &  lpc,
const LineAttributesInfoList &  lineList 
)
void KDChart::PaintingHelpers::paintObject ( AbstractDiagram::Private *  diagramPrivate,
PaintContext ctx,
const QBrush &  brush,
const QPen &  pen,
const QPolygonF &  points 
)

Definition at line 256 of file PaintingHelpers_p.cpp.

References paintPolyline(), and paintSpline().

Referenced by paintElements().

void KDChart::PaintingHelpers::paintPolyline ( PaintContext ctx,
const QBrush &  brush,
const QPen &  pen,
const QPolygonF &  points 
)
void KDChart::PaintingHelpers::paintSpline ( PaintContext ctx,
const QBrush &  brush,
const QPen &  pen,
const QPolygonF &  points,
qreal  tension 
)
void KDChart::PaintingHelpers::paintThreeDLines ( PaintContext ctx,
AbstractDiagram diagram,
const QModelIndex &  index,
const QPointF &  from,
const QPointF &  to,
const ThreeDLineAttributes tdAttributes,
ReverseMapper reverseMapper 
)
void KDChart::PaintingHelpers::paintValueTracker ( PaintContext ctx,
const ValueTrackerAttributes vt,
const QPointF &  at 
)
const QPointF KDChart::PaintingHelpers::project ( const QPointF &  point,
const ThreeDLineAttributes tdAttributes 
)

Projects a point in a space defined by its x, y, and z coordinates into a point on a plane, given two rotation angles around the x resp. y axis.

Definition at line 48 of file PaintingHelpers_p.cpp.

References KDChart::AbstractThreeDAttributes::depth(), KDChart::ThreeDLineAttributes::lineXRotation(), and KDChart::ThreeDLineAttributes::lineYRotation().

Referenced by paintThreeDLines().

static ThreeDLineAttributes KDChart::PaintingHelpers::threeDLineAttributes ( AbstractDiagram diagram,
const QModelIndex &  index 
)
static

Definition at line 234 of file PaintingHelpers_p.cpp.

Referenced by paintAreas(), and paintElements().

static ValueTrackerAttributes KDChart::PaintingHelpers::valueTrackerAttributes ( AbstractDiagram diagram,
const QModelIndex &  index 
)
static

Definition at line 245 of file PaintingHelpers_p.cpp.

Referenced by paintElements().


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/