Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

qwt_plot_grid.cpp

Go to the documentation of this file.
00001 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
00002  * Qwt Widget Library
00003  * Copyright (C) 1997   Josef Wilgen
00004  * Copyright (C) 2002   Uwe Rathmann
00005  * 
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the Qwt License, Version 1.0
00008  *****************************************************************************/
00009 
00010 #include "qwt_plot.h"
00011 #include "qwt_math.h"
00012 
00014 QwtPlotGrid &QwtPlot::grid()
00015 {
00016     return *d_grid;
00017 }
00018 
00020 const QwtPlotGrid &QwtPlot::grid() const
00021 {
00022     return *d_grid;
00023 }
00024 
00030 void QwtPlot::enableGridX(bool tf)
00031 {
00032     d_grid->enableX(tf);
00033 }
00034 
00040 void QwtPlot::enableGridY(bool tf)
00041 {
00042     d_grid->enableY(tf);
00043 }
00044 
00049 void QwtPlot::enableGridXMin(bool tf)
00050 {
00051     d_grid->enableXMin(tf);
00052 }
00053 
00058 void QwtPlot::enableGridYMin(bool tf)
00059 {
00060     d_grid->enableYMin(tf);
00061 }
00062 
00063 
00068 void QwtPlot::setGridXAxis(int axis)
00069 {
00070     if ((axis==xBottom)||(axis==xTop))
00071     {
00072         d_grid->setXAxis(axis);
00073         d_grid->setXDiv(d_sdiv[axis]);
00074     }
00075 }
00076 
00081 int QwtPlot::gridXAxis() const
00082 {
00083     return d_grid->xAxis();
00084 }
00085 
00090 void QwtPlot::setGridYAxis(int axis)
00091 {
00092     if ((axis==yLeft) || (axis == yRight))
00093     {
00094         d_grid->setYAxis(axis);
00095         d_grid->setYDiv(d_sdiv[axis]);
00096     }
00097 }
00098 
00103 int QwtPlot::gridYAxis() const
00104 {
00105     return d_grid->yAxis();
00106 }
00107 
00112 void QwtPlot::setGridPen(const QPen &p)
00113 {
00114     d_grid->setPen(p);
00115 }
00116 
00121 void QwtPlot::setGridMinPen(const QPen &p)
00122 {
00123     d_grid->setMinPen(p);
00124 }
00125 
00130 const QPen& QwtPlot::gridMinPen() const
00131 {
00132     return d_grid->minPen();
00133 }
00134 
00139 void QwtPlot::setGridMajPen(const QPen &p)
00140 {
00141     d_grid->setMajPen(p);
00142 }
00143 
00148 const QPen& QwtPlot::gridMajPen() const
00149 {
00150     return d_grid->majPen();
00151 }

Generated on Fri Nov 7 14:11:45 2003 for Qwt Developer's Guide by doxygen 1.3.2