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


\hyperlink{a07736}{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]{a10660}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a10660_af6fdd905c15ec4f991165da93b646087}\label{a10660_af6fdd905c15ec4f991165da93b646087}} 
enum {\bfseries Histogram\+Attribute} \{ {\bfseries Auto} = 0, 
{\bfseries Xfy} = 1
 \}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a10660_aa14597a93a31f76ea5ce29285baeea39}\label{a10660_aa14597a93a31f76ea5ce29285baeea39}} 
\hyperlink{a10660_aa14597a93a31f76ea5ce29285baeea39}{Histogram\+Item} (const Q\+String \&title=Q\+String\+::null)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10660_af4c15b4a9e1f8ed45d82a1722082b41d}\label{a10660_af4c15b4a9e1f8ed45d82a1722082b41d}} 
\hyperlink{a10660_af4c15b4a9e1f8ed45d82a1722082b41d}{Histogram\+Item} (const Qwt\+Text \&title)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10660_a34ab08e731d432901be3ee2783a01a25}\label{a10660_a34ab08e731d432901be3ee2783a01a25}} 
virtual \hyperlink{a10660_a34ab08e731d432901be3ee2783a01a25}{$\sim$\+Histogram\+Item} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
void \hyperlink{a10660_acc6d2ea50dbd32cb256e5d7da9a9b6f9}{set\+Data} (const Qwt\+Interval\+Data \&data)
\begin{DoxyCompactList}\small\item\em set data to render \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10660_af5ac272b3affe5dccad8d264d7562e35}\label{a10660_af5ac272b3affe5dccad8d264d7562e35}} 
const Qwt\+Interval\+Data \& {\bfseries data} () const
\item 
void \hyperlink{a10660_add39a3e4051e18e7b519c4489e551482}{set\+Colors} (std\+::vector$<$ Q\+Color $>$ \&\+\_\+colors)
\begin{DoxyCompactList}\small\item\em Set colors. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10660_a042ec63ddce4f0d8f9313b98ee44c106}\label{a10660_a042ec63ddce4f0d8f9313b98ee44c106}} 
virtual Qwt\+Double\+Rect \hyperlink{a10660_a042ec63ddce4f0d8f9313b98ee44c106}{bounding\+Rect} () const
\begin{DoxyCompactList}\small\item\em Function hat will return the datas bounding rectangle (for rendering) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10660_a541966f8393aabf1c936bd6393c1267b}\label{a10660_a541966f8393aabf1c936bd6393c1267b}} 
virtual int {\bfseries rtti} () const
\item 
\mbox{\Hypertarget{a10660_aee1a57a2e47ac741b96ea0f5fcbe3b9a}\label{a10660_aee1a57a2e47ac741b96ea0f5fcbe3b9a}} 
virtual void \hyperlink{a10660_aee1a57a2e47ac741b96ea0f5fcbe3b9a}{draw} (Q\+Painter $\ast$, const Qwt\+Scale\+Map \&x\+Map, const Qwt\+Scale\+Map \&y\+Map, const Q\+Rect \&) const
\begin{DoxyCompactList}\small\item\em The actual draw function, drawing the bars inside the plot widget. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10660_a7ab611967cf1d66c6fc25dd1ea0dcd82}\label{a10660_a7ab611967cf1d66c6fc25dd1ea0dcd82}} 
void {\bfseries set\+Baseline} (double reference)
\item 
\mbox{\Hypertarget{a10660_abe0da8a67af7f0b02dddaad7648f7565}\label{a10660_abe0da8a67af7f0b02dddaad7648f7565}} 
double {\bfseries baseline} () const
\item 
\mbox{\Hypertarget{a10660_a888a3dde58f922546a9ccf92bf332e83}\label{a10660_a888a3dde58f922546a9ccf92bf332e83}} 
void {\bfseries set\+Histogram\+Attribute} (Histogram\+Attribute, bool on=true)
\item 
\mbox{\Hypertarget{a10660_a78764fcd0c69d45ba68d0c1b2d544160}\label{a10660_a78764fcd0c69d45ba68d0c1b2d544160}} 
bool {\bfseries test\+Histogram\+Attribute} (Histogram\+Attribute) const
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a10660_a5a8a410cccebf2a8cf379de9bb21e9c8}\label{a10660_a5a8a410cccebf2a8cf379de9bb21e9c8}} 
virtual void \hyperlink{a10660_a5a8a410cccebf2a8cf379de9bb21e9c8}{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{a10660_a1a5eacfb842d26c43d67aa355973df0f}\label{a10660_a1a5eacfb842d26c43d67aa355973df0f}} 
Q\+Color {\bfseries color} (uint i) const
\item 
\mbox{\Hypertarget{a10660_a6bd83b4457921a1d8644bde934bcc833}\label{a10660_a6bd83b4457921a1d8644bde934bcc833}} 
void {\bfseries init} ()
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a10660_a736b8c1e5787f6e877b4c97f7c1b88a4}\label{a10660_a736b8c1e5787f6e877b4c97f7c1b88a4}} 
Private\+Data $\ast$ {\bfseries d\+\_\+data}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\hyperlink{a07736}{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{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()}

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

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



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a10660_add39a3e4051e18e7b519c4489e551482}\label{a10660_add39a3e4051e18e7b519c4489e551482}} 
\index{Histogram\+Item@{Histogram\+Item}!set\+Colors@{set\+Colors}}
\index{set\+Colors@{set\+Colors}!Histogram\+Item@{Histogram\+Item}}
\subsubsection{\texorpdfstring{set\+Colors()}{setColors()}}
{\footnotesize\ttfamily void Histogram\+Item\+::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{a10660_acc6d2ea50dbd32cb256e5d7da9a9b6f9}\label{a10660_acc6d2ea50dbd32cb256e5d7da9a9b6f9}} 
\index{Histogram\+Item@{Histogram\+Item}!set\+Data@{set\+Data}}
\index{set\+Data@{set\+Data}!Histogram\+Item@{Histogram\+Item}}
\subsubsection{\texorpdfstring{set\+Data()}{setData()}}
{\footnotesize\ttfamily void Histogram\+Item\+::set\+Data (\begin{DoxyParamCaption}\item[{const Qwt\+Interval\+Data \&}]{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 
Plugin-\/\+Texture\+Control/Histogram\+Item.\+hh\end{DoxyCompactItemize}
