[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Wed Oct 26 22:05:52 CEST 2005
SVN commit 474585 by staikos:
pass the curve render context by reference - might want to use a pointer later
if we want to return (a) value(s)
M +1 -1 kstbasecurve.h
M +1 -1 kstimage.cpp
M +1 -1 kstimage.h
M +1 -1 kstvcurve.cpp
M +1 -1 kstvcurve.h
--- trunk/extragear/graphics/kst/kst/kstbasecurve.h #474584:474585
@@ -92,7 +92,7 @@
virtual double distanceToPoint(double xpos, double dx, double ypos) const = 0;
// render this curve
- virtual void paint(KstCurveRenderContext context) = 0;
+ virtual void paint(const KstCurveRenderContext& context) = 0;
// render the legend symbol for this curve
virtual void paintLegendSymbol(QPainter *p, const QRect& bound) = 0;
--- trunk/extragear/graphics/kst/kst/kstimage.cpp #474584:474585
@@ -464,7 +464,7 @@
}
-void KstImage::paint(KstCurveRenderContext context) {
+void KstImage::paint(const KstCurveRenderContext& context) {
double Lx = context.Lx, Hx = context.Hx, Ly = context.Ly, Hy = context.Hy;
double m_X = context.m_X, m_Y = context.m_Y, b_X = context.b_X, b_Y = context.b_Y;
double x_max = context.x_max, y_max = context.y_max, x_min = context.x_min, y_min = context.y_min;
--- trunk/extragear/graphics/kst/kst/kstimage.h #474584:474585
@@ -108,7 +108,7 @@
virtual double distanceToPoint(double xpos, double dx, double ypos) const;
// see KstBaseCurve::paint
- virtual void paint(KstCurveRenderContext context);
+ virtual void paint(const KstCurveRenderContext& context);
// see KstBaseCurve::yRange
virtual void yRange(double xFrom, double xTo, double* yMin, double* yMax);
--- trunk/extragear/graphics/kst/kst/kstvcurve.cpp #474584:474585
@@ -744,7 +744,7 @@
}
-void KstVCurve::paint(KstCurveRenderContext context) {
+void KstVCurve::paint(const KstCurveRenderContext& context) {
KstVectorPtr xv = *_inputVectors.find(COLOR_XVECTOR);
KstVectorPtr yv = *_inputVectors.find(COLOR_YVECTOR);
if (!xv || !yv) {
--- trunk/extragear/graphics/kst/kst/kstvcurve.h #474584:474585
@@ -137,7 +137,7 @@
virtual KstDataObjectPtr makeDuplicate(KstDataObjectDataObjectMap& duplicatedMap);
// render this vcurve
- virtual void paint(KstCurveRenderContext context);
+ virtual void paint(const KstCurveRenderContext& context);
// render the legend symbol for this curve
virtual void paintLegendSymbol(QPainter *p, const QRect& bound);
More information about the Kst
mailing list