\hypertarget{a00705}{\section{Histogram\+Item Class Reference}
\label{a00705}\index{Histogram\+Item@{Histogram\+Item}}
}


\hyperlink{a00704}{Histogram} plotting widget.  




{\ttfamily \#include $<$Plugin-\/\+Texture\+Control/\+Histogram\+Item.\+hh$>$}

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

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

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

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

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
void \hyperlink{a00705_acc6d2ea50dbd32cb256e5d7da9a9b6f9}{set\+Data} (const Qwt\+Interval\+Data \&data)
\begin{DoxyCompactList}\small\item\em set data to render \end{DoxyCompactList}\item 
\hypertarget{a00705_a4b579bf2cc4a269d1be80259431449c7}{const Qwt\+Interval\+Data \& {\bfseries data} () const }\label{a00705_a4b579bf2cc4a269d1be80259431449c7}

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

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

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

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

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

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

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

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

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

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

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

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\hyperlink{a00704}{Histogram} plotting widget. 

This widget can be used to render a plot. It provides a Qt widget with histogram bars. 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()}

!!!!!!!!!!! This class is deprecated !!!!!!!!!!! !!!!!!!!! Use the one from A\+C\+G/\+Qt\+Widgets which is for qwt6 !!!!!!!!!!!!!!!!!! 

Definition at line 72 of file Histogram\+Item.\+hh.



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


Set colors. 


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


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 
Plugin-\/\+Texture\+Control/Histogram\+Item.\+hh\end{DoxyCompactItemize}
