qwt_plot_abstract_barchart.h
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 #ifndef QWT_PLOT_ABSTRACT_BAR_CHART_H
00011 #define QWT_PLOT_ABSTRACT_BAR_CHART_H
00012 
00013 #include "qwt_global.h"
00014 #include "qwt_plot_seriesitem.h"
00015 #include "qwt_series_data.h"
00016 
00025 class QWT_EXPORT QwtPlotAbstractBarChart: public QwtPlotSeriesItem
00026 {
00027 public:
00033     enum LayoutPolicy
00034     {
00042         AutoAdjustSamples,
00043 
00047         ScaleSamplesToAxes,
00048 
00055         ScaleSampleToCanvas,
00056 
00060         FixedSampleSize
00061     };
00062 
00063     explicit QwtPlotAbstractBarChart( const QwtText &title );
00064     virtual ~QwtPlotAbstractBarChart();
00065 
00066     void setLayoutPolicy( LayoutPolicy );
00067     LayoutPolicy layoutPolicy() const;
00068 
00069     void setLayoutHint( double );
00070     double layoutHint() const;
00071 
00072     void setSpacing( int );
00073     int spacing() const;
00074 
00075     void setMargin( int );
00076     int margin() const;
00077 
00078     void setBaseline( double );
00079     double baseline() const;
00080 
00081     virtual void getCanvasMarginHint( 
00082         const QwtScaleMap &xMap, const QwtScaleMap &yMap,
00083         const QRectF &canvasRect,
00084         double &left, double &top, double &right, double &bottom) const;
00085 
00086 
00087 protected:
00088     double sampleWidth( const QwtScaleMap &map,
00089         double canvasSize, double dataSize,
00090         double value ) const;
00091 
00092 private:
00093     class PrivateData;
00094     PrivateData *d_data;
00095 };
00096 
00097 #endif


plotjuggler
Author(s): Davide Faconti
autogenerated on Wed Jul 3 2019 19:28:05