\hypertarget{class_q_c_p_statistical_box}{}\section{Q\+C\+P\+Statistical\+Box Class Reference} \label{class_q_c_p_statistical_box}\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}} A plottable representing a single statistical box in a plot. Inheritance diagram for Q\+C\+P\+Statistical\+Box\+:\begin{figure}[H] \begin{center} \leavevmode \includegraphics[height=4.000000cm]{class_q_c_p_statistical_box} \end{center} \end{figure} \subsection*{Public Member Functions} \begin{DoxyCompactItemize} \item \hyperlink{class_q_c_p_statistical_box_a75c2b3e7fcd0741cc981693a2ba63b27}{Q\+C\+P\+Statistical\+Box} (\hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis} $\ast$key\+Axis, \hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis} $\ast$value\+Axis) \item \hypertarget{class_q_c_p_statistical_box_a767af754f39872d6308b900a0d1758ca}{}double {\bfseries key} () const \label{class_q_c_p_statistical_box_a767af754f39872d6308b900a0d1758ca} \item \hypertarget{class_q_c_p_statistical_box_acd94c05d59c05d9146d3b60d9f52df82}{}double {\bfseries minimum} () const \label{class_q_c_p_statistical_box_acd94c05d59c05d9146d3b60d9f52df82} \item \hypertarget{class_q_c_p_statistical_box_af9c4a98f5ca95b5a5a8b140f57b64ace}{}double {\bfseries lower\+Quartile} () const \label{class_q_c_p_statistical_box_af9c4a98f5ca95b5a5a8b140f57b64ace} \item \hypertarget{class_q_c_p_statistical_box_a44abdee617fe0bca72e6a2ea3fd492de}{}double {\bfseries median} () const \label{class_q_c_p_statistical_box_a44abdee617fe0bca72e6a2ea3fd492de} \item \hypertarget{class_q_c_p_statistical_box_abd15951907b54343a89b1f7feddcb7a7}{}double {\bfseries upper\+Quartile} () const \label{class_q_c_p_statistical_box_abd15951907b54343a89b1f7feddcb7a7} \item \hypertarget{class_q_c_p_statistical_box_a928bcf07dd2176affad91d85be03172f}{}double {\bfseries maximum} () const \label{class_q_c_p_statistical_box_a928bcf07dd2176affad91d85be03172f} \item \hypertarget{class_q_c_p_statistical_box_a73eaa2f800b47e3832d7f09ad1f3b7e0}{}Q\+Vector$<$ double $>$ {\bfseries outliers} () const \label{class_q_c_p_statistical_box_a73eaa2f800b47e3832d7f09ad1f3b7e0} \item \hypertarget{class_q_c_p_statistical_box_a0733a7bd575fc5929ce6d507bcc2a04c}{}double {\bfseries width} () const \label{class_q_c_p_statistical_box_a0733a7bd575fc5929ce6d507bcc2a04c} \item \hypertarget{class_q_c_p_statistical_box_ab02392dd54ebd6dd7c8d6fb5c3f0421c}{}double {\bfseries whisker\+Width} () const \label{class_q_c_p_statistical_box_ab02392dd54ebd6dd7c8d6fb5c3f0421c} \item \hypertarget{class_q_c_p_statistical_box_a26d2b34cbaeac2dd639bb21590f317c4}{}Q\+Pen {\bfseries whisker\+Pen} () const \label{class_q_c_p_statistical_box_a26d2b34cbaeac2dd639bb21590f317c4} \item \hypertarget{class_q_c_p_statistical_box_ab151a727fb0b6396acb3b6c72505a4fe}{}Q\+Pen {\bfseries whisker\+Bar\+Pen} () const \label{class_q_c_p_statistical_box_ab151a727fb0b6396acb3b6c72505a4fe} \item \hypertarget{class_q_c_p_statistical_box_a96aa0bb650b83e9dfa0387ca4db7fa05}{}Q\+Pen {\bfseries median\+Pen} () const \label{class_q_c_p_statistical_box_a96aa0bb650b83e9dfa0387ca4db7fa05} \item \hypertarget{class_q_c_p_statistical_box_ab7e5a68bce97ba43a7ff18e074c4dcad}{}\hyperlink{class_q_c_p_scatter_style}{Q\+C\+P\+Scatter\+Style} {\bfseries outlier\+Style} () const \label{class_q_c_p_statistical_box_ab7e5a68bce97ba43a7ff18e074c4dcad} \item void \hyperlink{class_q_c_p_statistical_box_a84a1c6d34b2f9af40bca0c527d51e97e}{set\+Key} (double key) \item void \hyperlink{class_q_c_p_statistical_box_a84ff7cc61ba44890f0c3e0c99c19941e}{set\+Minimum} (double value) \item void \hyperlink{class_q_c_p_statistical_box_a680941af5e23d902013962fa67223f9e}{set\+Lower\+Quartile} (double value) \item void \hyperlink{class_q_c_p_statistical_box_a65970e77a897da4ecb4b15300868aad3}{set\+Median} (double value) \item void \hyperlink{class_q_c_p_statistical_box_a65a1375f941c5a2077b5201229e89346}{set\+Upper\+Quartile} (double value) \item void \hyperlink{class_q_c_p_statistical_box_acec5ad1901f00f2c5387cfb4d9787eb3}{set\+Maximum} (double value) \item void \hyperlink{class_q_c_p_statistical_box_af9bc09620e0bf93bf444ee35e5800d1d}{set\+Outliers} (const Q\+Vector$<$ double $>$ \&values) \item void \hyperlink{class_q_c_p_statistical_box_adf50c57b635edb12470c0e4a986aff37}{set\+Data} (double key, double minimum, double lower\+Quartile, double median, double upper\+Quartile, double maximum) \item void \hyperlink{class_q_c_p_statistical_box_a0b62775bd67301b1eba5c785f2b26f14}{set\+Width} (double width) \item void \hyperlink{class_q_c_p_statistical_box_adf378812446bd66f34d1f7f293d991cd}{set\+Whisker\+Width} (double width) \item void \hyperlink{class_q_c_p_statistical_box_a4a5034cb3b9b040444df05ab1684620b}{set\+Whisker\+Pen} (const Q\+Pen \&pen) \item void \hyperlink{class_q_c_p_statistical_box_aa8d3e503897788e1abf68dc74b5f147f}{set\+Whisker\+Bar\+Pen} (const Q\+Pen \&pen) \item void \hyperlink{class_q_c_p_statistical_box_a7260ac55b669f5d0a74f16d5ca84c52c}{set\+Median\+Pen} (const Q\+Pen \&pen) \item void \hyperlink{class_q_c_p_statistical_box_ad5241943422eb8e58360a97e99ad6aa7}{set\+Outlier\+Style} (const \hyperlink{class_q_c_p_scatter_style}{Q\+C\+P\+Scatter\+Style} \&style) \item virtual void \hyperlink{class_q_c_p_statistical_box_a19112994449df0c20287858436cc68e3}{clear\+Data} () \item virtual double \hyperlink{class_q_c_p_statistical_box_a7d3ac843dc48a085740fdfc4319a89cc}{select\+Test} (const Q\+Point\+F \&pos, bool only\+Selectable, Q\+Variant $\ast$details=0) const \end{DoxyCompactItemize} \subsection*{Protected Member Functions} \begin{DoxyCompactItemize} \item \hypertarget{class_q_c_p_statistical_box_a753b62761217dd6b92f8a29e286a1317}{}virtual void {\bfseries draw} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter)\label{class_q_c_p_statistical_box_a753b62761217dd6b92f8a29e286a1317} \item \hypertarget{class_q_c_p_statistical_box_a51764ed423fa02d3ef63f6848851ec33}{}virtual void {\bfseries draw\+Legend\+Icon} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter, const Q\+Rect\+F \&rect) const \label{class_q_c_p_statistical_box_a51764ed423fa02d3ef63f6848851ec33} \item \hypertarget{class_q_c_p_statistical_box_a2f66940ae92d7ad438834c861fc2d57f}{}virtual \hyperlink{class_q_c_p_range}{Q\+C\+P\+Range} {\bfseries get\+Key\+Range} (bool \&valid\+Range, \hyperlink{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8}{Sign\+Domain} in\+Sign\+Domain=\hyperlink{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8a082b98cfb91a7363a3b5cd17b0c1cd60}{sd\+Both}) const \label{class_q_c_p_statistical_box_a2f66940ae92d7ad438834c861fc2d57f} \item \hypertarget{class_q_c_p_statistical_box_a2db77e9a3c2cc016381340968a250be0}{}virtual \hyperlink{class_q_c_p_range}{Q\+C\+P\+Range} {\bfseries get\+Value\+Range} (bool \&valid\+Range, \hyperlink{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8}{Sign\+Domain} in\+Sign\+Domain=\hyperlink{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8a082b98cfb91a7363a3b5cd17b0c1cd60}{sd\+Both}) const \label{class_q_c_p_statistical_box_a2db77e9a3c2cc016381340968a250be0} \item \hypertarget{class_q_c_p_statistical_box_a9ad0abdb154fefb04e9872f0db8e2ec7}{}virtual void {\bfseries draw\+Quartile\+Box} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter, Q\+Rect\+F $\ast$quartile\+Box=0) const \label{class_q_c_p_statistical_box_a9ad0abdb154fefb04e9872f0db8e2ec7} \item \hypertarget{class_q_c_p_statistical_box_a16fef8bc19e5a09d82033edcfe919495}{}virtual void {\bfseries draw\+Median} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter) const \label{class_q_c_p_statistical_box_a16fef8bc19e5a09d82033edcfe919495} \item \hypertarget{class_q_c_p_statistical_box_a6f8d093ec7e404529388d02da4c72b34}{}virtual void {\bfseries draw\+Whiskers} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter) const \label{class_q_c_p_statistical_box_a6f8d093ec7e404529388d02da4c72b34} \item \hypertarget{class_q_c_p_statistical_box_a60ebb332a497f51ace837767db5105b9}{}virtual void {\bfseries draw\+Outliers} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter) const \label{class_q_c_p_statistical_box_a60ebb332a497f51ace837767db5105b9} \end{DoxyCompactItemize} \subsection*{Protected Attributes} \begin{DoxyCompactItemize} \item \hypertarget{class_q_c_p_statistical_box_a415e2f77a89396c2af999afe027bdf6c}{}Q\+Vector$<$ double $>$ {\bfseries m\+Outliers}\label{class_q_c_p_statistical_box_a415e2f77a89396c2af999afe027bdf6c} \item \hypertarget{class_q_c_p_statistical_box_a86fd1d3be5c5bc11d11eda7517069af4}{}double {\bfseries m\+Key}\label{class_q_c_p_statistical_box_a86fd1d3be5c5bc11d11eda7517069af4} \item \hypertarget{class_q_c_p_statistical_box_a7143ece4e7e5f9ac010739fbc390bf0c}{}double {\bfseries m\+Minimum}\label{class_q_c_p_statistical_box_a7143ece4e7e5f9ac010739fbc390bf0c} \item \hypertarget{class_q_c_p_statistical_box_acac86cac93d9fa3d820b5aaa04ed96f6}{}double {\bfseries m\+Lower\+Quartile}\label{class_q_c_p_statistical_box_acac86cac93d9fa3d820b5aaa04ed96f6} \item \hypertarget{class_q_c_p_statistical_box_ae43287ca13c8166bde2ac19bf0969d23}{}double {\bfseries m\+Median}\label{class_q_c_p_statistical_box_ae43287ca13c8166bde2ac19bf0969d23} \item \hypertarget{class_q_c_p_statistical_box_a865afbcca332ee851aa45807381bc80e}{}double {\bfseries m\+Upper\+Quartile}\label{class_q_c_p_statistical_box_a865afbcca332ee851aa45807381bc80e} \item \hypertarget{class_q_c_p_statistical_box_a16266f1e0e4e8e95b5d141c49479ef2e}{}double {\bfseries m\+Maximum}\label{class_q_c_p_statistical_box_a16266f1e0e4e8e95b5d141c49479ef2e} \item \hypertarget{class_q_c_p_statistical_box_af365e40b0f706c3d76f857c7957f629d}{}double {\bfseries m\+Width}\label{class_q_c_p_statistical_box_af365e40b0f706c3d76f857c7957f629d} \item \hypertarget{class_q_c_p_statistical_box_a4d166474f845d5db626e8b11a0815a6f}{}double {\bfseries m\+Whisker\+Width}\label{class_q_c_p_statistical_box_a4d166474f845d5db626e8b11a0815a6f} \item \hypertarget{class_q_c_p_statistical_box_a25b7552499f0f090fcff02858b2265a5}{}Q\+Pen {\bfseries m\+Whisker\+Pen}\label{class_q_c_p_statistical_box_a25b7552499f0f090fcff02858b2265a5} \item \hypertarget{class_q_c_p_statistical_box_aa719b1d722a9f82364df1497a6dc1da8}{}Q\+Pen {\bfseries m\+Whisker\+Bar\+Pen}\label{class_q_c_p_statistical_box_aa719b1d722a9f82364df1497a6dc1da8} \item \hypertarget{class_q_c_p_statistical_box_a1af5b601049c575f778ae270f40c9443}{}Q\+Pen {\bfseries m\+Median\+Pen}\label{class_q_c_p_statistical_box_a1af5b601049c575f778ae270f40c9443} \item \hypertarget{class_q_c_p_statistical_box_ae102e4187e1e6ba1f2df0f622b5171a4}{}\hyperlink{class_q_c_p_scatter_style}{Q\+C\+P\+Scatter\+Style} {\bfseries m\+Outlier\+Style}\label{class_q_c_p_statistical_box_ae102e4187e1e6ba1f2df0f622b5171a4} \end{DoxyCompactItemize} \subsection*{Friends} \begin{DoxyCompactItemize} \item \hypertarget{class_q_c_p_statistical_box_a1cdf9df76adcfae45261690aa0ca2198}{}class {\bfseries Q\+Custom\+Plot}\label{class_q_c_p_statistical_box_a1cdf9df76adcfae45261690aa0ca2198} \item \hypertarget{class_q_c_p_statistical_box_a8429035e7adfbd7f05805a6530ad5e3b}{}class {\bfseries Q\+C\+P\+Legend}\label{class_q_c_p_statistical_box_a8429035e7adfbd7f05805a6530ad5e3b} \end{DoxyCompactItemize} \subsection*{Additional Inherited Members} \subsection{Detailed Description} A plottable representing a single statistical box in a plot. To plot data, assign it with the individual parameter functions or use \hyperlink{class_q_c_p_statistical_box_adf50c57b635edb12470c0e4a986aff37}{set\+Data} to set all parameters at once. The individual funcions are\+: \begin{DoxyItemize} \item \hyperlink{class_q_c_p_statistical_box_a84ff7cc61ba44890f0c3e0c99c19941e}{set\+Minimum} \item \hyperlink{class_q_c_p_statistical_box_a680941af5e23d902013962fa67223f9e}{set\+Lower\+Quartile} \item \hyperlink{class_q_c_p_statistical_box_a65970e77a897da4ecb4b15300868aad3}{set\+Median} \item \hyperlink{class_q_c_p_statistical_box_a65a1375f941c5a2077b5201229e89346}{set\+Upper\+Quartile} \item \hyperlink{class_q_c_p_statistical_box_acec5ad1901f00f2c5387cfb4d9787eb3}{set\+Maximum}\end{DoxyItemize} Additionally you can define a list of outliers, drawn as circle datapoints\+: \begin{DoxyItemize} \item \hyperlink{class_q_c_p_statistical_box_af9bc09620e0bf93bf444ee35e5800d1d}{set\+Outliers}\end{DoxyItemize} \hypertarget{class_q_c_p_statistical_box_appearance}{}\subsection{Changing the appearance}\label{class_q_c_p_statistical_box_appearance} The appearance of the box itself is controlled via \hyperlink{class_q_c_p_abstract_plottable_ab74b09ae4c0e7e13142fe4b5bf46cac7}{set\+Pen} and \hyperlink{class_q_c_p_abstract_plottable_a7a4b92144dca6453a1f0f210e27edc74}{set\+Brush}. You may change the width of the box with \hyperlink{class_q_c_p_statistical_box_a0b62775bd67301b1eba5c785f2b26f14}{set\+Width} in plot coordinates (not pixels). Analog functions exist for the minimum/maximum-\/whiskers\+: \hyperlink{class_q_c_p_statistical_box_a4a5034cb3b9b040444df05ab1684620b}{set\+Whisker\+Pen}, \hyperlink{class_q_c_p_statistical_box_aa8d3e503897788e1abf68dc74b5f147f}{set\+Whisker\+Bar\+Pen}, \hyperlink{class_q_c_p_statistical_box_adf378812446bd66f34d1f7f293d991cd}{set\+Whisker\+Width}. The whisker width is the width of the bar at the top (maximum) and bottom (minimum). The median indicator line has its own pen, \hyperlink{class_q_c_p_statistical_box_a7260ac55b669f5d0a74f16d5ca84c52c}{set\+Median\+Pen}. If the whisker backbone pen is changed, make sure to set the cap\+Style to Qt\+::\+Flat\+Cap. Else, the backbone line might exceed the whisker bars by a few pixels due to the pen cap being not perfectly flat. The Outlier data points are drawn as normal scatter points. Their look can be controlled with \hyperlink{class_q_c_p_statistical_box_ad5241943422eb8e58360a97e99ad6aa7}{set\+Outlier\+Style}\hypertarget{class_q_c_p_statistical_box_usage}{}\subsection{Usage}\label{class_q_c_p_statistical_box_usage} Like all data representing objects in \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}, the \hyperlink{class_q_c_p_statistical_box}{Q\+C\+P\+Statistical\+Box} is a plottable (\hyperlink{class_q_c_p_abstract_plottable}{Q\+C\+P\+Abstract\+Plottable}). So the plottable-\/interface of \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} applies (\hyperlink{class_q_custom_plot_a32de81ff53e263e785b83b52ecd99d6f}{Q\+Custom\+Plot\+::plottable}, \hyperlink{class_q_custom_plot_ab7ad9174f701f9c6f64e378df77927a6}{Q\+Custom\+Plot\+::add\+Plottable}, \hyperlink{class_q_custom_plot_af3dafd56884208474f311d6226513ab2}{Q\+Custom\+Plot\+::remove\+Plottable}, etc.) Usually, you first create an instance\+: \begin{DoxyCode} \hyperlink{class_q_c_p_statistical_box}{QCPStatisticalBox} *newBox = \textcolor{keyword}{new} \hyperlink{class_q_c_p_statistical_box_a75c2b3e7fcd0741cc981693a2ba63b27}{QCPStatisticalBox}(customPlot->xAxis, customPlot->yAxis); \end{DoxyCode} add it to the custom\+Plot with \hyperlink{class_q_custom_plot_ab7ad9174f701f9c6f64e378df77927a6}{Q\+Custom\+Plot\+::add\+Plottable}\+: \begin{DoxyCode} customPlot->addPlottable(newBox); \end{DoxyCode} and then modify the properties of the newly created plottable, e.\+g.\+: \begin{DoxyCode} newBox->\hyperlink{class_q_c_p_abstract_plottable_ab79c7ba76bc7fa89a4b3580e12149f1f}{setName}(\textcolor{stringliteral}{"Measurement Series 1"}); newBox->\hyperlink{class_q_c_p_statistical_box_adf50c57b635edb12470c0e4a986aff37}{setData}(1, 3, 4, 5, 7); newBox->\hyperlink{class_q_c_p_statistical_box_af9bc09620e0bf93bf444ee35e5800d1d}{setOutliers}(QVector() << 0.5 << 0.64 << 7.2 << 7.42); \end{DoxyCode} \subsection{Constructor \& Destructor Documentation} \hypertarget{class_q_c_p_statistical_box_a75c2b3e7fcd0741cc981693a2ba63b27}{}\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}} \index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}} \subsubsection[{Q\+C\+P\+Statistical\+Box}]{\setlength{\rightskip}{0pt plus 5cm}Q\+C\+P\+Statistical\+Box\+::\+Q\+C\+P\+Statistical\+Box ( \begin{DoxyParamCaption} \item[{{\bf Q\+C\+P\+Axis} $\ast$}]{key\+Axis, } \item[{{\bf Q\+C\+P\+Axis} $\ast$}]{value\+Axis} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [explicit]}}\label{class_q_c_p_statistical_box_a75c2b3e7fcd0741cc981693a2ba63b27} Constructs a statistical box which uses {\itshape key\+Axis} as its key axis (\char`\"{}x\char`\"{}) and {\itshape value\+Axis} as its value axis (\char`\"{}y\char`\"{}). {\itshape key\+Axis} and {\itshape value\+Axis} must reside in the same \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} instance and not have the same orientation. If either of these restrictions is violated, a corresponding message is printed to the debug output (q\+Debug), the construction is not aborted, though. The constructed statistical box can be added to the plot with \hyperlink{class_q_custom_plot_ab7ad9174f701f9c6f64e378df77927a6}{Q\+Custom\+Plot\+::add\+Plottable}, \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} then takes ownership of the statistical box. \subsection{Member Function Documentation} \hypertarget{class_q_c_p_statistical_box_a19112994449df0c20287858436cc68e3}{}\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!clear\+Data@{clear\+Data}} \index{clear\+Data@{clear\+Data}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}} \subsubsection[{clear\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Statistical\+Box\+::clear\+Data ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_q_c_p_statistical_box_a19112994449df0c20287858436cc68e3} Clears all data in the plottable. Implements \hyperlink{class_q_c_p_abstract_plottable_a86e5b8fd4b6ff4f4084e7ea4c573fc53}{Q\+C\+P\+Abstract\+Plottable}. \hypertarget{class_q_c_p_statistical_box_a7d3ac843dc48a085740fdfc4319a89cc}{}\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!select\+Test@{select\+Test}} \index{select\+Test@{select\+Test}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}} \subsubsection[{select\+Test}]{\setlength{\rightskip}{0pt plus 5cm}double Q\+C\+P\+Statistical\+Box\+::select\+Test ( \begin{DoxyParamCaption} \item[{const Q\+Point\+F \&}]{pos, } \item[{bool}]{only\+Selectable, } \item[{Q\+Variant $\ast$}]{details = {\ttfamily 0}} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_q_c_p_statistical_box_a7d3ac843dc48a085740fdfc4319a89cc} This function is used to decide whether a click hits a layerable object or not. {\itshape pos} is a point in pixel coordinates on the \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} surface. This function returns the shortest pixel distance of this point to the object. If the object is either invisible or the distance couldn\textquotesingle{}t be determined, -\/1.\+0 is returned. Further, if {\itshape only\+Selectable} is true and the object is not selectable, -\/1.\+0 is returned, too. If the item is represented not by single lines but by an area like \hyperlink{class_q_c_p_item_rect}{Q\+C\+P\+Item\+Rect} or \hyperlink{class_q_c_p_item_text}{Q\+C\+P\+Item\+Text}, a click inside the area returns a constant value greater zero (typically the selection\+Tolerance of the parent \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} multiplied by 0.\+99). If the click lies outside the area, this function returns -\/1.\+0. Providing a constant value for area objects allows selecting line objects even when they are obscured by such area objects, by clicking close to the lines (i.\+e. closer than 0.\+99$\ast$selection\+Tolerance). The actual setting of the selection state is not done by this function. This is handled by the parent \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} when the mouse\+Release\+Event occurs, and the finally selected object is notified via the select\+Event/deselect\+Event methods. {\itshape details} is an optional output parameter. Every layerable subclass may place any information in {\itshape details}. This information will be passed to select\+Event when the parent \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} decides on the basis of this select\+Test call, that the object was successfully selected. The subsequent call to select\+Event will carry the {\itshape details}. This is useful for multi-\/part objects (like \hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis}). This way, a possibly complex calculation to decide which part was clicked is only done once in \hyperlink{class_q_c_p_statistical_box_a7d3ac843dc48a085740fdfc4319a89cc}{select\+Test}. The result (i.\+e. the actually clicked part) can then be placed in {\itshape details}. So in the subsequent select\+Event, the decision which part was selected doesn\textquotesingle{}t have to be done a second time for a single selection operation. You may pass 0 as {\itshape details} to indicate that you are not interested in those selection details. \begin{DoxySeeAlso}{See also} select\+Event, deselect\+Event, \hyperlink{class_q_custom_plot_a5ee1e2f6ae27419deca53e75907c27e5}{Q\+Custom\+Plot\+::set\+Interactions} \end{DoxySeeAlso} Implements \hyperlink{class_q_c_p_abstract_plottable_a38efe9641d972992a3d44204bc80ec1d}{Q\+C\+P\+Abstract\+Plottable}. \hypertarget{class_q_c_p_statistical_box_adf50c57b635edb12470c0e4a986aff37}{}\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Data@{set\+Data}} \index{set\+Data@{set\+Data}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}} \subsubsection[{set\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Statistical\+Box\+::set\+Data ( \begin{DoxyParamCaption} \item[{double}]{key, } \item[{double}]{minimum, } \item[{double}]{lower\+Quartile, } \item[{double}]{median, } \item[{double}]{upper\+Quartile, } \item[{double}]{maximum} \end{DoxyParamCaption} )}\label{class_q_c_p_statistical_box_adf50c57b635edb12470c0e4a986aff37} Sets all parameters of the statistical box plot at once. \begin{DoxySeeAlso}{See also} \hyperlink{class_q_c_p_statistical_box_a84a1c6d34b2f9af40bca0c527d51e97e}{set\+Key}, \hyperlink{class_q_c_p_statistical_box_a84ff7cc61ba44890f0c3e0c99c19941e}{set\+Minimum}, \hyperlink{class_q_c_p_statistical_box_a680941af5e23d902013962fa67223f9e}{set\+Lower\+Quartile}, \hyperlink{class_q_c_p_statistical_box_a65970e77a897da4ecb4b15300868aad3}{set\+Median}, \hyperlink{class_q_c_p_statistical_box_a65a1375f941c5a2077b5201229e89346}{set\+Upper\+Quartile}, \hyperlink{class_q_c_p_statistical_box_acec5ad1901f00f2c5387cfb4d9787eb3}{set\+Maximum} \end{DoxySeeAlso} \hypertarget{class_q_c_p_statistical_box_a84a1c6d34b2f9af40bca0c527d51e97e}{}\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Key@{set\+Key}} \index{set\+Key@{set\+Key}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}} \subsubsection[{set\+Key}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Statistical\+Box\+::set\+Key ( \begin{DoxyParamCaption} \item[{double}]{key} \end{DoxyParamCaption} )}\label{class_q_c_p_statistical_box_a84a1c6d34b2f9af40bca0c527d51e97e} Sets the key coordinate of the statistical box. \hypertarget{class_q_c_p_statistical_box_a680941af5e23d902013962fa67223f9e}{}\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Lower\+Quartile@{set\+Lower\+Quartile}} \index{set\+Lower\+Quartile@{set\+Lower\+Quartile}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}} \subsubsection[{set\+Lower\+Quartile}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Statistical\+Box\+::set\+Lower\+Quartile ( \begin{DoxyParamCaption} \item[{double}]{value} \end{DoxyParamCaption} )}\label{class_q_c_p_statistical_box_a680941af5e23d902013962fa67223f9e} Sets the parameter \char`\"{}lower Quartile\char`\"{} of the statistical box plot. This is the lower end of the box. The lower and the upper quartiles are the two statistical quartiles around the median of the sample, they contain 50\% of the sample data. \begin{DoxySeeAlso}{See also} \hyperlink{class_q_c_p_statistical_box_a65a1375f941c5a2077b5201229e89346}{set\+Upper\+Quartile}, \hyperlink{class_q_c_p_abstract_plottable_ab74b09ae4c0e7e13142fe4b5bf46cac7}{set\+Pen}, \hyperlink{class_q_c_p_abstract_plottable_a7a4b92144dca6453a1f0f210e27edc74}{set\+Brush}, \hyperlink{class_q_c_p_statistical_box_a0b62775bd67301b1eba5c785f2b26f14}{set\+Width} \end{DoxySeeAlso} \hypertarget{class_q_c_p_statistical_box_acec5ad1901f00f2c5387cfb4d9787eb3}{}\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Maximum@{set\+Maximum}} \index{set\+Maximum@{set\+Maximum}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}} \subsubsection[{set\+Maximum}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Statistical\+Box\+::set\+Maximum ( \begin{DoxyParamCaption} \item[{double}]{value} \end{DoxyParamCaption} )}\label{class_q_c_p_statistical_box_acec5ad1901f00f2c5387cfb4d9787eb3} Sets the parameter \char`\"{}maximum\char`\"{} of the statistical box plot. This is the position of the upper whisker, typically the maximum measurement of the sample that\textquotesingle{}s not considered an outlier. \begin{DoxySeeAlso}{See also} \hyperlink{class_q_c_p_statistical_box_a84ff7cc61ba44890f0c3e0c99c19941e}{set\+Minimum}, \hyperlink{class_q_c_p_statistical_box_a4a5034cb3b9b040444df05ab1684620b}{set\+Whisker\+Pen}, \hyperlink{class_q_c_p_statistical_box_aa8d3e503897788e1abf68dc74b5f147f}{set\+Whisker\+Bar\+Pen}, \hyperlink{class_q_c_p_statistical_box_adf378812446bd66f34d1f7f293d991cd}{set\+Whisker\+Width} \end{DoxySeeAlso} \hypertarget{class_q_c_p_statistical_box_a65970e77a897da4ecb4b15300868aad3}{}\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Median@{set\+Median}} \index{set\+Median@{set\+Median}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}} \subsubsection[{set\+Median}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Statistical\+Box\+::set\+Median ( \begin{DoxyParamCaption} \item[{double}]{value} \end{DoxyParamCaption} )}\label{class_q_c_p_statistical_box_a65970e77a897da4ecb4b15300868aad3} Sets the parameter \char`\"{}median\char`\"{} of the statistical box plot. This is the value of the median mark inside the quartile box. The median separates the sample data in half (50\% of the sample data is below/above the median). \begin{DoxySeeAlso}{See also} \hyperlink{class_q_c_p_statistical_box_a7260ac55b669f5d0a74f16d5ca84c52c}{set\+Median\+Pen} \end{DoxySeeAlso} \hypertarget{class_q_c_p_statistical_box_a7260ac55b669f5d0a74f16d5ca84c52c}{}\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Median\+Pen@{set\+Median\+Pen}} \index{set\+Median\+Pen@{set\+Median\+Pen}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}} \subsubsection[{set\+Median\+Pen}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Statistical\+Box\+::set\+Median\+Pen ( \begin{DoxyParamCaption} \item[{const Q\+Pen \&}]{pen} \end{DoxyParamCaption} )}\label{class_q_c_p_statistical_box_a7260ac55b669f5d0a74f16d5ca84c52c} Sets the pen used for drawing the median indicator line inside the statistical box. \hypertarget{class_q_c_p_statistical_box_a84ff7cc61ba44890f0c3e0c99c19941e}{}\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Minimum@{set\+Minimum}} \index{set\+Minimum@{set\+Minimum}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}} \subsubsection[{set\+Minimum}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Statistical\+Box\+::set\+Minimum ( \begin{DoxyParamCaption} \item[{double}]{value} \end{DoxyParamCaption} )}\label{class_q_c_p_statistical_box_a84ff7cc61ba44890f0c3e0c99c19941e} Sets the parameter \char`\"{}minimum\char`\"{} of the statistical box plot. This is the position of the lower whisker, typically the minimum measurement of the sample that\textquotesingle{}s not considered an outlier. \begin{DoxySeeAlso}{See also} \hyperlink{class_q_c_p_statistical_box_acec5ad1901f00f2c5387cfb4d9787eb3}{set\+Maximum}, \hyperlink{class_q_c_p_statistical_box_a4a5034cb3b9b040444df05ab1684620b}{set\+Whisker\+Pen}, \hyperlink{class_q_c_p_statistical_box_aa8d3e503897788e1abf68dc74b5f147f}{set\+Whisker\+Bar\+Pen}, \hyperlink{class_q_c_p_statistical_box_adf378812446bd66f34d1f7f293d991cd}{set\+Whisker\+Width} \end{DoxySeeAlso} \hypertarget{class_q_c_p_statistical_box_af9bc09620e0bf93bf444ee35e5800d1d}{}\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Outliers@{set\+Outliers}} \index{set\+Outliers@{set\+Outliers}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}} \subsubsection[{set\+Outliers}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Statistical\+Box\+::set\+Outliers ( \begin{DoxyParamCaption} \item[{const Q\+Vector$<$ double $>$ \&}]{values} \end{DoxyParamCaption} )}\label{class_q_c_p_statistical_box_af9bc09620e0bf93bf444ee35e5800d1d} Sets a vector of outlier values that will be drawn as circles. Any data points in the sample that are not within the whiskers (\hyperlink{class_q_c_p_statistical_box_a84ff7cc61ba44890f0c3e0c99c19941e}{set\+Minimum}, \hyperlink{class_q_c_p_statistical_box_acec5ad1901f00f2c5387cfb4d9787eb3}{set\+Maximum}) should be considered outliers and displayed as such. \begin{DoxySeeAlso}{See also} \hyperlink{class_q_c_p_statistical_box_ad5241943422eb8e58360a97e99ad6aa7}{set\+Outlier\+Style} \end{DoxySeeAlso} \hypertarget{class_q_c_p_statistical_box_ad5241943422eb8e58360a97e99ad6aa7}{}\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Outlier\+Style@{set\+Outlier\+Style}} \index{set\+Outlier\+Style@{set\+Outlier\+Style}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}} \subsubsection[{set\+Outlier\+Style}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Statistical\+Box\+::set\+Outlier\+Style ( \begin{DoxyParamCaption} \item[{const {\bf Q\+C\+P\+Scatter\+Style} \&}]{style} \end{DoxyParamCaption} )}\label{class_q_c_p_statistical_box_ad5241943422eb8e58360a97e99ad6aa7} Sets the appearance of the outlier data points. \begin{DoxySeeAlso}{See also} \hyperlink{class_q_c_p_statistical_box_af9bc09620e0bf93bf444ee35e5800d1d}{set\+Outliers} \end{DoxySeeAlso} \hypertarget{class_q_c_p_statistical_box_a65a1375f941c5a2077b5201229e89346}{}\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Upper\+Quartile@{set\+Upper\+Quartile}} \index{set\+Upper\+Quartile@{set\+Upper\+Quartile}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}} \subsubsection[{set\+Upper\+Quartile}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Statistical\+Box\+::set\+Upper\+Quartile ( \begin{DoxyParamCaption} \item[{double}]{value} \end{DoxyParamCaption} )}\label{class_q_c_p_statistical_box_a65a1375f941c5a2077b5201229e89346} Sets the parameter \char`\"{}upper Quartile\char`\"{} of the statistical box plot. This is the upper end of the box. The lower and the upper quartiles are the two statistical quartiles around the median of the sample, they contain 50\% of the sample data. \begin{DoxySeeAlso}{See also} \hyperlink{class_q_c_p_statistical_box_a680941af5e23d902013962fa67223f9e}{set\+Lower\+Quartile}, \hyperlink{class_q_c_p_abstract_plottable_ab74b09ae4c0e7e13142fe4b5bf46cac7}{set\+Pen}, \hyperlink{class_q_c_p_abstract_plottable_a7a4b92144dca6453a1f0f210e27edc74}{set\+Brush}, \hyperlink{class_q_c_p_statistical_box_a0b62775bd67301b1eba5c785f2b26f14}{set\+Width} \end{DoxySeeAlso} \hypertarget{class_q_c_p_statistical_box_aa8d3e503897788e1abf68dc74b5f147f}{}\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Whisker\+Bar\+Pen@{set\+Whisker\+Bar\+Pen}} \index{set\+Whisker\+Bar\+Pen@{set\+Whisker\+Bar\+Pen}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}} \subsubsection[{set\+Whisker\+Bar\+Pen}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Statistical\+Box\+::set\+Whisker\+Bar\+Pen ( \begin{DoxyParamCaption} \item[{const Q\+Pen \&}]{pen} \end{DoxyParamCaption} )}\label{class_q_c_p_statistical_box_aa8d3e503897788e1abf68dc74b5f147f} Sets the pen used for drawing the whisker bars (Those are the lines parallel to the key axis at each end of the whisker backbone). \begin{DoxySeeAlso}{See also} \hyperlink{class_q_c_p_statistical_box_a4a5034cb3b9b040444df05ab1684620b}{set\+Whisker\+Pen} \end{DoxySeeAlso} \hypertarget{class_q_c_p_statistical_box_a4a5034cb3b9b040444df05ab1684620b}{}\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Whisker\+Pen@{set\+Whisker\+Pen}} \index{set\+Whisker\+Pen@{set\+Whisker\+Pen}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}} \subsubsection[{set\+Whisker\+Pen}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Statistical\+Box\+::set\+Whisker\+Pen ( \begin{DoxyParamCaption} \item[{const Q\+Pen \&}]{pen} \end{DoxyParamCaption} )}\label{class_q_c_p_statistical_box_a4a5034cb3b9b040444df05ab1684620b} Sets the pen used for drawing the whisker backbone (That\textquotesingle{}s the line parallel to the value axis). Make sure to set the {\itshape pen} cap\+Style to Qt\+::\+Flat\+Cap to prevent the whisker backbone from reaching a few pixels past the whisker bars, when using a non-\/zero pen width. \begin{DoxySeeAlso}{See also} \hyperlink{class_q_c_p_statistical_box_aa8d3e503897788e1abf68dc74b5f147f}{set\+Whisker\+Bar\+Pen} \end{DoxySeeAlso} \hypertarget{class_q_c_p_statistical_box_adf378812446bd66f34d1f7f293d991cd}{}\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Whisker\+Width@{set\+Whisker\+Width}} \index{set\+Whisker\+Width@{set\+Whisker\+Width}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}} \subsubsection[{set\+Whisker\+Width}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Statistical\+Box\+::set\+Whisker\+Width ( \begin{DoxyParamCaption} \item[{double}]{width} \end{DoxyParamCaption} )}\label{class_q_c_p_statistical_box_adf378812446bd66f34d1f7f293d991cd} Sets the width of the whiskers (\hyperlink{class_q_c_p_statistical_box_a84ff7cc61ba44890f0c3e0c99c19941e}{set\+Minimum}, \hyperlink{class_q_c_p_statistical_box_acec5ad1901f00f2c5387cfb4d9787eb3}{set\+Maximum}) in key coordinates. \begin{DoxySeeAlso}{See also} \hyperlink{class_q_c_p_statistical_box_a0b62775bd67301b1eba5c785f2b26f14}{set\+Width} \end{DoxySeeAlso} \hypertarget{class_q_c_p_statistical_box_a0b62775bd67301b1eba5c785f2b26f14}{}\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Width@{set\+Width}} \index{set\+Width@{set\+Width}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}} \subsubsection[{set\+Width}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Statistical\+Box\+::set\+Width ( \begin{DoxyParamCaption} \item[{double}]{width} \end{DoxyParamCaption} )}\label{class_q_c_p_statistical_box_a0b62775bd67301b1eba5c785f2b26f14} Sets the width of the box in key coordinates. \begin{DoxySeeAlso}{See also} \hyperlink{class_q_c_p_statistical_box_adf378812446bd66f34d1f7f293d991cd}{set\+Whisker\+Width} \end{DoxySeeAlso} The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize} \item \hyperlink{qcustomplot_8h}{qcustomplot.\+h}\item \hyperlink{qcustomplot_8cpp}{qcustomplot.\+cpp}\end{DoxyCompactItemize}