QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
qgsrasterhistogramwidget.cpp File Reference
#include "qgsapplication.h"
#include "qgisgui.h"
#include "qgsrasterrendererregistry.h"
#include "qgsrasterrendererwidget.h"
#include "qgsrasterhistogramwidget.h"
#include <QMenu>
#include <QFileInfo>
#include <QDir>
#include <QPainter>
#include <QSettings>
#include <qwt_global.h>
#include <qwt_plot_canvas.h>
#include <qwt_legend.h>
#include <qwt_plot.h>
#include <qwt_plot_curve.h>
#include <qwt_plot_grid.h>
#include <qwt_plot_marker.h>
#include <qwt_plot_picker.h>
#include <qwt_picker_machine.h>
#include <qwt_plot_zoomer.h>
#include <qwt_plot_layout.h>
#include "qwt5_histogram_item.h"
Include dependency graph for qgsrasterhistogramwidget.cpp:

Go to the source code of this file.

Functions

QString findClosestTickVal (double target, const QwtScaleDiv *scale, int div=100)
 

Function Documentation

QString findClosestTickVal ( double  target,
const QwtScaleDiv *  scale,
int  div = 100 
)

Definition at line 1036 of file qgsrasterhistogramwidget.cpp.

References pal::max(), and pal::min().

Referenced by QgsRasterHistogramWidget::histoPickerSelected().