Eneboo - Documentación para desarrolladores
Clases | Tipos públicos | Slots públicos | Señales | Métodos públicos | Slots protegidos | Métodos protegidos | Métodos protegidos estáticos | Propiedades | Amigas
Referencia de la Clase QwtPlot

A 2-D plotting widget. Más...

#include <qwt_plot.h>

Diagrama de herencias de QwtPlot
QFrame QwtPlotDict QWidget QWidget QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject

Lista de todos los miembros.

Clases

class  AxisData
class  PrivateData

Tipos públicos

enum  Axis {
  yLeft, yRight, xBottom, xTop,
  axisCnt
}
 Axis index. Más...
enum  LegendPosition {
  LeftLegend, RightLegend, BottomLegend, TopLegend,
  ExternalLegend
}
 Position of the legend, relative to the canvas. Más...

Slots públicos

virtual void clear ()
 Remove all curves and markers.
virtual void replot ()
 Redraw the plot.
void autoRefresh ()
 Replots the plot if QwtPlot::autoReplot() is true.

Señales

void legendClicked (QwtPlotItem *plotItem)
void legendChecked (QwtPlotItem *plotItem, bool on)

Métodos públicos

 QwtPlot (QWidget *=NULL)
 Constructor.
 QwtPlot (const QwtText &title, QWidget *p=NULL)
 Constructor.
 QwtPlot (QWidget *, const char *name)
 Constructor.
virtual ~QwtPlot ()
 Destructor.
void applyProperties (const QString &)
QString grabProperties () const
void setAutoReplot (bool tf=true)
 Set or reset the autoReplot option.
bool autoReplot () const
void print (QPaintDevice &p, const QwtPlotPrintFilter &=QwtPlotPrintFilter()) const
 Print the plot to a QPaintDevice (QPrinter) This function prints the contents of a QwtPlot instance to QPaintDevice object. The size is derived from its device metrics.
virtual void print (QPainter *, const QRect &rect, const QwtPlotPrintFilter &=QwtPlotPrintFilter()) const
 Paint the plot into a given rectangle. Paint the contents of a QwtPlot instance into a given rectangle.
QwtPlotLayoutplotLayout ()
const QwtPlotLayoutplotLayout () const
void setMargin (int margin)
int margin () const
void setTitle (const QString &)
void setTitle (const QwtText &t)
QwtText title () const
QwtTextLabeltitleLabel ()
const QwtTextLabeltitleLabel () const
QwtPlotCanvascanvas ()
const QwtPlotCanvascanvas () const
void setCanvasBackground (const QColor &c)
 Change the background of the plotting area.
const QColorcanvasBackground () const
void setCanvasLineWidth (int w)
 Change the border width of the plotting area Nothing else than canvas()->setLineWidth(w), left for compatibility only.
int canvasLineWidth () const
virtual QwtScaleMap canvasMap (int axisId) const
double invTransform (int axisId, int pos) const
int transform (int axisId, double value) const
 Transform a value into a coordinate in the plotting region.
QwtScaleEngineaxisScaleEngine (int axisId)
const QwtScaleEngineaxisScaleEngine (int axisId) const
void setAxisScaleEngine (int axisId, QwtScaleEngine *)
void setAxisAutoScale (int axisId)
 Enable autoscaling for a specified axis.
bool axisAutoScale (int axisId) const
void enableAxis (int axisId, bool tf=true)
 Enable or disable a specified axis.
bool axisEnabled (int axisId) const
void setAxisFont (int axisId, const QFont &f)
 Change the font of an axis.
QFont axisFont (int axisId) const
void setAxisScale (int axisId, double min, double max, double step=0)
 Disable autoscaling and specify a fixed scale for a selected axis.
void setAxisScaleDiv (int axisId, const QwtScaleDiv &)
 Disable autoscaling and specify a fixed scale for a selected axis.
void setAxisScaleDraw (int axisId, QwtScaleDraw *)
 Set a scale draw.
double axisStepSize (int axisId) const
const QwtScaleDivaxisScaleDiv (int axisId) const
 Return the scale division of a specified axis.
QwtScaleDivaxisScaleDiv (int axisId)
 Return the scale division of a specified axis.
const QwtScaleDrawaxisScaleDraw (int axisId) const
QwtScaleDrawaxisScaleDraw (int axisId)
const QwtScaleWidgetaxisWidget (int axisId) const
QwtScaleWidgetaxisWidget (int axisId)
void setAxisLabelAlignment (int axisId, int)
void setAxisLabelRotation (int axisId, double rotation)
void setAxisTitle (int axisId, const QString &)
 Change the title of a specified axis.
void setAxisTitle (int axisId, const QwtText &)
 Change the title of a specified axis.
QwtText axisTitle (int axisId) const
void setAxisMaxMinor (int axisId, int maxMinor)
int axisMaxMajor (int axisId) const
void setAxisMaxMajor (int axisId, int maxMajor)
int axisMaxMinor (int axisId) const
void insertLegend (QwtLegend *, LegendPosition=QwtPlot::RightLegend, double ratio=-1.0)
 Insert a legend.
QwtLegendlegend ()
const QwtLegendlegend () const
virtual void polish ()
 Polish.
virtual QSize sizeHint () const
virtual QSize minimumSizeHint () const
 Return a minimum size hint.
virtual void updateLayout ()
 Adjust plot content to its current size.
virtual bool event (QEvent *)
 Adds handling of layout requests.

Slots protegidos

virtual void legendItemClicked ()
virtual void legendItemChecked (bool)

Métodos protegidos

virtual void drawCanvas (QPainter *)
virtual void drawItems (QPainter *, const QRect &, const QwtScaleMap maps[axisCnt], const QwtPlotPrintFilter &) const
virtual void updateTabOrder ()
void updateAxes ()
 Rebuild the scales.
virtual void resizeEvent (QResizeEvent *e)
 Resize and update internal layout.
virtual void printLegendItem (QPainter *, const QWidget *, const QRect &) const
virtual void printTitle (QPainter *, const QRect &) const
virtual void printScale (QPainter *, int axisId, int startDist, int endDist, int baseDist, const QRect &) const
 Paint a scale into a given rectangle. Paint the scale into a given rectangle.
virtual void printCanvas (QPainter *, const QRect &boundingRect, const QRect &canvasRect, const QwtScaleMap maps[axisCnt], const QwtPlotPrintFilter &) const
virtual void printLegend (QPainter *, const QRect &) const

Métodos protegidos estáticos

static bool axisValid (int axisId)

Propiedades

QString propertiesDocument

Amigas

class QwtPlotCanvas

Descripción detallada

A 2-D plotting widget.

QwtPlot is a widget for plotting two-dimensional graphs. An unlimited number of plot items can be displayed on its canvas. Plot items might be curves (QwtPlotCurve), markers (QwtPlotMarker), the grid (QwtPlotGrid), or anything else derived from QwtPlotItem. A plot can have up to four axes, with each plot item attached to an x- and a y axis. The scales at the axes can be explicitely set (QwtScaleDiv), or are calculated from the plot items, using algorithms (QwtScaleEngine) which can be configured separately for each axis.

plot.png
Example
The following example shows (schematically) the most simple way to use QwtPlot. By default, only the left and bottom axes are visible and their scales are computed automatically.
#include <qwt_plot.h>
#include <qwt_plot_curve.h>

QwtPlot *myPlot;
double x[100], y1[100], y2[100];        // x and y values

myPlot = new QwtPlot("Two Curves", parent);

// add curves
QwtPlotCurve *curve1 = new QwtPlotCurve("Curve 1");
QwtPlotCurve *curve2 = new QwtPlotCurve("Curve 2");

getSomeValues(x, y1, y2);

// copy the data into the curves
curve1->setData(x, y1, 100);
curve2->setData(x, y2, 100);

curve1->attach(myPlot);
curve2->attach(myPlot);

// finally, refresh the plot
myPlot->replot();

Documentación de las enumeraciones miembro de la clase

Axis index.

Valores de enumeraciones:
yLeft 
yRight 
xBottom 
xTop 
axisCnt 

Position of the legend, relative to the canvas.

ExternalLegend means that only the content of the legend will be handled by QwtPlot, but not its geometry. This might be interesting if an application wants to have a legend in an external window.

Valores de enumeraciones:
LeftLegend 
RightLegend 
BottomLegend 
TopLegend 
ExternalLegend 

Documentación del constructor y destructor

QwtPlot::QwtPlot ( QWidget parent = NULL) [explicit]

Constructor.

Parámetros:
parentParent widget
QwtPlot::QwtPlot ( const QwtText title,
QWidget parent = NULL 
) [explicit]

Constructor.

Parámetros:
titleTitle text
parentParent widget
QwtPlot::QwtPlot ( QWidget parent,
const char *  name 
) [explicit]

Constructor.

Parámetros:
parentParent widget
nameObject name
QwtPlot::~QwtPlot ( ) [virtual]

Destructor.


Documentación de las funciones miembro

void QwtPlot::applyProperties ( const QString xmlDocument)
void QwtPlot::autoRefresh ( ) [slot]

Replots the plot if QwtPlot::autoReplot() is true.

bool QwtPlot::autoReplot ( ) const
Devuelve:
true if the autoReplot option is set.
bool QwtPlot::axisAutoScale ( int  axisId) const
Devuelve:
true if autoscaling is enabled
Parámetros:
axisIdaxis index
bool QwtPlot::axisEnabled ( int  axisId) const
Devuelve:
true if a specified axis is enabled
Parámetros:
axisIdaxis index
QFont QwtPlot::axisFont ( int  axisId) const
Devuelve:
the font of the scale labels for a specified axis
Parámetros:
axisIdaxis index
int QwtPlot::axisMaxMajor ( int  axisId) const
Devuelve:
the maximum number of major ticks for a specified axis
Parámetros:
axisIdaxis index sa setAxisMaxMajor()
int QwtPlot::axisMaxMinor ( int  axisId) const
Devuelve:
the maximum number of minor ticks for a specified axis
Parámetros:
axisIdaxis index sa setAxisMaxMinor()
const QwtScaleDiv * QwtPlot::axisScaleDiv ( int  axisId) const

Return the scale division of a specified axis.

axisScaleDiv(axisId)->lBound(), axisScaleDiv(axisId)->hBound() are the current limits of the axis scale.

Parámetros:
axisIdaxis index
Devuelve:
Scale division
Ver también:
QwtScaleDiv, setAxisScaleDiv
QwtScaleDiv * QwtPlot::axisScaleDiv ( int  axisId)

Return the scale division of a specified axis.

axisScaleDiv(axisId)->lBound(), axisScaleDiv(axisId)->hBound() are the current limits of the axis scale.

Parámetros:
axisIdaxis index
Devuelve:
Scale division
Ver también:
QwtScaleDiv, setAxisScaleDiv
const QwtScaleDraw * QwtPlot::axisScaleDraw ( int  axisId) const
Devuelve:
the scale draw of a specified axis
Parámetros:
axisIdaxis index
Devuelve:
specified scaleDraw for axis, or NULL if axis is invalid.
Ver también:
QwtScaleDraw
QwtScaleDraw * QwtPlot::axisScaleDraw ( int  axisId)
Devuelve:
the scale draw of a specified axis
Parámetros:
axisIdaxis index
Devuelve:
specified scaleDraw for axis, or NULL if axis is invalid.
Ver también:
QwtScaleDraw
const QwtScaleEngine * QwtPlot::axisScaleEngine ( int  axisId) const
Devuelve:
Scale engine for a specific axis
QwtScaleEngine * QwtPlot::axisScaleEngine ( int  axisId)
Devuelve:
Scale engine for a specific axis
double QwtPlot::axisStepSize ( int  axisId) const

Return the step size parameter, that has been set in setAxisScale. This doesn't need to be the step size of the current scale.

Parámetros:
axisIdaxis index
Devuelve:
step size parameter value
Ver también:
setAxisScale
QwtText QwtPlot::axisTitle ( int  axisId) const
Devuelve:
the title of a specified axis
Parámetros:
axisIdaxis index
bool QwtPlot::axisValid ( int  axisId) [static, protected]
Devuelve:
true if the specified axis exists, otherwise false
Parámetros:
axisIdaxis index
const QwtScaleWidget * QwtPlot::axisWidget ( int  axisId) const
Devuelve:
specified axis, or NULL if axisId is invalid.
Parámetros:
axisIdaxis index
QwtScaleWidget * QwtPlot::axisWidget ( int  axisId)
Devuelve:
specified axis, or NULL if axisId is invalid.
Parámetros:
axisIdaxis index
QwtPlotCanvas * QwtPlot::canvas ( )
Devuelve:
the plot's canvas
const QwtPlotCanvas * QwtPlot::canvas ( ) const
Devuelve:
the plot's canvas
const QColor & QwtPlot::canvasBackground ( ) const

Nothing else than: canvas()->palette().color( QPalette::Normal, QColorGroup::Background);

Devuelve:
the background color of the plotting area.
int QwtPlot::canvasLineWidth ( ) const

Nothing else than: canvas()->lineWidth(), left for compatibility only.

Devuelve:
the border width of the plotting area
QwtScaleMap QwtPlot::canvasMap ( int  axisId) const [virtual]
Parámetros:
axisIdAxis
Devuelve:
Map for the axis on the canvas. With this map pixel coordinates can translated to plot coordinates and vice versa.
Ver también:
QwtScaleMap, transform(), invTransform()
void QwtPlot::clear ( void  ) [virtual, slot]

Remove all curves and markers.

void QwtPlot::drawCanvas ( QPainter painter) [protected, virtual]

Redraw the canvas.

Parámetros:
painterPainter used for drawing
Atención:
drawCanvas calls drawItems what is also used for printing. Applications that like to add individual plot items better overload drawItems()
Ver también:
drawItems()
void QwtPlot::drawItems ( QPainter painter,
const QRect rect,
const QwtScaleMap  map[axisCnt],
const QwtPlotPrintFilter pfilter 
) const [protected, virtual]

Redraw the canvas items.

Parámetros:
painterPainter used for drawing
rectBounding rectangle where to paint
mapQwtPlot::axisCnt maps, mapping between plot and paint device coordinates
pfilterPlot print filter
void QwtPlot::enableAxis ( int  axisId,
bool  tf = true 
)

Enable or disable a specified axis.

When an axis is disabled, this only means that it is not visible on the screen. Curves, markers and can be attached to disabled axes, and transformation of screen coordinates into values works as normal.

Only xBottom and yLeft are enabled by default.

Parámetros:
axisIdaxis index
tftrue (enabled) or false (disabled)
bool QwtPlot::event ( QEvent e) [virtual]

Adds handling of layout requests.

Reimplementado de QWidget.

QString QwtPlot::grabProperties ( ) const
void QwtPlot::insertLegend ( QwtLegend legend,
QwtPlot::LegendPosition  pos = QwtPlot::RightLegend,
double  ratio = -1.0 
)

Insert a legend.

If the position legend is QwtPlot::LeftLegend or QwtPlot::RightLegend the legend will be organized in one column from top to down. Otherwise the legend items will be placed in a table with a best fit number of columns from left to right.

If pos != QwtPlot::ExternalLegend the plot widget will become parent of the legend. It will be deleted when the plot is deleted, or another legend is set with insertLegend().

Parámetros:
legendLegend
posThe legend's position. For top/left position the number of colums will be limited to 1, otherwise it will be set to unlimited.
ratioRatio between legend and the bounding rect of title, canvas and axes. The legend will be shrinked if it would need more space than the given ratio. The ratio is limited to ]0.0 .. 1.0]. In case of <= 0.0 it will be reset to the default ratio. The default vertical/horizontal ratio is 0.33/0.5.
Ver también:
legend(), QwtPlotLayout::legendPosition(), QwtPlotLayout::setLegendPosition()
double QwtPlot::invTransform ( int  axisId,
int  pos 
) const

Transform the x or y coordinate of a position in the drawing region into a value.

Parámetros:
axisIdaxis index
posposition
Atención:
The position can be an x or a y coordinate, depending on the specified axis.
QwtLegend * QwtPlot::legend ( )
Devuelve:
the plot's legend
Ver también:
insertLegend()
const QwtLegend * QwtPlot::legend ( ) const
Devuelve:
the plot's legend
Ver también:
insertLegend()
void QwtPlot::legendChecked ( QwtPlotItem plotItem,
bool  on 
) [signal]

A signal which is emitted when the user has clicked on a legend item, which is in QwtLegend::CheckableItem mode

Parámetros:
plotItemCorresponding plot item of the selected legend item
onTrue when the legen item is checked
Nota:
clicks are disabled as default
Ver también:
QwtLegend::setItemMode, QwtLegend::itemMode
void QwtPlot::legendClicked ( QwtPlotItem plotItem) [signal]

A signal which is emitted when the user has clicked on a legend item, which is in QwtLegend::ClickableItem mode.

Parámetros:
plotItemCorresponding plot item of the selected legend item
Nota:
clicks are disabled as default
Ver también:
QwtLegend::setItemMode, QwtLegend::itemMode
void QwtPlot::legendItemChecked ( bool  on) [protected, virtual, slot]

Called internally when the legend has been checked Emits a legendClicked() signal.

void QwtPlot::legendItemClicked ( ) [protected, virtual, slot]

Called internally when the legend has been clicked on. Emits a legendClicked() signal.

int QwtPlot::margin ( ) const
Devuelve:
margin
Ver también:
setMargin(), QwtPlotLayout::margin(), plotLayout()

Reimplementado de QFrame.

QSize QwtPlot::minimumSizeHint ( ) const [virtual]

Return a minimum size hint.

Reimplementado de QWidget.

QwtPlotLayout * QwtPlot::plotLayout ( )
Devuelve:
the plot's title
const QwtPlotLayout * QwtPlot::plotLayout ( ) const
Devuelve:
the plot's titel label.
void QwtPlot::polish ( ) [virtual]

Polish.

Reimplementado de QWidget.

void QwtPlot::print ( QPaintDevice paintDev,
const QwtPlotPrintFilter pfilter = QwtPlotPrintFilter() 
) const

Print the plot to a QPaintDevice (QPrinter) This function prints the contents of a QwtPlot instance to QPaintDevice object. The size is derived from its device metrics.

Parámetros:
paintDevdevice to paint on, often a printer
pfilterprint filter
Ver también:
QwtPlot::print
QwtPlotPrintFilter
void QwtPlot::print ( QPainter painter,
const QRect plotRect,
const QwtPlotPrintFilter pfilter = QwtPlotPrintFilter() 
) const [virtual]

Paint the plot into a given rectangle. Paint the contents of a QwtPlot instance into a given rectangle.

Parámetros:
painterPainter
plotRectBounding rectangle
pfilterPrint filter
Ver también:
QwtPlotPrintFilter
void QwtPlot::printCanvas ( QPainter painter,
const QRect boundingRect,
const QRect canvasRect,
const QwtScaleMap  map[axisCnt],
const QwtPlotPrintFilter pfilter 
) const [protected, virtual]

Print the canvas into a given rectangle.

Parámetros:
painterPainter
mapMaps mapping between plot and paint device coordinates
boundingRectBounding rectangle
canvasRectCanvas rectangle
pfilterPrint filter
Ver también:
QwtPlotPrintFilter
void QwtPlot::printLegend ( QPainter painter,
const QRect rect 
) const [protected, virtual]

Print the legend into a given rectangle.

Parámetros:
painterPainter
rectBounding rectangle
void QwtPlot::printLegendItem ( QPainter painter,
const QWidget w,
const QRect rect 
) const [protected, virtual]

Print the legend item into a given rectangle.

Parámetros:
painterPainter
wWidget representing a legend item
rectBounding rectangle
void QwtPlot::printScale ( QPainter painter,
int  axisId,
int  startDist,
int  endDist,
int  baseDist,
const QRect rect 
) const [protected, virtual]

Paint a scale into a given rectangle. Paint the scale into a given rectangle.

Parámetros:
painterPainter
axisIdAxis
startDistStart border distance
endDistEnd border distance
baseDistBase distance
rectBounding rectangle
void QwtPlot::printTitle ( QPainter painter,
const QRect rect 
) const [protected, virtual]

Print the title into a given rectangle.

Parámetros:
painterPainter
rectBounding rectangle
void QwtPlot::replot ( ) [virtual, slot]

Redraw the plot.

If the autoReplot option is not set (which is the default) or if any curves are attached to raw data, the plot has to be refreshed explicitly in order to make changes visible.

Ver también:
setAutoReplot()
Atención:
Calls canvas()->repaint, take care of infinite recursions
void QwtPlot::resizeEvent ( QResizeEvent e) [protected, virtual]

Resize and update internal layout.

Reimplementado de QFrame.

void QwtPlot::setAutoReplot ( bool  tf = true)

Set or reset the autoReplot option.

If the autoReplot option is set, the plot will be updated implicitly by manipulating member functions. Since this may be time-consuming, it is recommended to leave this option switched off and call replot() explicitly if necessary.

The autoReplot option is set to false by default, which means that the user has to call replot() in order to make changes visible.

Parámetros:
tftrue or false. Defaults to true.
Ver también:
replot()
void QwtPlot::setAxisAutoScale ( int  axisId)

Enable autoscaling for a specified axis.

This member function is used to switch back to autoscaling mode after a fixed scale has been set. Autoscaling is enabled by default.

Parámetros:
axisIdaxis index
Ver también:
QwtPlot::setAxisScale(), QwtPlot::setAxisScaleDiv()
void QwtPlot::setAxisFont ( int  axisId,
const QFont f 
)

Change the font of an axis.

Parámetros:
axisIdaxis index
ffont
Atención:
This function changes the font of the tick labels, not of the axis title.
void QwtPlot::setAxisLabelAlignment ( int  axisId,
int  alignment 
)

Change the alignment of the tick labels

Parámetros:
axisIdaxis index
alignmentOr'd Qt::AlignmentFlags <see qnamespace.h>
Ver también:
QwtScaleDraw::setLabelAlignment()
void QwtPlot::setAxisLabelRotation ( int  axisId,
double  rotation 
)

Rotate all tick labels

Parámetros:
axisIdaxis index
rotationAngle in degrees. When changing the label rotation, the label alignment might be adjusted too.
Ver también:
QwtScaleDraw::setLabelRotation(), QwtPlot::setAxisLabelAlignment
void QwtPlot::setAxisMaxMajor ( int  axisId,
int  maxMajor 
)

Set the maximum number of major scale intervals for a specified axis

Parámetros:
axisIdaxis index
maxMajormaximum number of major steps
Ver también:
axisMaxMajor()
void QwtPlot::setAxisMaxMinor ( int  axisId,
int  maxMinor 
)

Set the maximum number of minor scale intervals for a specified axis

Parámetros:
axisIdaxis index
maxMinormaximum number of minor steps
Ver también:
axisMaxMinor()
void QwtPlot::setAxisScale ( int  axisId,
double  min,
double  max,
double  stepSize = 0 
)

Disable autoscaling and specify a fixed scale for a selected axis.

Parámetros:
axisIdaxis index
min
maxminimum and maximum of the scale
stepSizeMajor step size. If step == 0, the step size is calculated automatically using the maxMajor setting.
Ver también:
setAxisMaxMajor(), setAxisAutoScale()
void QwtPlot::setAxisScaleDiv ( int  axisId,
const QwtScaleDiv scaleDiv 
)

Disable autoscaling and specify a fixed scale for a selected axis.

Parámetros:
axisIdaxis index
scaleDivScale division
Ver también:
setAxisScale(), setAxisAutoScale()
void QwtPlot::setAxisScaleDraw ( int  axisId,
QwtScaleDraw scaleDraw 
)

Set a scale draw.

Parámetros:
axisIdaxis index
scaleDrawobject responsible for drawing scales.

By passing scaleDraw it is possible to extend QwtScaleDraw functionality and let it take place in QwtPlot. Please note that scaleDraw has to be created with new and will be deleted by the corresponding QwtScale member ( like a child object ).

Ver también:
QwtScaleDraw, QwtScaleWidget
Atención:
The attributes of scaleDraw will be overwritten by those of the previous QwtScaleDraw.
void QwtPlot::setAxisScaleEngine ( int  axisId,
QwtScaleEngine scaleEngine 
)

Change the scale engine for an axis

Parámetros:
axisIdaxis index
scaleEngineScale engine
Ver también:
axisScaleEngine()
void QwtPlot::setAxisTitle ( int  axisId,
const QString title 
)

Change the title of a specified axis.

Parámetros:
axisIdaxis index
titleaxis title
void QwtPlot::setAxisTitle ( int  axisId,
const QwtText title 
)

Change the title of a specified axis.

Parámetros:
axisIdaxis index
titleaxis title
void QwtPlot::setCanvasBackground ( const QColor c)

Change the background of the plotting area.

Sets c to QColorGroup::Background of all colorgroups of the palette of the canvas. Using canvas()->setPalette() is a more powerful way to set these colors.

Parámetros:
cnew background color
void QwtPlot::setCanvasLineWidth ( int  w)

Change the border width of the plotting area Nothing else than canvas()->setLineWidth(w), left for compatibility only.

Parámetros:
wnew border width
void QwtPlot::setMargin ( int  margin) [virtual]

Change the margin of the plot. The margin is the space around all components.

Parámetros:
marginnew margin
Ver también:
QwtPlotLayout::setMargin(), margin(), plotLayout()

Reimplementado de QFrame.

void QwtPlot::setTitle ( const QwtText title)

Change the plot's title

Parámetros:
titleNew title
void QwtPlot::setTitle ( const QString title)

Change the plot's title

Parámetros:
titleNew title
QSize QwtPlot::sizeHint ( ) const [virtual]

Return sizeHint

Ver también:
minimumSizeHint()

Reimplementado de QFrame.

QwtText QwtPlot::title ( ) const
Devuelve:
the plot's title
QwtTextLabel * QwtPlot::titleLabel ( )
Devuelve:
the plot's titel label.
const QwtTextLabel * QwtPlot::titleLabel ( ) const
Devuelve:
the plot's titel label.
int QwtPlot::transform ( int  axisId,
double  value 
) const

Transform a value into a coordinate in the plotting region.

Parámetros:
axisIdaxis index
valuevalue
Devuelve:
X or y coordinate in the plotting region corresponding to the value.
void QwtPlot::updateAxes ( ) [protected]

Rebuild the scales.

void QwtPlot::updateLayout ( ) [virtual]

Adjust plot content to its current size.

Ver también:
resizeEvent()
void QwtPlot::updateTabOrder ( ) [protected, virtual]

Update the focus tab order

The order is changed so that the canvas will be in front of the first legend item, or behind the last legend item - depending on the position of the legend.


Documentación de las funciones relacionadas y clases amigas

friend class QwtPlotCanvas [friend]

Documentación de propiedades

QString QwtPlot::propertiesDocument [read, write]

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'