[Kst] branches/work/kst/portto4/kst/src/libkstapp
Adam Treat
treat at kde.org
Mon Jun 18 15:49:16 CEST 2007
SVN commit 677115 by treat:
* Please remove extra spaces and make sure to follow
the coding style.
M +11 -0 plotrenderer2d.cpp
M +9 -9 plotrenderer2d.h
--- branches/work/kst/portto4/kst/src/libkstapp/plotrenderer2d.cpp #677114:677115
@@ -17,17 +17,21 @@
_name = name;
}
+
PlotRenderer2D::~PlotRenderer2D() {
}
+
void PlotRenderer2D::setType(RenderType2D type) {
_type = type;
}
+
RenderType2D PlotRenderer2D::type() {
return _type;
}
+
void PlotRenderer2D::setRangeXY(const QRectF& range) {
_xyRange = range;
QPointF topLeft;
@@ -39,6 +43,7 @@
refreshRange();
}
+
void PlotRenderer2D::setRangeUV(const QRectF& range) {
_uvRange = range;
QPointF topLeft;
@@ -50,24 +55,30 @@
refreshRange();
}
+
void PlotRenderer2D::rangeXY(QRectF *range) {
(*range) = _xyRange;
}
+
void PlotRenderer2D::rangeUV(QRectF *range) {
(*range) = _uvRange;
}
+
void PlotRenderer2D::refreshRange() {
}
+
void PlotRenderer2D::projectPath(QPainterPath *path) {
}
+
void PlotRenderer2D::projectPoint(const QPointF& pold, QPointF *pnew) {
(*pnew) = pold;
}
+
void PlotRenderer2D::projectPointInv(const QPointF& pold, QPointF *pnew) {
(*pnew) = pold;
}
--- branches/work/kst/portto4/kst/src/libkstapp/plotrenderer2d.h #677114:677115
@@ -38,36 +38,36 @@
virtual void projectPoint(const QPointF& pold, QPointF *pnew);
// Inverse projection of a single point
virtual void projectPointInv(const QPointF& pold, QPointF *pnew);
-
+
// Set and get the renderer type
void setType(RenderType2D type);
RenderType2D type();
-
+
// The list of things to render
KstBaseCurveList sources;
protected:
// Recompute auxilliary range information if the
// properties of the full plot have changed.
- void refreshRange();
-
+ void refreshRange();
+
// Range of plot in projected coordinates
QRectF _xyRange;
// Range of plot in native coordinates
QRectF _uvRange;
-
- // Axes
+
+ // Axes
Axis _xAxis, _yAxis;
// Axis styles
AxisStyle _xAxisStyle, _yAxisStyle;
-
+
private:
// Name of the plot
QString _name;
-
+
// Type of the plot
RenderType2D _type;
-
+
};
}
More information about the Kst
mailing list