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


\hyperlink{classHistogram}{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]{classHistogramItem}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classHistogramItem_af6fdd905c15ec4f991165da93b646087}\label{classHistogramItem_af6fdd905c15ec4f991165da93b646087}} 
enum {\bfseries Histogram\+Attribute} \{ {\bfseries Auto} = 0, 
{\bfseries Xfy} = 1
 \}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classHistogramItem_aa14597a93a31f76ea5ce29285baeea39}\label{classHistogramItem_aa14597a93a31f76ea5ce29285baeea39}} 
\hyperlink{classHistogramItem_aa14597a93a31f76ea5ce29285baeea39}{Histogram\+Item} (const Q\+String \&title=Q\+String\+::null)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classHistogramItem_af4c15b4a9e1f8ed45d82a1722082b41d}\label{classHistogramItem_af4c15b4a9e1f8ed45d82a1722082b41d}} 
\hyperlink{classHistogramItem_af4c15b4a9e1f8ed45d82a1722082b41d}{Histogram\+Item} (const Qwt\+Text \&title)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classHistogramItem_a34ab08e731d432901be3ee2783a01a25}\label{classHistogramItem_a34ab08e731d432901be3ee2783a01a25}} 
virtual \hyperlink{classHistogramItem_a34ab08e731d432901be3ee2783a01a25}{$\sim$\+Histogram\+Item} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
void \hyperlink{classHistogramItem_acc6d2ea50dbd32cb256e5d7da9a9b6f9}{set\+Data} (const Qwt\+Interval\+Data \&data)
\begin{DoxyCompactList}\small\item\em set data to render \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classHistogramItem_af5ac272b3affe5dccad8d264d7562e35}\label{classHistogramItem_af5ac272b3affe5dccad8d264d7562e35}} 
const Qwt\+Interval\+Data \& {\bfseries data} () const
\item 
void \hyperlink{classHistogramItem_add39a3e4051e18e7b519c4489e551482}{set\+Colors} (std\+::vector$<$ Q\+Color $>$ \&\+\_\+colors)
\begin{DoxyCompactList}\small\item\em Set colors. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classHistogramItem_a042ec63ddce4f0d8f9313b98ee44c106}\label{classHistogramItem_a042ec63ddce4f0d8f9313b98ee44c106}} 
virtual Qwt\+Double\+Rect \hyperlink{classHistogramItem_a042ec63ddce4f0d8f9313b98ee44c106}{bounding\+Rect} () const
\begin{DoxyCompactList}\small\item\em Function hat will return the datas bounding rectangle (for rendering) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classHistogramItem_a541966f8393aabf1c936bd6393c1267b}\label{classHistogramItem_a541966f8393aabf1c936bd6393c1267b}} 
virtual int {\bfseries rtti} () const
\item 
\mbox{\Hypertarget{classHistogramItem_aee1a57a2e47ac741b96ea0f5fcbe3b9a}\label{classHistogramItem_aee1a57a2e47ac741b96ea0f5fcbe3b9a}} 
virtual void \hyperlink{classHistogramItem_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{classHistogramItem_a7ab611967cf1d66c6fc25dd1ea0dcd82}\label{classHistogramItem_a7ab611967cf1d66c6fc25dd1ea0dcd82}} 
void {\bfseries set\+Baseline} (double reference)
\item 
\mbox{\Hypertarget{classHistogramItem_abe0da8a67af7f0b02dddaad7648f7565}\label{classHistogramItem_abe0da8a67af7f0b02dddaad7648f7565}} 
double {\bfseries baseline} () const
\item 
\mbox{\Hypertarget{classHistogramItem_a888a3dde58f922546a9ccf92bf332e83}\label{classHistogramItem_a888a3dde58f922546a9ccf92bf332e83}} 
void {\bfseries set\+Histogram\+Attribute} (Histogram\+Attribute, bool on=true)
\item 
\mbox{\Hypertarget{classHistogramItem_a78764fcd0c69d45ba68d0c1b2d544160}\label{classHistogramItem_a78764fcd0c69d45ba68d0c1b2d544160}} 
bool {\bfseries test\+Histogram\+Attribute} (Histogram\+Attribute) const
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classHistogramItem_a5a8a410cccebf2a8cf379de9bb21e9c8}\label{classHistogramItem_a5a8a410cccebf2a8cf379de9bb21e9c8}} 
virtual void \hyperlink{classHistogramItem_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{classHistogramItem_a1a5eacfb842d26c43d67aa355973df0f}\label{classHistogramItem_a1a5eacfb842d26c43d67aa355973df0f}} 
Q\+Color {\bfseries color} (uint i) const
\item 
\mbox{\Hypertarget{classHistogramItem_a6bd83b4457921a1d8644bde934bcc833}\label{classHistogramItem_a6bd83b4457921a1d8644bde934bcc833}} 
void {\bfseries init} ()
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classHistogramItem_a736b8c1e5787f6e877b4c97f7c1b88a4}\label{classHistogramItem_a736b8c1e5787f6e877b4c97f7c1b88a4}} 
Private\+Data $\ast$ {\bfseries d\+\_\+data}
\end{DoxyCompactItemize}


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