Sin descripción

class_q_c_p_curve.tex 30KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  1. \hypertarget{class_q_c_p_curve}{}\section{Referencia de la Clase Q\+C\+P\+Curve}
  2. \label{class_q_c_p_curve}\index{Q\+C\+P\+Curve@{Q\+C\+P\+Curve}}
  3. A plottable representing a parametric curve in a plot.
  4. Diagrama de herencias de Q\+C\+P\+Curve\begin{figure}[H]
  5. \begin{center}
  6. \leavevmode
  7. \includegraphics[height=4.000000cm]{class_q_c_p_curve}
  8. \end{center}
  9. \end{figure}
  10. \subsection*{Tipos públicos}
  11. \begin{DoxyCompactItemize}
  12. \item
  13. enum \hyperlink{class_q_c_p_curve_a2710e9f79302152cff794c6e16cc01f1}{Line\+Style} \{ \hyperlink{class_q_c_p_curve_a2710e9f79302152cff794c6e16cc01f1aec1601a191cdf0b4e761c4c66092cc48}{ls\+None},
  14. \hyperlink{class_q_c_p_curve_a2710e9f79302152cff794c6e16cc01f1ade5822ce6fbf131d3df131795c2e1003}{ls\+Line}
  15. \}
  16. \end{DoxyCompactItemize}
  17. \subsection*{Métodos públicos}
  18. \begin{DoxyCompactItemize}
  19. \item
  20. \hyperlink{class_q_c_p_curve_a36de58e2652b3fa47bdf9187d421d3ce}{Q\+C\+P\+Curve} (\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)
  21. \item
  22. \hypertarget{class_q_c_p_curve_a9ac194d35d4f334923aac9df1bf599ca}{}\hyperlink{qcustomplot_8h_a444d37ec9cb2951b3a7fe443c34d1658}{Q\+C\+P\+Curve\+Data\+Map} $\ast$ {\bfseries data} () const \label{class_q_c_p_curve_a9ac194d35d4f334923aac9df1bf599ca}
  23. \item
  24. \hypertarget{class_q_c_p_curve_a9ab864c9f6ba0cedf65853f59d867a68}{}\hyperlink{class_q_c_p_scatter_style}{Q\+C\+P\+Scatter\+Style} {\bfseries scatter\+Style} () const \label{class_q_c_p_curve_a9ab864c9f6ba0cedf65853f59d867a68}
  25. \item
  26. \hypertarget{class_q_c_p_curve_a0314dd644258949aeb4a95cebde5abaf}{}\hyperlink{class_q_c_p_curve_a2710e9f79302152cff794c6e16cc01f1}{Line\+Style} {\bfseries line\+Style} () const \label{class_q_c_p_curve_a0314dd644258949aeb4a95cebde5abaf}
  27. \item
  28. void \hyperlink{class_q_c_p_curve_a631ac886708460013b30052f49cbc9da}{set\+Data} (\hyperlink{qcustomplot_8h_a444d37ec9cb2951b3a7fe443c34d1658}{Q\+C\+P\+Curve\+Data\+Map} $\ast$data, bool copy=false)
  29. \item
  30. void \hyperlink{class_q_c_p_curve_affe80e011e2ced62a88f614acd6ab8d1}{set\+Data} (const Q\+Vector$<$ double $>$ \&t, const Q\+Vector$<$ double $>$ \&key, const Q\+Vector$<$ double $>$ \&value)
  31. \item
  32. void \hyperlink{class_q_c_p_curve_a963d4c45777deef15848a8f56172d066}{set\+Data} (const Q\+Vector$<$ double $>$ \&key, const Q\+Vector$<$ double $>$ \&value)
  33. \item
  34. void \hyperlink{class_q_c_p_curve_a55e43b44709bf50a35500644988aa706}{set\+Scatter\+Style} (const \hyperlink{class_q_c_p_scatter_style}{Q\+C\+P\+Scatter\+Style} \&style)
  35. \item
  36. void \hyperlink{class_q_c_p_curve_a4a377ec863ff81a1875c3094a6177c19}{set\+Line\+Style} (\hyperlink{class_q_c_p_curve_a2710e9f79302152cff794c6e16cc01f1}{Line\+Style} style)
  37. \item
  38. void \hyperlink{class_q_c_p_curve_a4e24023c3b9ac75440c7a260172c99af}{add\+Data} (const \hyperlink{qcustomplot_8h_a444d37ec9cb2951b3a7fe443c34d1658}{Q\+C\+P\+Curve\+Data\+Map} \&data\+Map)
  39. \item
  40. void \hyperlink{class_q_c_p_curve_ad304326aba096911f92452d8bfe0470e}{add\+Data} (const \hyperlink{class_q_c_p_curve_data}{Q\+C\+P\+Curve\+Data} \&data)
  41. \item
  42. void \hyperlink{class_q_c_p_curve_a13398b236f6926014e404eeb5b9f415c}{add\+Data} (double t, double key, double value)
  43. \item
  44. void \hyperlink{class_q_c_p_curve_ada4762e793cd5707b33f35b8a4b0f8fb}{add\+Data} (double key, double value)
  45. \item
  46. void \hyperlink{class_q_c_p_curve_a27c8b3dddd4067d626397ee199626722}{add\+Data} (const Q\+Vector$<$ double $>$ \&ts, const Q\+Vector$<$ double $>$ \&keys, const Q\+Vector$<$ double $>$ \&values)
  47. \item
  48. void \hyperlink{class_q_c_p_curve_af6f4284fbc2f34e676f24dce03c34fe5}{remove\+Data\+Before} (double t)
  49. \item
  50. void \hyperlink{class_q_c_p_curve_a0365cb947c4e6d405ee22e00191d5f52}{remove\+Data\+After} (double t)
  51. \item
  52. void \hyperlink{class_q_c_p_curve_ad45bb5479be799163028ef2b776f7221}{remove\+Data} (double fromt, double tot)
  53. \item
  54. void \hyperlink{class_q_c_p_curve_a30c91acfa591ec534c49fed4c0fca39a}{remove\+Data} (double t)
  55. \item
  56. virtual void \hyperlink{class_q_c_p_curve_ae0462c61dbfbac07db0736ec64110241}{clear\+Data} ()
  57. \item
  58. virtual double \hyperlink{class_q_c_p_curve_a5af9949e725704811bbc81ecd5970b8e}{select\+Test} (const Q\+Point\+F \&pos, bool only\+Selectable, Q\+Variant $\ast$details=0) const
  59. \end{DoxyCompactItemize}
  60. \subsection*{Métodos protegidos}
  61. \begin{DoxyCompactItemize}
  62. \item
  63. \hypertarget{class_q_c_p_curve_a2361302d2fc6ec669849bd3bca00c4b2}{}virtual void {\bfseries draw} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter)\label{class_q_c_p_curve_a2361302d2fc6ec669849bd3bca00c4b2}
  64. \item
  65. \hypertarget{class_q_c_p_curve_aaee24451e0044d1debfa1fee92c58d7b}{}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_curve_aaee24451e0044d1debfa1fee92c58d7b}
  66. \item
  67. \hypertarget{class_q_c_p_curve_aed062a72e98372480a683cdd201b5612}{}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_curve_aed062a72e98372480a683cdd201b5612}
  68. \item
  69. \hypertarget{class_q_c_p_curve_a5e788d369793e0179c5a46fce3bcb0fb}{}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_curve_a5e788d369793e0179c5a46fce3bcb0fb}
  70. \item
  71. \hypertarget{class_q_c_p_curve_a45593f30b81beec4b6130b6b53306087}{}virtual void {\bfseries draw\+Scatter\+Plot} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter, const Q\+Vector$<$ Q\+Point\+F $>$ $\ast$point\+Data) const \label{class_q_c_p_curve_a45593f30b81beec4b6130b6b53306087}
  72. \item
  73. \hypertarget{class_q_c_p_curve_afa895f8ba9ae34fea6ecea295fd7b1e5}{}void {\bfseries get\+Curve\+Data} (Q\+Vector$<$ Q\+Point\+F $>$ $\ast$line\+Data) const \label{class_q_c_p_curve_afa895f8ba9ae34fea6ecea295fd7b1e5}
  74. \item
  75. \hypertarget{class_q_c_p_curve_acd7a68c6f268ce1ab845eaf69fc2c6a6}{}double {\bfseries point\+Distance} (const Q\+Point\+F \&pixel\+Point) const \label{class_q_c_p_curve_acd7a68c6f268ce1ab845eaf69fc2c6a6}
  76. \item
  77. \hypertarget{class_q_c_p_curve_a3a4d067f833d51be6eb67f0aa1e2c387}{}Q\+Point\+F {\bfseries outside\+Coords\+To\+Pixels} (double key, double value, int region, Q\+Rect axis\+Rect) const \label{class_q_c_p_curve_a3a4d067f833d51be6eb67f0aa1e2c387}
  78. \end{DoxyCompactItemize}
  79. \subsection*{Atributos protegidos}
  80. \begin{DoxyCompactItemize}
  81. \item
  82. \hypertarget{class_q_c_p_curve_a88d533e455bca96004b049e99168731b}{}\hyperlink{qcustomplot_8h_a444d37ec9cb2951b3a7fe443c34d1658}{Q\+C\+P\+Curve\+Data\+Map} $\ast$ {\bfseries m\+Data}\label{class_q_c_p_curve_a88d533e455bca96004b049e99168731b}
  83. \item
  84. \hypertarget{class_q_c_p_curve_a08f803b4a30b01bbd7a1eab15d0f864f}{}\hyperlink{class_q_c_p_scatter_style}{Q\+C\+P\+Scatter\+Style} {\bfseries m\+Scatter\+Style}\label{class_q_c_p_curve_a08f803b4a30b01bbd7a1eab15d0f864f}
  85. \item
  86. \hypertarget{class_q_c_p_curve_ae1f35ae2b15aee8e15bcdfec5be95156}{}\hyperlink{class_q_c_p_curve_a2710e9f79302152cff794c6e16cc01f1}{Line\+Style} {\bfseries m\+Line\+Style}\label{class_q_c_p_curve_ae1f35ae2b15aee8e15bcdfec5be95156}
  87. \end{DoxyCompactItemize}
  88. \subsection*{Amigas}
  89. \begin{DoxyCompactItemize}
  90. \item
  91. \hypertarget{class_q_c_p_curve_a1cdf9df76adcfae45261690aa0ca2198}{}class {\bfseries Q\+Custom\+Plot}\label{class_q_c_p_curve_a1cdf9df76adcfae45261690aa0ca2198}
  92. \item
  93. \hypertarget{class_q_c_p_curve_a8429035e7adfbd7f05805a6530ad5e3b}{}class {\bfseries Q\+C\+P\+Legend}\label{class_q_c_p_curve_a8429035e7adfbd7f05805a6530ad5e3b}
  94. \end{DoxyCompactItemize}
  95. \subsection*{Otros miembros heredados}
  96. \subsection{Descripción detallada}
  97. A plottable representing a parametric curve in a plot.
  98. Unlike \hyperlink{class_q_c_p_graph}{Q\+C\+P\+Graph}, plottables of this type may have multiple points with the same key coordinate, so their visual representation can have {\itshape loops}. This is realized by introducing a third coordinate {\itshape t}, which defines the order of the points described by the other two coordinates {\itshape x} and {\itshape y}.
  99. To plot data, assign it with the \hyperlink{class_q_c_p_curve_a631ac886708460013b30052f49cbc9da}{set\+Data} or \hyperlink{class_q_c_p_curve_a4e24023c3b9ac75440c7a260172c99af}{add\+Data} functions.\hypertarget{class_q_c_p_statistical_box_appearance}{}\subsection{Changing the appearance}\label{class_q_c_p_statistical_box_appearance}
  100. The appearance of the curve is determined by the pen and the brush (\hyperlink{class_q_c_p_abstract_plottable_ab74b09ae4c0e7e13142fe4b5bf46cac7}{set\+Pen}, \hyperlink{class_q_c_p_abstract_plottable_a7a4b92144dca6453a1f0f210e27edc74}{set\+Brush}). \hypertarget{class_q_c_p_statistical_box_usage}{}\subsection{Usage}\label{class_q_c_p_statistical_box_usage}
  101. Like all data representing objects in \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}, the \hyperlink{class_q_c_p_curve}{Q\+C\+P\+Curve} 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.)
  102. Usually, you first create an instance\+:
  103. \begin{DoxyCode}
  104. \hyperlink{class_q_c_p_curve}{QCPCurve} *newCurve = \textcolor{keyword}{new} \hyperlink{class_q_c_p_curve_a36de58e2652b3fa47bdf9187d421d3ce}{QCPCurve}(customPlot->xAxis, customPlot->yAxis);
  105. \end{DoxyCode}
  106. add it to the custom\+Plot with \hyperlink{class_q_custom_plot_ab7ad9174f701f9c6f64e378df77927a6}{Q\+Custom\+Plot\+::add\+Plottable}\+:
  107. \begin{DoxyCode}
  108. customPlot->addPlottable(newCurve);
  109. \end{DoxyCode}
  110. and then modify the properties of the newly created plottable, e.\+g.\+:
  111. \begin{DoxyCode}
  112. newCurve->\hyperlink{class_q_c_p_abstract_plottable_ab79c7ba76bc7fa89a4b3580e12149f1f}{setName}(\textcolor{stringliteral}{"Fermat's Spiral"});
  113. newCurve->\hyperlink{class_q_c_p_curve_a631ac886708460013b30052f49cbc9da}{setData}(tData, xData, yData);
  114. \end{DoxyCode}
  115. \subsection{Documentación de las enumeraciones miembro de la clase}
  116. \hypertarget{class_q_c_p_curve_a2710e9f79302152cff794c6e16cc01f1}{}\index{Q\+C\+P\+Curve@{Q\+C\+P\+Curve}!Line\+Style@{Line\+Style}}
  117. \index{Line\+Style@{Line\+Style}!Q\+C\+P\+Curve@{Q\+C\+P\+Curve}}
  118. \subsubsection[{Line\+Style}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf Q\+C\+P\+Curve\+::\+Line\+Style}}\label{class_q_c_p_curve_a2710e9f79302152cff794c6e16cc01f1}
  119. Defines how the curve\textquotesingle{}s line is represented visually in the plot. The line is drawn with the current pen of the curve (\hyperlink{class_q_c_p_abstract_plottable_ab74b09ae4c0e7e13142fe4b5bf46cac7}{set\+Pen}). \begin{DoxySeeAlso}{Ver también}
  120. \hyperlink{class_q_c_p_curve_a4a377ec863ff81a1875c3094a6177c19}{set\+Line\+Style}
  121. \end{DoxySeeAlso}
  122. \begin{Desc}
  123. \item[Valores de enumeraciones]\par
  124. \begin{description}
  125. \index{ls\+None@{ls\+None}!Q\+C\+P\+Curve@{Q\+C\+P\+Curve}}\index{Q\+C\+P\+Curve@{Q\+C\+P\+Curve}!ls\+None@{ls\+None}}\item[{\em
  126. \hypertarget{class_q_c_p_curve_a2710e9f79302152cff794c6e16cc01f1aec1601a191cdf0b4e761c4c66092cc48}{}ls\+None\label{class_q_c_p_curve_a2710e9f79302152cff794c6e16cc01f1aec1601a191cdf0b4e761c4c66092cc48}
  127. }]No line is drawn between data points (e.\+g. only scatters) \index{ls\+Line@{ls\+Line}!Q\+C\+P\+Curve@{Q\+C\+P\+Curve}}\index{Q\+C\+P\+Curve@{Q\+C\+P\+Curve}!ls\+Line@{ls\+Line}}\item[{\em
  128. \hypertarget{class_q_c_p_curve_a2710e9f79302152cff794c6e16cc01f1ade5822ce6fbf131d3df131795c2e1003}{}ls\+Line\label{class_q_c_p_curve_a2710e9f79302152cff794c6e16cc01f1ade5822ce6fbf131d3df131795c2e1003}
  129. }]Data points are connected with a straight line. \end{description}
  130. \end{Desc}
  131. \subsection{Documentación del constructor y destructor}
  132. \hypertarget{class_q_c_p_curve_a36de58e2652b3fa47bdf9187d421d3ce}{}\index{Q\+C\+P\+Curve@{Q\+C\+P\+Curve}!Q\+C\+P\+Curve@{Q\+C\+P\+Curve}}
  133. \index{Q\+C\+P\+Curve@{Q\+C\+P\+Curve}!Q\+C\+P\+Curve@{Q\+C\+P\+Curve}}
  134. \subsubsection[{Q\+C\+P\+Curve}]{\setlength{\rightskip}{0pt plus 5cm}Q\+C\+P\+Curve\+::\+Q\+C\+P\+Curve (
  135. \begin{DoxyParamCaption}
  136. \item[{{\bf Q\+C\+P\+Axis} $\ast$}]{key\+Axis, }
  137. \item[{{\bf Q\+C\+P\+Axis} $\ast$}]{value\+Axis}
  138. \end{DoxyParamCaption}
  139. )\hspace{0.3cm}{\ttfamily [explicit]}}\label{class_q_c_p_curve_a36de58e2652b3fa47bdf9187d421d3ce}
  140. Constructs a curve 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.
  141. The constructed \hyperlink{class_q_c_p_curve}{Q\+C\+P\+Curve} 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 graph.
  142. \subsection{Documentación de las funciones miembro}
  143. \hypertarget{class_q_c_p_curve_a4e24023c3b9ac75440c7a260172c99af}{}\index{Q\+C\+P\+Curve@{Q\+C\+P\+Curve}!add\+Data@{add\+Data}}
  144. \index{add\+Data@{add\+Data}!Q\+C\+P\+Curve@{Q\+C\+P\+Curve}}
  145. \subsubsection[{add\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Curve\+::add\+Data (
  146. \begin{DoxyParamCaption}
  147. \item[{const {\bf Q\+C\+P\+Curve\+Data\+Map} \&}]{data\+Map}
  148. \end{DoxyParamCaption}
  149. )}\label{class_q_c_p_curve_a4e24023c3b9ac75440c7a260172c99af}
  150. Adds the provided data points in {\itshape data\+Map} to the current data. \begin{DoxySeeAlso}{Ver también}
  151. \hyperlink{class_q_c_p_curve_ad45bb5479be799163028ef2b776f7221}{remove\+Data}
  152. \end{DoxySeeAlso}
  153. \hypertarget{class_q_c_p_curve_ad304326aba096911f92452d8bfe0470e}{}\index{Q\+C\+P\+Curve@{Q\+C\+P\+Curve}!add\+Data@{add\+Data}}
  154. \index{add\+Data@{add\+Data}!Q\+C\+P\+Curve@{Q\+C\+P\+Curve}}
  155. \subsubsection[{add\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Curve\+::add\+Data (
  156. \begin{DoxyParamCaption}
  157. \item[{const {\bf Q\+C\+P\+Curve\+Data} \&}]{data}
  158. \end{DoxyParamCaption}
  159. )}\label{class_q_c_p_curve_ad304326aba096911f92452d8bfe0470e}
  160. Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. Adds the provided single data point in {\itshape data} to the current data. \begin{DoxySeeAlso}{Ver también}
  161. \hyperlink{class_q_c_p_curve_ad45bb5479be799163028ef2b776f7221}{remove\+Data}
  162. \end{DoxySeeAlso}
  163. \hypertarget{class_q_c_p_curve_a13398b236f6926014e404eeb5b9f415c}{}\index{Q\+C\+P\+Curve@{Q\+C\+P\+Curve}!add\+Data@{add\+Data}}
  164. \index{add\+Data@{add\+Data}!Q\+C\+P\+Curve@{Q\+C\+P\+Curve}}
  165. \subsubsection[{add\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Curve\+::add\+Data (
  166. \begin{DoxyParamCaption}
  167. \item[{double}]{t, }
  168. \item[{double}]{key, }
  169. \item[{double}]{value}
  170. \end{DoxyParamCaption}
  171. )}\label{class_q_c_p_curve_a13398b236f6926014e404eeb5b9f415c}
  172. Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. Adds the provided single data point as {\itshape t}, {\itshape key} and {\itshape value} tuple to the current data \begin{DoxySeeAlso}{Ver también}
  173. \hyperlink{class_q_c_p_curve_ad45bb5479be799163028ef2b776f7221}{remove\+Data}
  174. \end{DoxySeeAlso}
  175. \hypertarget{class_q_c_p_curve_ada4762e793cd5707b33f35b8a4b0f8fb}{}\index{Q\+C\+P\+Curve@{Q\+C\+P\+Curve}!add\+Data@{add\+Data}}
  176. \index{add\+Data@{add\+Data}!Q\+C\+P\+Curve@{Q\+C\+P\+Curve}}
  177. \subsubsection[{add\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Curve\+::add\+Data (
  178. \begin{DoxyParamCaption}
  179. \item[{double}]{key, }
  180. \item[{double}]{value}
  181. \end{DoxyParamCaption}
  182. )}\label{class_q_c_p_curve_ada4762e793cd5707b33f35b8a4b0f8fb}
  183. Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.
  184. Adds the provided single data point as {\itshape key} and {\itshape value} pair to the current data The t parameter of the data point is set to the t of the last data point plus 1. If there is no last data point, t will be set to 0.
  185. \begin{DoxySeeAlso}{Ver también}
  186. \hyperlink{class_q_c_p_curve_ad45bb5479be799163028ef2b776f7221}{remove\+Data}
  187. \end{DoxySeeAlso}
  188. \hypertarget{class_q_c_p_curve_a27c8b3dddd4067d626397ee199626722}{}\index{Q\+C\+P\+Curve@{Q\+C\+P\+Curve}!add\+Data@{add\+Data}}
  189. \index{add\+Data@{add\+Data}!Q\+C\+P\+Curve@{Q\+C\+P\+Curve}}
  190. \subsubsection[{add\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Curve\+::add\+Data (
  191. \begin{DoxyParamCaption}
  192. \item[{const Q\+Vector$<$ double $>$ \&}]{ts, }
  193. \item[{const Q\+Vector$<$ double $>$ \&}]{keys, }
  194. \item[{const Q\+Vector$<$ double $>$ \&}]{values}
  195. \end{DoxyParamCaption}
  196. )}\label{class_q_c_p_curve_a27c8b3dddd4067d626397ee199626722}
  197. Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. Adds the provided data points as {\itshape t}, {\itshape key} and {\itshape value} tuples to the current data. \begin{DoxySeeAlso}{Ver también}
  198. \hyperlink{class_q_c_p_curve_ad45bb5479be799163028ef2b776f7221}{remove\+Data}
  199. \end{DoxySeeAlso}
  200. \hypertarget{class_q_c_p_curve_ae0462c61dbfbac07db0736ec64110241}{}\index{Q\+C\+P\+Curve@{Q\+C\+P\+Curve}!clear\+Data@{clear\+Data}}
  201. \index{clear\+Data@{clear\+Data}!Q\+C\+P\+Curve@{Q\+C\+P\+Curve}}
  202. \subsubsection[{clear\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Curve\+::clear\+Data (
  203. \begin{DoxyParamCaption}
  204. {}
  205. \end{DoxyParamCaption}
  206. )\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_q_c_p_curve_ae0462c61dbfbac07db0736ec64110241}
  207. Removes all data points. \begin{DoxySeeAlso}{Ver también}
  208. \hyperlink{class_q_c_p_curve_ad45bb5479be799163028ef2b776f7221}{remove\+Data}, \hyperlink{class_q_c_p_curve_a0365cb947c4e6d405ee22e00191d5f52}{remove\+Data\+After}, \hyperlink{class_q_c_p_curve_af6f4284fbc2f34e676f24dce03c34fe5}{remove\+Data\+Before}
  209. \end{DoxySeeAlso}
  210. Implementa \hyperlink{class_q_c_p_abstract_plottable_a86e5b8fd4b6ff4f4084e7ea4c573fc53}{Q\+C\+P\+Abstract\+Plottable}.
  211. \hypertarget{class_q_c_p_curve_ad45bb5479be799163028ef2b776f7221}{}\index{Q\+C\+P\+Curve@{Q\+C\+P\+Curve}!remove\+Data@{remove\+Data}}
  212. \index{remove\+Data@{remove\+Data}!Q\+C\+P\+Curve@{Q\+C\+P\+Curve}}
  213. \subsubsection[{remove\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Curve\+::remove\+Data (
  214. \begin{DoxyParamCaption}
  215. \item[{double}]{fromt, }
  216. \item[{double}]{tot}
  217. \end{DoxyParamCaption}
  218. )}\label{class_q_c_p_curve_ad45bb5479be799163028ef2b776f7221}
  219. Removes all data points with curve parameter t between {\itshape fromt} and {\itshape tot}. if {\itshape fromt} is greater or equal to {\itshape tot}, the function does nothing. To remove a single data point with known t, use \hyperlink{class_q_c_p_curve_a30c91acfa591ec534c49fed4c0fca39a}{remove\+Data(double t)}.
  220. \begin{DoxySeeAlso}{Ver también}
  221. \hyperlink{class_q_c_p_curve_a4e24023c3b9ac75440c7a260172c99af}{add\+Data}, \hyperlink{class_q_c_p_curve_ae0462c61dbfbac07db0736ec64110241}{clear\+Data}
  222. \end{DoxySeeAlso}
  223. \hypertarget{class_q_c_p_curve_a30c91acfa591ec534c49fed4c0fca39a}{}\index{Q\+C\+P\+Curve@{Q\+C\+P\+Curve}!remove\+Data@{remove\+Data}}
  224. \index{remove\+Data@{remove\+Data}!Q\+C\+P\+Curve@{Q\+C\+P\+Curve}}
  225. \subsubsection[{remove\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Curve\+::remove\+Data (
  226. \begin{DoxyParamCaption}
  227. \item[{double}]{t}
  228. \end{DoxyParamCaption}
  229. )}\label{class_q_c_p_curve_a30c91acfa591ec534c49fed4c0fca39a}
  230. Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.
  231. Removes a single data point at curve parameter {\itshape t}. If the position is not known with absolute precision, consider using \hyperlink{class_q_c_p_curve_ad45bb5479be799163028ef2b776f7221}{remove\+Data(double fromt, double tot)} with a small fuzziness interval around the suspected position, depeding on the precision with which the curve parameter is known.
  232. \begin{DoxySeeAlso}{Ver también}
  233. \hyperlink{class_q_c_p_curve_a4e24023c3b9ac75440c7a260172c99af}{add\+Data}, \hyperlink{class_q_c_p_curve_ae0462c61dbfbac07db0736ec64110241}{clear\+Data}
  234. \end{DoxySeeAlso}
  235. \hypertarget{class_q_c_p_curve_a0365cb947c4e6d405ee22e00191d5f52}{}\index{Q\+C\+P\+Curve@{Q\+C\+P\+Curve}!remove\+Data\+After@{remove\+Data\+After}}
  236. \index{remove\+Data\+After@{remove\+Data\+After}!Q\+C\+P\+Curve@{Q\+C\+P\+Curve}}
  237. \subsubsection[{remove\+Data\+After}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Curve\+::remove\+Data\+After (
  238. \begin{DoxyParamCaption}
  239. \item[{double}]{t}
  240. \end{DoxyParamCaption}
  241. )}\label{class_q_c_p_curve_a0365cb947c4e6d405ee22e00191d5f52}
  242. Removes all data points with curve parameter t greater than {\itshape t}. \begin{DoxySeeAlso}{Ver también}
  243. \hyperlink{class_q_c_p_curve_a4e24023c3b9ac75440c7a260172c99af}{add\+Data}, \hyperlink{class_q_c_p_curve_ae0462c61dbfbac07db0736ec64110241}{clear\+Data}
  244. \end{DoxySeeAlso}
  245. \hypertarget{class_q_c_p_curve_af6f4284fbc2f34e676f24dce03c34fe5}{}\index{Q\+C\+P\+Curve@{Q\+C\+P\+Curve}!remove\+Data\+Before@{remove\+Data\+Before}}
  246. \index{remove\+Data\+Before@{remove\+Data\+Before}!Q\+C\+P\+Curve@{Q\+C\+P\+Curve}}
  247. \subsubsection[{remove\+Data\+Before}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Curve\+::remove\+Data\+Before (
  248. \begin{DoxyParamCaption}
  249. \item[{double}]{t}
  250. \end{DoxyParamCaption}
  251. )}\label{class_q_c_p_curve_af6f4284fbc2f34e676f24dce03c34fe5}
  252. Removes all data points with curve parameter t smaller than {\itshape t}. \begin{DoxySeeAlso}{Ver también}
  253. \hyperlink{class_q_c_p_curve_a4e24023c3b9ac75440c7a260172c99af}{add\+Data}, \hyperlink{class_q_c_p_curve_ae0462c61dbfbac07db0736ec64110241}{clear\+Data}
  254. \end{DoxySeeAlso}
  255. \hypertarget{class_q_c_p_curve_a5af9949e725704811bbc81ecd5970b8e}{}\index{Q\+C\+P\+Curve@{Q\+C\+P\+Curve}!select\+Test@{select\+Test}}
  256. \index{select\+Test@{select\+Test}!Q\+C\+P\+Curve@{Q\+C\+P\+Curve}}
  257. \subsubsection[{select\+Test}]{\setlength{\rightskip}{0pt plus 5cm}double Q\+C\+P\+Curve\+::select\+Test (
  258. \begin{DoxyParamCaption}
  259. \item[{const Q\+Point\+F \&}]{pos, }
  260. \item[{bool}]{only\+Selectable, }
  261. \item[{Q\+Variant $\ast$}]{details = {\ttfamily 0}}
  262. \end{DoxyParamCaption}
  263. ) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_q_c_p_curve_a5af9949e725704811bbc81ecd5970b8e}
  264. This function is used to decide whether a click hits a layerable object or not.
  265. {\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.
  266. 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.
  267. 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).
  268. 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.
  269. {\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_curve_a5af9949e725704811bbc81ecd5970b8e}{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.
  270. You may pass 0 as {\itshape details} to indicate that you are not interested in those selection details.
  271. \begin{DoxySeeAlso}{Ver también}
  272. select\+Event, deselect\+Event, \hyperlink{class_q_custom_plot_a5ee1e2f6ae27419deca53e75907c27e5}{Q\+Custom\+Plot\+::set\+Interactions}
  273. \end{DoxySeeAlso}
  274. Implementa \hyperlink{class_q_c_p_abstract_plottable_a38efe9641d972992a3d44204bc80ec1d}{Q\+C\+P\+Abstract\+Plottable}.
  275. \hypertarget{class_q_c_p_curve_a631ac886708460013b30052f49cbc9da}{}\index{Q\+C\+P\+Curve@{Q\+C\+P\+Curve}!set\+Data@{set\+Data}}
  276. \index{set\+Data@{set\+Data}!Q\+C\+P\+Curve@{Q\+C\+P\+Curve}}
  277. \subsubsection[{set\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Curve\+::set\+Data (
  278. \begin{DoxyParamCaption}
  279. \item[{{\bf Q\+C\+P\+Curve\+Data\+Map} $\ast$}]{data, }
  280. \item[{bool}]{copy = {\ttfamily false}}
  281. \end{DoxyParamCaption}
  282. )}\label{class_q_c_p_curve_a631ac886708460013b30052f49cbc9da}
  283. Replaces the current data with the provided {\itshape data}.
  284. If {\itshape copy} is set to true, data points in {\itshape data} will only be copied. if false, the plottable takes ownership of the passed data and replaces the internal data pointer with it. This is significantly faster than copying for large datasets. \hypertarget{class_q_c_p_curve_affe80e011e2ced62a88f614acd6ab8d1}{}\index{Q\+C\+P\+Curve@{Q\+C\+P\+Curve}!set\+Data@{set\+Data}}
  285. \index{set\+Data@{set\+Data}!Q\+C\+P\+Curve@{Q\+C\+P\+Curve}}
  286. \subsubsection[{set\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Curve\+::set\+Data (
  287. \begin{DoxyParamCaption}
  288. \item[{const Q\+Vector$<$ double $>$ \&}]{t, }
  289. \item[{const Q\+Vector$<$ double $>$ \&}]{key, }
  290. \item[{const Q\+Vector$<$ double $>$ \&}]{value}
  291. \end{DoxyParamCaption}
  292. )}\label{class_q_c_p_curve_affe80e011e2ced62a88f614acd6ab8d1}
  293. Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.
  294. Replaces the current data with the provided points in {\itshape t}, {\itshape key} and {\itshape value} tuples. The provided vectors should have equal length. Else, the number of added points will be the size of the smallest vector. \hypertarget{class_q_c_p_curve_a963d4c45777deef15848a8f56172d066}{}\index{Q\+C\+P\+Curve@{Q\+C\+P\+Curve}!set\+Data@{set\+Data}}
  295. \index{set\+Data@{set\+Data}!Q\+C\+P\+Curve@{Q\+C\+P\+Curve}}
  296. \subsubsection[{set\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Curve\+::set\+Data (
  297. \begin{DoxyParamCaption}
  298. \item[{const Q\+Vector$<$ double $>$ \&}]{key, }
  299. \item[{const Q\+Vector$<$ double $>$ \&}]{value}
  300. \end{DoxyParamCaption}
  301. )}\label{class_q_c_p_curve_a963d4c45777deef15848a8f56172d066}
  302. Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.
  303. Replaces the current data with the provided {\itshape key} and {\itshape value} pairs. The t parameter of each data point will be set to the integer index of the respective key/value pair. \hypertarget{class_q_c_p_curve_a4a377ec863ff81a1875c3094a6177c19}{}\index{Q\+C\+P\+Curve@{Q\+C\+P\+Curve}!set\+Line\+Style@{set\+Line\+Style}}
  304. \index{set\+Line\+Style@{set\+Line\+Style}!Q\+C\+P\+Curve@{Q\+C\+P\+Curve}}
  305. \subsubsection[{set\+Line\+Style}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Curve\+::set\+Line\+Style (
  306. \begin{DoxyParamCaption}
  307. \item[{{\bf Q\+C\+P\+Curve\+::\+Line\+Style}}]{style}
  308. \end{DoxyParamCaption}
  309. )}\label{class_q_c_p_curve_a4a377ec863ff81a1875c3094a6177c19}
  310. Sets how the single data points are connected in the plot or how they are represented visually apart from the scatter symbol. For scatter-\/only plots, set {\itshape style} to \hyperlink{class_q_c_p_curve_a2710e9f79302152cff794c6e16cc01f1aec1601a191cdf0b4e761c4c66092cc48}{ls\+None} and \hyperlink{class_q_c_p_curve_a55e43b44709bf50a35500644988aa706}{set\+Scatter\+Style} to the desired scatter style.
  311. \begin{DoxySeeAlso}{Ver también}
  312. \hyperlink{class_q_c_p_curve_a55e43b44709bf50a35500644988aa706}{set\+Scatter\+Style}
  313. \end{DoxySeeAlso}
  314. \hypertarget{class_q_c_p_curve_a55e43b44709bf50a35500644988aa706}{}\index{Q\+C\+P\+Curve@{Q\+C\+P\+Curve}!set\+Scatter\+Style@{set\+Scatter\+Style}}
  315. \index{set\+Scatter\+Style@{set\+Scatter\+Style}!Q\+C\+P\+Curve@{Q\+C\+P\+Curve}}
  316. \subsubsection[{set\+Scatter\+Style}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Curve\+::set\+Scatter\+Style (
  317. \begin{DoxyParamCaption}
  318. \item[{const {\bf Q\+C\+P\+Scatter\+Style} \&}]{style}
  319. \end{DoxyParamCaption}
  320. )}\label{class_q_c_p_curve_a55e43b44709bf50a35500644988aa706}
  321. Sets the visual appearance of single data points in the plot. If set to \hyperlink{class_q_c_p_scatter_style_adb31525af6b680e6f1b7472e43859349abd144c291ca274f77053ec68cab6c022}{Q\+C\+P\+Scatter\+Style\+::ss\+None}, no scatter points are drawn (e.\+g. for line-\/only plots with appropriate line style).
  322. \begin{DoxySeeAlso}{Ver también}
  323. \hyperlink{class_q_c_p_scatter_style}{Q\+C\+P\+Scatter\+Style}, \hyperlink{class_q_c_p_curve_a4a377ec863ff81a1875c3094a6177c19}{set\+Line\+Style}
  324. \end{DoxySeeAlso}
  325. La documentación para esta clase fue generada a partir de los siguientes ficheros\+:\begin{DoxyCompactItemize}
  326. \item
  327. \hyperlink{qcustomplot_8h}{qcustomplot.\+h}\item
  328. \hyperlink{qcustomplot_8cpp}{qcustomplot.\+cpp}\end{DoxyCompactItemize}