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


\hyperlink{a00704}{Histogram} plot.  




{\ttfamily \#include $<$A\+C\+G/\+Qwt\+Widgets/\+Qwt\+Histogramm.\+hh$>$}

Inheritance diagram for Histogram\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a00704}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00704_aa8b54c1379a276a619a40a377428b93c}{enum {\bfseries Histogram\+Attribute} \{ {\bfseries Auto} = 0, 
{\bfseries Xfy} = 1
 \}}\label{a00704_aa8b54c1379a276a619a40a377428b93c}

\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00704_a3165f6e6b9ace46c6932d38d0325fe4f}{\hyperlink{a00704_a3165f6e6b9ace46c6932d38d0325fe4f}{Histogram} (const Q\+String \&title=Q\+String\+::null)}\label{a00704_a3165f6e6b9ace46c6932d38d0325fe4f}

\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hypertarget{a00704_a4b065888a7a5cfc2874781f661c636ee}{\hyperlink{a00704_a4b065888a7a5cfc2874781f661c636ee}{Histogram} (const Qwt\+Text \&title)}\label{a00704_a4b065888a7a5cfc2874781f661c636ee}

\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hypertarget{a00704_afbd077244c19d184ab1c8931aa4f0d4b}{virtual \hyperlink{a00704_afbd077244c19d184ab1c8931aa4f0d4b}{$\sim$\+Histogram} ()}\label{a00704_afbd077244c19d184ab1c8931aa4f0d4b}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
void \hyperlink{a00704_ade62828c2ab32fc44f3b8106f025c704}{set\+Data} (Qwt\+Interval\+Series\+Data $\ast$data)
\begin{DoxyCompactList}\small\item\em set data to render \end{DoxyCompactList}\item 
\hypertarget{a00704_a6d609d5f1b9f6ca0a9d0f7303f90bec3}{const Qwt\+Interval\+Series\+Data $\ast$ {\bfseries data} () const }\label{a00704_a6d609d5f1b9f6ca0a9d0f7303f90bec3}

\item 
void \hyperlink{a00704_a956cff73400162dd918663786d7df2cf}{set\+Colors} (std\+::vector$<$ Q\+Color $>$ \&\+\_\+colors)
\begin{DoxyCompactList}\small\item\em Set colors. \end{DoxyCompactList}\item 
\hypertarget{a00704_a33cd1c9e9c58ec86517b0e1f32f1d51f}{virtual Q\+Rect\+F \hyperlink{a00704_a33cd1c9e9c58ec86517b0e1f32f1d51f}{bounding\+Rect} () const }\label{a00704_a33cd1c9e9c58ec86517b0e1f32f1d51f}

\begin{DoxyCompactList}\small\item\em Function hat will return the datas bounding rectangle (for rendering) \end{DoxyCompactList}\item 
\hypertarget{a00704_a2637fbc3be570b9d35bc9bbcfbb87a30}{virtual int {\bfseries rtti} () const }\label{a00704_a2637fbc3be570b9d35bc9bbcfbb87a30}

\item 
\hypertarget{a00704_af1c3e0ce899e53996f2a24fa2a9692a4}{virtual void \hyperlink{a00704_af1c3e0ce899e53996f2a24fa2a9692a4}{draw} (Q\+Painter $\ast$, const Qwt\+Scale\+Map \&x\+Map, const Qwt\+Scale\+Map \&y\+Map, const Q\+Rect\+F \&) const }\label{a00704_af1c3e0ce899e53996f2a24fa2a9692a4}

\begin{DoxyCompactList}\small\item\em The actual draw function, drawing the bars inside the plot widget. \end{DoxyCompactList}\item 
\hypertarget{a00704_a61cca67f5bde3331b6e2838c884f9ffc}{void {\bfseries set\+Baseline} (double reference)}\label{a00704_a61cca67f5bde3331b6e2838c884f9ffc}

\item 
\hypertarget{a00704_a1e9e05cf7f630db5c119ca0ce0d1da50}{double {\bfseries baseline} () const }\label{a00704_a1e9e05cf7f630db5c119ca0ce0d1da50}

\item 
\hypertarget{a00704_ab933a1b8535e3bdb971aa241faebbc97}{void {\bfseries set\+Histogram\+Attribute} (Histogram\+Attribute, bool on=true)}\label{a00704_ab933a1b8535e3bdb971aa241faebbc97}

\item 
\hypertarget{a00704_a362b116d5e7431e71eb20ca0a85c375e}{bool {\bfseries test\+Histogram\+Attribute} (Histogram\+Attribute) const }\label{a00704_a362b116d5e7431e71eb20ca0a85c375e}

\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00704_aa370cd2db4d3ba549f8c06da67e93f90}{virtual void \hyperlink{a00704_aa370cd2db4d3ba549f8c06da67e93f90}{draw\+Bar} (Q\+Painter $\ast$, Qt\+::\+Orientation o, const Q\+Rect \&) const }\label{a00704_aa370cd2db4d3ba549f8c06da67e93f90}

\begin{DoxyCompactList}\small\item\em Draws a single bar. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00704_a97618c823dbff34dba7ea2d918278cd6}{Q\+Color {\bfseries color} (uint i) const }\label{a00704_a97618c823dbff34dba7ea2d918278cd6}

\item 
\hypertarget{a00704_ae7228f7aa6ff5aaf43b2bf9caf310379}{void {\bfseries init} ()}\label{a00704_ae7228f7aa6ff5aaf43b2bf9caf310379}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00704_a9810298c913881b7d8d2739864546ef5}{Private\+Data $\ast$ {\bfseries d\+\_\+data}}\label{a00704_a9810298c913881b7d8d2739864546ef5}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\hyperlink{a00704}{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{a00705_acc6d2ea50dbd32cb256e5d7da9a9b6f9}{Histogram\+Item\+::set\+Data()}. Additionally you can set colors for each bar, which are provided via \hyperlink{a00705_add39a3e4051e18e7b519c4489e551482}{Histogram\+Item\+::set\+Colors()} 

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



\subsection{Member Function Documentation}
\hypertarget{a00704_a956cff73400162dd918663786d7df2cf}{\index{Histogram@{Histogram}!set\+Colors@{set\+Colors}}
\index{set\+Colors@{set\+Colors}!Histogram@{Histogram}}
\subsubsection[{set\+Colors}]{\setlength{\rightskip}{0pt plus 5cm}void Histogram\+::set\+Colors (
\begin{DoxyParamCaption}
\item[{std\+::vector$<$ Q\+Color $>$ \&}]{\+\_\+colors}
\end{DoxyParamCaption}
)}}\label{a00704_a956cff73400162dd918663786d7df2cf}


Set colors. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+colors} & A vector of colors. One for each interval in the same order. \\
\hline
\end{DoxyParams}
\hypertarget{a00704_ade62828c2ab32fc44f3b8106f025c704}{\index{Histogram@{Histogram}!set\+Data@{set\+Data}}
\index{set\+Data@{set\+Data}!Histogram@{Histogram}}
\subsubsection[{set\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Histogram\+::set\+Data (
\begin{DoxyParamCaption}
\item[{Qwt\+Interval\+Series\+Data $\ast$}]{data}
\end{DoxyParamCaption}
)}}\label{a00704_ade62828c2ab32fc44f3b8106f025c704}


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 
A\+C\+G/\+Qwt\+Widgets/Qwt\+Histogramm.\+hh\end{DoxyCompactItemize}
