\hypertarget{a07736}{}\section{Histogram Class Reference}
\label{a07736}\index{Histogram@{Histogram}}


\hyperlink{a07736}{Histogram} plot.  




{\ttfamily \#include $<$Open\+Flipper/libs\+\_\+required/\+A\+C\+G/\+Qwt\+Widgets/\+Qwt\+Histogramm.\+hh$>$}

Inheritance diagram for Histogram\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a07736}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a07736_aa8b54c1379a276a619a40a377428b93c}\label{a07736_aa8b54c1379a276a619a40a377428b93c}} 
enum {\bfseries Histogram\+Attribute} \{ {\bfseries Auto} = 0, 
{\bfseries Xfy} = 1
 \}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a07736_a3165f6e6b9ace46c6932d38d0325fe4f}\label{a07736_a3165f6e6b9ace46c6932d38d0325fe4f}} 
\hyperlink{a07736_a3165f6e6b9ace46c6932d38d0325fe4f}{Histogram} (const Q\+String \&title=Q\+String\+::null)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07736_a4b065888a7a5cfc2874781f661c636ee}\label{a07736_a4b065888a7a5cfc2874781f661c636ee}} 
\hyperlink{a07736_a4b065888a7a5cfc2874781f661c636ee}{Histogram} (const Qwt\+Text \&title)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07736_afbd077244c19d184ab1c8931aa4f0d4b}\label{a07736_afbd077244c19d184ab1c8931aa4f0d4b}} 
virtual \hyperlink{a07736_afbd077244c19d184ab1c8931aa4f0d4b}{$\sim$\+Histogram} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
void \hyperlink{a07736_ade62828c2ab32fc44f3b8106f025c704}{set\+Data} (Qwt\+Interval\+Series\+Data $\ast$data)
\begin{DoxyCompactList}\small\item\em set data to render \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07736_a09f168694d003bd6786e0bb7c53d449d}\label{a07736_a09f168694d003bd6786e0bb7c53d449d}} 
const Qwt\+Interval\+Series\+Data $\ast$ {\bfseries data} () const
\item 
void \hyperlink{a07736_a956cff73400162dd918663786d7df2cf}{set\+Colors} (std\+::vector$<$ Q\+Color $>$ \&\+\_\+colors)
\begin{DoxyCompactList}\small\item\em Set colors. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07736_a4430706f2852707e2833c61b8b90ebb1}\label{a07736_a4430706f2852707e2833c61b8b90ebb1}} 
virtual Q\+RectF \hyperlink{a07736_a4430706f2852707e2833c61b8b90ebb1}{bounding\+Rect} () const
\begin{DoxyCompactList}\small\item\em Function hat will return the datas bounding rectangle (for rendering) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07736_ad62753c8a9f1fcf13449b0799355d13c}\label{a07736_ad62753c8a9f1fcf13449b0799355d13c}} 
virtual int {\bfseries rtti} () const
\item 
\mbox{\Hypertarget{a07736_a1f9b1b04e2fe51a4dbafcc1db73102bd}\label{a07736_a1f9b1b04e2fe51a4dbafcc1db73102bd}} 
virtual void \hyperlink{a07736_a1f9b1b04e2fe51a4dbafcc1db73102bd}{draw} (Q\+Painter $\ast$, const Qwt\+Scale\+Map \&x\+Map, const Qwt\+Scale\+Map \&y\+Map, const Q\+RectF \&) const
\begin{DoxyCompactList}\small\item\em The actual draw function, drawing the bars inside the plot widget. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07736_a61cca67f5bde3331b6e2838c884f9ffc}\label{a07736_a61cca67f5bde3331b6e2838c884f9ffc}} 
void {\bfseries set\+Baseline} (double reference)
\item 
\mbox{\Hypertarget{a07736_a575dab029ad78f018f0d5fdc22e57541}\label{a07736_a575dab029ad78f018f0d5fdc22e57541}} 
double {\bfseries baseline} () const
\item 
\mbox{\Hypertarget{a07736_ab933a1b8535e3bdb971aa241faebbc97}\label{a07736_ab933a1b8535e3bdb971aa241faebbc97}} 
void {\bfseries set\+Histogram\+Attribute} (Histogram\+Attribute, bool on=true)
\item 
\mbox{\Hypertarget{a07736_a4c92e66868d16af72f78f0375df5afa8}\label{a07736_a4c92e66868d16af72f78f0375df5afa8}} 
bool {\bfseries test\+Histogram\+Attribute} (Histogram\+Attribute) const
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a07736_acbd38329ecf94ff2407744c865e34f91}\label{a07736_acbd38329ecf94ff2407744c865e34f91}} 
virtual void \hyperlink{a07736_acbd38329ecf94ff2407744c865e34f91}{draw\+Bar} (Q\+Painter $\ast$, Qt\+::\+Orientation o, const Q\+Rect \&) const
\begin{DoxyCompactList}\small\item\em Draws a single bar. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a07736_a85895916dfdad39e9a2fccc7218d0816}\label{a07736_a85895916dfdad39e9a2fccc7218d0816}} 
Q\+Color {\bfseries color} (uint i) const
\item 
\mbox{\Hypertarget{a07736_ae7228f7aa6ff5aaf43b2bf9caf310379}\label{a07736_ae7228f7aa6ff5aaf43b2bf9caf310379}} 
void {\bfseries init} ()
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a07736_a9810298c913881b7d8d2739864546ef5}\label{a07736_a9810298c913881b7d8d2739864546ef5}} 
Private\+Data $\ast$ {\bfseries d\+\_\+data}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\hyperlink{a07736}{Histogram} plot. 

This plot can be used to render a plot. It provides the plot management and drawing functions for histograms. The data is supplied as Qwt\+Interval\+Data via \hyperlink{a10660_acc6d2ea50dbd32cb256e5d7da9a9b6f9}{Histogram\+Item\+::set\+Data()}. Additionally you can set colors for each bar, which are provided via \hyperlink{a10660_add39a3e4051e18e7b519c4489e551482}{Histogram\+Item\+::set\+Colors()} 

Definition at line 63 of file Qwt\+Histogramm.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a07736_a956cff73400162dd918663786d7df2cf}\label{a07736_a956cff73400162dd918663786d7df2cf}} 
\index{Histogram@{Histogram}!set\+Colors@{set\+Colors}}
\index{set\+Colors@{set\+Colors}!Histogram@{Histogram}}
\subsubsection{\texorpdfstring{set\+Colors()}{setColors()}}
{\footnotesize\ttfamily void Histogram\+::set\+Colors (\begin{DoxyParamCaption}\item[{std\+::vector$<$ Q\+Color $>$ \&}]{\+\_\+colors }\end{DoxyParamCaption})}



Set colors. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+colors} & A vector of colors. One for each interval in the same order. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{a07736_ade62828c2ab32fc44f3b8106f025c704}\label{a07736_ade62828c2ab32fc44f3b8106f025c704}} 
\index{Histogram@{Histogram}!set\+Data@{set\+Data}}
\index{set\+Data@{set\+Data}!Histogram@{Histogram}}
\subsubsection{\texorpdfstring{set\+Data()}{setData()}}
{\footnotesize\ttfamily void Histogram\+::set\+Data (\begin{DoxyParamCaption}\item[{Qwt\+Interval\+Series\+Data $\ast$}]{data }\end{DoxyParamCaption})}



set data to render 


\begin{DoxyParams}{Parameters}
{\em data} & data provided as Qwt\+Interval\+Data \\
\hline
\end{DoxyParams}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/libs\+\_\+required/\+A\+C\+G/\+Qwt\+Widgets/Qwt\+Histogramm.\+hh\end{DoxyCompactItemize}
