No Description

class_q_c_p_abstract_plottable.tex 49KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  1. \hypertarget{class_q_c_p_abstract_plottable}{}\section{Referencia de la Clase Q\+C\+P\+Abstract\+Plottable}
  2. \label{class_q_c_p_abstract_plottable}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  3. The abstract base class for all data representing objects in a plot.
  4. Diagrama de herencias de Q\+C\+P\+Abstract\+Plottable\begin{figure}[H]
  5. \begin{center}
  6. \leavevmode
  7. \includegraphics[height=3.943662cm]{class_q_c_p_abstract_plottable}
  8. \end{center}
  9. \end{figure}
  10. \subsection*{Señales}
  11. \begin{DoxyCompactItemize}
  12. \item
  13. void \hyperlink{class_q_c_p_abstract_plottable_a3af66432b1dca93b28e00e78a8c7c1d9}{selection\+Changed} (bool selected)
  14. \end{DoxyCompactItemize}
  15. \subsection*{Métodos públicos}
  16. \begin{DoxyCompactItemize}
  17. \item
  18. \hyperlink{class_q_c_p_abstract_plottable_af78a036e40db6f53a31abadc5323715a}{Q\+C\+P\+Abstract\+Plottable} (\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)
  19. \item
  20. \hypertarget{class_q_c_p_abstract_plottable_a1affc1972938e4364a9325e4e4e4dcea}{}Q\+String {\bfseries name} () const \label{class_q_c_p_abstract_plottable_a1affc1972938e4364a9325e4e4e4dcea}
  21. \item
  22. \hypertarget{class_q_c_p_abstract_plottable_a68d1c358db03faae376ec47c589abf27}{}bool {\bfseries antialiased\+Fill} () const \label{class_q_c_p_abstract_plottable_a68d1c358db03faae376ec47c589abf27}
  23. \item
  24. \hypertarget{class_q_c_p_abstract_plottable_aefc379bcc011660a5371ecc6088a97eb}{}bool {\bfseries antialiased\+Scatters} () const \label{class_q_c_p_abstract_plottable_aefc379bcc011660a5371ecc6088a97eb}
  25. \item
  26. \hypertarget{class_q_c_p_abstract_plottable_a630cfb27ff99ab4373b09631748fcf4a}{}bool {\bfseries antialiased\+Error\+Bars} () const \label{class_q_c_p_abstract_plottable_a630cfb27ff99ab4373b09631748fcf4a}
  27. \item
  28. \hypertarget{class_q_c_p_abstract_plottable_a41d060007cc6b3037c9c04d22d0c0398}{}Q\+Pen {\bfseries pen} () const \label{class_q_c_p_abstract_plottable_a41d060007cc6b3037c9c04d22d0c0398}
  29. \item
  30. \hypertarget{class_q_c_p_abstract_plottable_a006065572c5add883a944ea4cda699f3}{}Q\+Pen {\bfseries selected\+Pen} () const \label{class_q_c_p_abstract_plottable_a006065572c5add883a944ea4cda699f3}
  31. \item
  32. \hypertarget{class_q_c_p_abstract_plottable_aa74cdceb9c7286ef116fbfa58e0326e7}{}Q\+Brush {\bfseries brush} () const \label{class_q_c_p_abstract_plottable_aa74cdceb9c7286ef116fbfa58e0326e7}
  33. \item
  34. \hypertarget{class_q_c_p_abstract_plottable_a403745791879916431adc872b49207e5}{}Q\+Brush {\bfseries selected\+Brush} () const \label{class_q_c_p_abstract_plottable_a403745791879916431adc872b49207e5}
  35. \item
  36. \hypertarget{class_q_c_p_abstract_plottable_a72c7a09c22963f2c943f07112b311103}{}\hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis} $\ast$ {\bfseries key\+Axis} () const \label{class_q_c_p_abstract_plottable_a72c7a09c22963f2c943f07112b311103}
  37. \item
  38. \hypertarget{class_q_c_p_abstract_plottable_a3106f9d34d330a6097a8ec5905e5b519}{}\hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis} $\ast$ {\bfseries value\+Axis} () const \label{class_q_c_p_abstract_plottable_a3106f9d34d330a6097a8ec5905e5b519}
  39. \item
  40. \hypertarget{class_q_c_p_abstract_plottable_af895574da1ec0d050711b6c9deda296a}{}bool {\bfseries selectable} () const \label{class_q_c_p_abstract_plottable_af895574da1ec0d050711b6c9deda296a}
  41. \item
  42. \hypertarget{class_q_c_p_abstract_plottable_ab901903adcb0e29467d63de72340ab29}{}bool {\bfseries selected} () const \label{class_q_c_p_abstract_plottable_ab901903adcb0e29467d63de72340ab29}
  43. \item
  44. void \hyperlink{class_q_c_p_abstract_plottable_ab79c7ba76bc7fa89a4b3580e12149f1f}{set\+Name} (const Q\+String \&name)
  45. \item
  46. void \hyperlink{class_q_c_p_abstract_plottable_a089d6b5577120239b55c39ed27c39536}{set\+Antialiased\+Fill} (bool enabled)
  47. \item
  48. void \hyperlink{class_q_c_p_abstract_plottable_a2f03f067ede2ed4da6f7d0e4777a3f02}{set\+Antialiased\+Scatters} (bool enabled)
  49. \item
  50. void \hyperlink{class_q_c_p_abstract_plottable_a757beb744b96cf1855cca5ab9d3ecf52}{set\+Antialiased\+Error\+Bars} (bool enabled)
  51. \item
  52. void \hyperlink{class_q_c_p_abstract_plottable_ab74b09ae4c0e7e13142fe4b5bf46cac7}{set\+Pen} (const Q\+Pen \&pen)
  53. \item
  54. void \hyperlink{class_q_c_p_abstract_plottable_a6911603cad23ab0469b108224517516f}{set\+Selected\+Pen} (const Q\+Pen \&pen)
  55. \item
  56. void \hyperlink{class_q_c_p_abstract_plottable_a7a4b92144dca6453a1f0f210e27edc74}{set\+Brush} (const Q\+Brush \&brush)
  57. \item
  58. void \hyperlink{class_q_c_p_abstract_plottable_ae8c816874089f7a44001e8618e81a9dc}{set\+Selected\+Brush} (const Q\+Brush \&brush)
  59. \item
  60. void \hyperlink{class_q_c_p_abstract_plottable_a8524fa2994c63c0913ebd9bb2ffa3920}{set\+Key\+Axis} (\hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis} $\ast$axis)
  61. \item
  62. void \hyperlink{class_q_c_p_abstract_plottable_a71626a07367e241ec62ad2c34baf21cb}{set\+Value\+Axis} (\hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis} $\ast$axis)
  63. \item
  64. Q\+\_\+\+S\+L\+O\+T void \hyperlink{class_q_c_p_abstract_plottable_a22c69299eb5569e0f6bf084877a37dc4}{set\+Selectable} (bool selectable)
  65. \item
  66. Q\+\_\+\+S\+L\+O\+T void \hyperlink{class_q_c_p_abstract_plottable_afbd5428c2952f59d952e11ab5cd79176}{set\+Selected} (bool selected)
  67. \item
  68. virtual void \hyperlink{class_q_c_p_abstract_plottable_a86e5b8fd4b6ff4f4084e7ea4c573fc53}{clear\+Data} ()=0
  69. \item
  70. virtual double \hyperlink{class_q_c_p_abstract_plottable_a38efe9641d972992a3d44204bc80ec1d}{select\+Test} (const Q\+Point\+F \&pos, bool only\+Selectable, Q\+Variant $\ast$details=0) const =0
  71. \item
  72. virtual bool \hyperlink{class_q_c_p_abstract_plottable_a70f8cabfd808f7d5204b9f18c45c13f5}{add\+To\+Legend} ()
  73. \item
  74. virtual bool \hyperlink{class_q_c_p_abstract_plottable_aa1f350e510326d012b9a9c9249736c83}{remove\+From\+Legend} () const
  75. \item
  76. void \hyperlink{class_q_c_p_abstract_plottable_a7e8fc3be43c27ccacd70a7bf9d74a5cd}{rescale\+Axes} (bool only\+Enlarge=false) const
  77. \item
  78. void \hyperlink{class_q_c_p_abstract_plottable_a1acecfcca3e7fcda00fcbaa3c886386f}{rescale\+Key\+Axis} (bool only\+Enlarge=false) const
  79. \item
  80. void \hyperlink{class_q_c_p_abstract_plottable_abfd0805eb1d955c0111a990246658324}{rescale\+Value\+Axis} (bool only\+Enlarge=false) const
  81. \end{DoxyCompactItemize}
  82. \subsection*{Tipos protegidos}
  83. \begin{DoxyCompactItemize}
  84. \item
  85. enum \hyperlink{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8}{Sign\+Domain} \{ \hyperlink{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8a0fc9a70796ef60ad18ddd18056e6dc63}{sd\+Negative},
  86. \hyperlink{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8a082b98cfb91a7363a3b5cd17b0c1cd60}{sd\+Both},
  87. \hyperlink{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8a02951859f243a4d24e779cfbb5471030}{sd\+Positive}
  88. \}
  89. \end{DoxyCompactItemize}
  90. \subsection*{Métodos protegidos}
  91. \begin{DoxyCompactItemize}
  92. \item
  93. \hypertarget{class_q_c_p_abstract_plottable_ac01960b0827913922f5364d559c124ed}{}virtual Q\+Rect {\bfseries clip\+Rect} () const \label{class_q_c_p_abstract_plottable_ac01960b0827913922f5364d559c124ed}
  94. \item
  95. \hypertarget{class_q_c_p_abstract_plottable_acbab5e30dcd04fd302b4a5902ac2c482}{}virtual void {\bfseries draw} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter)=0\label{class_q_c_p_abstract_plottable_acbab5e30dcd04fd302b4a5902ac2c482}
  96. \item
  97. \hypertarget{class_q_c_p_abstract_plottable_a5eef607bcc2aee8bfe2380a8710f6c64}{}virtual \hyperlink{namespace_q_c_p_a2ad6bb6281c7c2d593d4277b44c2b037}{Q\+C\+P\+::\+Interaction} {\bfseries selection\+Category} () const \label{class_q_c_p_abstract_plottable_a5eef607bcc2aee8bfe2380a8710f6c64}
  98. \item
  99. \hypertarget{class_q_c_p_abstract_plottable_a76e9d6cc7972dc1528f526d163766aca}{}void {\bfseries apply\+Default\+Antialiasing\+Hint} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter) const \label{class_q_c_p_abstract_plottable_a76e9d6cc7972dc1528f526d163766aca}
  100. \item
  101. \hypertarget{class_q_c_p_abstract_plottable_a16aaad02456aa23a759efd1ac90c79bf}{}virtual void {\bfseries select\+Event} (Q\+Mouse\+Event $\ast$event, bool additive, const Q\+Variant \&details, bool $\ast$selection\+State\+Changed)\label{class_q_c_p_abstract_plottable_a16aaad02456aa23a759efd1ac90c79bf}
  102. \item
  103. \hypertarget{class_q_c_p_abstract_plottable_a6fa0d0f95560ea8b01ee13f296dab2b1}{}virtual void {\bfseries deselect\+Event} (bool $\ast$selection\+State\+Changed)\label{class_q_c_p_abstract_plottable_a6fa0d0f95560ea8b01ee13f296dab2b1}
  104. \item
  105. \hypertarget{class_q_c_p_abstract_plottable_a9a450783fd9ed539e589999fd390cdf7}{}virtual void {\bfseries draw\+Legend\+Icon} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter, const Q\+Rect\+F \&rect) const =0\label{class_q_c_p_abstract_plottable_a9a450783fd9ed539e589999fd390cdf7}
  106. \item
  107. \hypertarget{class_q_c_p_abstract_plottable_a7aa24ed0b3c39bd99338c7b9f145a71b}{}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 =0\label{class_q_c_p_abstract_plottable_a7aa24ed0b3c39bd99338c7b9f145a71b}
  108. \item
  109. \hypertarget{class_q_c_p_abstract_plottable_aed35cfebe5546feea7af2638dd869d5f}{}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 =0\label{class_q_c_p_abstract_plottable_aed35cfebe5546feea7af2638dd869d5f}
  110. \item
  111. \hypertarget{class_q_c_p_abstract_plottable_ade710a776104b14c1c835168ce1bfc5c}{}void {\bfseries coords\+To\+Pixels} (double key, double value, double \&x, double \&y) const \label{class_q_c_p_abstract_plottable_ade710a776104b14c1c835168ce1bfc5c}
  112. \item
  113. \hypertarget{class_q_c_p_abstract_plottable_a9fd1c9df8391781f05b0be22fbe91e13}{}const Q\+Point\+F {\bfseries coords\+To\+Pixels} (double key, double value) const \label{class_q_c_p_abstract_plottable_a9fd1c9df8391781f05b0be22fbe91e13}
  114. \item
  115. \hypertarget{class_q_c_p_abstract_plottable_a10408828446e9e0681c46d65120f382e}{}void {\bfseries pixels\+To\+Coords} (double x, double y, double \&key, double \&value) const \label{class_q_c_p_abstract_plottable_a10408828446e9e0681c46d65120f382e}
  116. \item
  117. \hypertarget{class_q_c_p_abstract_plottable_a3e2c361cfcdfd5d803ada4d333a07e15}{}void {\bfseries pixels\+To\+Coords} (const Q\+Point\+F \&pixel\+Pos, double \&key, double \&value) const \label{class_q_c_p_abstract_plottable_a3e2c361cfcdfd5d803ada4d333a07e15}
  118. \item
  119. \hypertarget{class_q_c_p_abstract_plottable_a19276ed2382a3a06464417b8788b1451}{}Q\+Pen {\bfseries main\+Pen} () const \label{class_q_c_p_abstract_plottable_a19276ed2382a3a06464417b8788b1451}
  120. \item
  121. \hypertarget{class_q_c_p_abstract_plottable_ae74c123832da180c17e22203e748d9b7}{}Q\+Brush {\bfseries main\+Brush} () const \label{class_q_c_p_abstract_plottable_ae74c123832da180c17e22203e748d9b7}
  122. \item
  123. \hypertarget{class_q_c_p_abstract_plottable_ac08a480155895e674dbfe5a5670e0ff3}{}void {\bfseries apply\+Fill\+Antialiasing\+Hint} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter) const \label{class_q_c_p_abstract_plottable_ac08a480155895e674dbfe5a5670e0ff3}
  124. \item
  125. \hypertarget{class_q_c_p_abstract_plottable_a753272ee225a62827e90c3e1e78de4b1}{}void {\bfseries apply\+Scatters\+Antialiasing\+Hint} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter) const \label{class_q_c_p_abstract_plottable_a753272ee225a62827e90c3e1e78de4b1}
  126. \item
  127. \hypertarget{class_q_c_p_abstract_plottable_af687bfe6160255960558eb71f1f81e73}{}void {\bfseries apply\+Error\+Bars\+Antialiasing\+Hint} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter) const \label{class_q_c_p_abstract_plottable_af687bfe6160255960558eb71f1f81e73}
  128. \item
  129. \hypertarget{class_q_c_p_abstract_plottable_a5ea1cab44ca912dcdc96ed81ec5bed5d}{}double {\bfseries dist\+Sqr\+To\+Line} (const Q\+Point\+F \&start, const Q\+Point\+F \&end, const Q\+Point\+F \&point) const \label{class_q_c_p_abstract_plottable_a5ea1cab44ca912dcdc96ed81ec5bed5d}
  130. \end{DoxyCompactItemize}
  131. \subsection*{Atributos protegidos}
  132. \begin{DoxyCompactItemize}
  133. \item
  134. \hypertarget{class_q_c_p_abstract_plottable_ac29ffef424e2488675930de18cde612a}{}Q\+String {\bfseries m\+Name}\label{class_q_c_p_abstract_plottable_ac29ffef424e2488675930de18cde612a}
  135. \item
  136. \hypertarget{class_q_c_p_abstract_plottable_a152ac765bedf927fb240545d11d453ea}{}bool {\bfseries m\+Antialiased\+Fill}\label{class_q_c_p_abstract_plottable_a152ac765bedf927fb240545d11d453ea}
  137. \item
  138. \hypertarget{class_q_c_p_abstract_plottable_aa115755e525a8e3a86dc683f9cab755b}{}bool {\bfseries m\+Antialiased\+Scatters}\label{class_q_c_p_abstract_plottable_aa115755e525a8e3a86dc683f9cab755b}
  139. \item
  140. \hypertarget{class_q_c_p_abstract_plottable_ad48660b2bd301576e92fb033d8f455ea}{}bool {\bfseries m\+Antialiased\+Error\+Bars}\label{class_q_c_p_abstract_plottable_ad48660b2bd301576e92fb033d8f455ea}
  141. \item
  142. \hypertarget{class_q_c_p_abstract_plottable_a67bc0622fd1b9fa14e54c14922dcec66}{}Q\+Pen {\bfseries m\+Pen}\label{class_q_c_p_abstract_plottable_a67bc0622fd1b9fa14e54c14922dcec66}
  143. \item
  144. \hypertarget{class_q_c_p_abstract_plottable_a10619472f5d5e10e9519a599f1cf5576}{}Q\+Pen {\bfseries m\+Selected\+Pen}\label{class_q_c_p_abstract_plottable_a10619472f5d5e10e9519a599f1cf5576}
  145. \item
  146. \hypertarget{class_q_c_p_abstract_plottable_a33f00674c0161c13315ab9da0895418e}{}Q\+Brush {\bfseries m\+Brush}\label{class_q_c_p_abstract_plottable_a33f00674c0161c13315ab9da0895418e}
  147. \item
  148. \hypertarget{class_q_c_p_abstract_plottable_aea3c0da30c7a8be23ad5f2d9bca36762}{}Q\+Brush {\bfseries m\+Selected\+Brush}\label{class_q_c_p_abstract_plottable_aea3c0da30c7a8be23ad5f2d9bca36762}
  149. \item
  150. \hypertarget{class_q_c_p_abstract_plottable_a426f42e254d0f8ce5436a868c61a6827}{}Q\+Pointer$<$ \hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis} $>$ {\bfseries m\+Key\+Axis}\label{class_q_c_p_abstract_plottable_a426f42e254d0f8ce5436a868c61a6827}
  151. \item
  152. \hypertarget{class_q_c_p_abstract_plottable_a2901452ca4aea911a1827717934a4bda}{}Q\+Pointer$<$ \hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis} $>$ {\bfseries m\+Value\+Axis}\label{class_q_c_p_abstract_plottable_a2901452ca4aea911a1827717934a4bda}
  153. \item
  154. \hypertarget{class_q_c_p_abstract_plottable_aceee52342c8e75727abcbd164986fdcb}{}bool {\bfseries m\+Selectable}\label{class_q_c_p_abstract_plottable_aceee52342c8e75727abcbd164986fdcb}
  155. \item
  156. \hypertarget{class_q_c_p_abstract_plottable_a43f68a0603e9bcd016bdfa6d9d5c41c9}{}bool {\bfseries m\+Selected}\label{class_q_c_p_abstract_plottable_a43f68a0603e9bcd016bdfa6d9d5c41c9}
  157. \end{DoxyCompactItemize}
  158. \subsection*{Amigas}
  159. \begin{DoxyCompactItemize}
  160. \item
  161. \hypertarget{class_q_c_p_abstract_plottable_a1cdf9df76adcfae45261690aa0ca2198}{}class {\bfseries Q\+Custom\+Plot}\label{class_q_c_p_abstract_plottable_a1cdf9df76adcfae45261690aa0ca2198}
  162. \item
  163. \hypertarget{class_q_c_p_abstract_plottable_af123edeca169ec7a31958a1d714e1a8a}{}class {\bfseries Q\+C\+P\+Axis}\label{class_q_c_p_abstract_plottable_af123edeca169ec7a31958a1d714e1a8a}
  164. \item
  165. \hypertarget{class_q_c_p_abstract_plottable_a104c78e91302afd6842a903e472f552f}{}class {\bfseries Q\+C\+P\+Plottable\+Legend\+Item}\label{class_q_c_p_abstract_plottable_a104c78e91302afd6842a903e472f552f}
  166. \end{DoxyCompactItemize}
  167. \subsection{Descripción detallada}
  168. The abstract base class for all data representing objects in a plot.
  169. It defines a very basic interface like name, pen, brush, visibility etc. Since this class is abstract, it can\textquotesingle{}t be instantiated. Use one of the subclasses or create a subclass yourself to create new ways of displaying data (see \char`\"{}\+Creating own plottables\char`\"{} below).
  170. All further specifics are in the subclasses, for example\+: \begin{DoxyItemize}
  171. \item A normal graph with possibly a line, scatter points and error bars is displayed by \hyperlink{class_q_c_p_graph}{Q\+C\+P\+Graph} (typically created with \hyperlink{class_q_custom_plot_a6fb2873d35a8a8089842d81a70a54167}{Q\+Custom\+Plot\+::add\+Graph}). \item A parametric curve can be displayed with \hyperlink{class_q_c_p_curve}{Q\+C\+P\+Curve}. \item A stackable bar chart can be achieved with \hyperlink{class_q_c_p_bars}{Q\+C\+P\+Bars}. \item A box of a statistical box plot is created with \hyperlink{class_q_c_p_statistical_box}{Q\+C\+P\+Statistical\+Box}.\end{DoxyItemize}
  172. \hypertarget{class_q_c_p_abstract_plottable_plottables-subclassing}{}\subsection{Creating own plottables}\label{class_q_c_p_abstract_plottable_plottables-subclassing}
  173. To create an own plottable, you implement a subclass of \hyperlink{class_q_c_p_abstract_plottable}{Q\+C\+P\+Abstract\+Plottable}. These are the pure virtual functions, you must implement\+: \begin{DoxyItemize}
  174. \item \hyperlink{class_q_c_p_abstract_plottable_a86e5b8fd4b6ff4f4084e7ea4c573fc53}{clear\+Data} \item \hyperlink{class_q_c_p_abstract_plottable_a38efe9641d972992a3d44204bc80ec1d}{select\+Test} \item draw \item draw\+Legend\+Icon \item get\+Key\+Range \item get\+Value\+Range\end{DoxyItemize}
  175. See the documentation of those functions for what they need to do.
  176. For drawing your plot, you can use the coords\+To\+Pixels functions to translate a point in plot coordinates to pixel coordinates. This function is quite convenient, because it takes the orientation of the key and value axes into account for you (x and y are swapped when the key axis is vertical and the value axis horizontal). If you are worried about performance (i.\+e. you need to translate many points in a loop like \hyperlink{class_q_c_p_graph}{Q\+C\+P\+Graph}), you can directly use \hyperlink{class_q_c_p_axis_a985ae693b842fb0422b4390fe36d299a}{Q\+C\+P\+Axis\+::coord\+To\+Pixel}. However, you must then take care about the orientation of the axis yourself.
  177. Here are some important members you inherit from \hyperlink{class_q_c_p_abstract_plottable}{Q\+C\+P\+Abstract\+Plottable}\+: \begin{TabularC}{2}
  178. \hline
  179. \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} $\ast${\bfseries m\+Parent\+Plot} &A pointer to the parent \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} instance. The parent plot is inferred from the axes that are passed in the constructor. \\\cline{1-2}
  180. Q\+String {\bfseries m\+Name} &The name of the plottable. \\\cline{1-2}
  181. Q\+Pen {\bfseries m\+Pen} &The generic pen of the plottable. You should use this pen for the most prominent data representing lines in the plottable (e.\+g \hyperlink{class_q_c_p_graph}{Q\+C\+P\+Graph} uses this pen for its graph lines and scatters) \\\cline{1-2}
  182. Q\+Pen {\bfseries m\+Selected\+Pen} &The generic pen that should be used when the plottable is selected (hint\+: main\+Pen gives you the right pen, depending on selection state). \\\cline{1-2}
  183. Q\+Brush {\bfseries m\+Brush} &The generic brush of the plottable. You should use this brush for the most prominent fillable structures in the plottable (e.\+g. \hyperlink{class_q_c_p_graph}{Q\+C\+P\+Graph} uses this brush to control filling under the graph) \\\cline{1-2}
  184. Q\+Brush {\bfseries m\+Selected\+Brush} &The generic brush that should be used when the plottable is selected (hint\+: main\+Brush gives you the right brush, depending on selection state). \\\cline{1-2}
  185. Q\+Pointer$<$\+Q\+C\+P\+Axis$>${\bfseries m\+Key\+Axis}, {\bfseries m\+Value\+Axis} &The key and value axes this plottable is attached to. Call their \hyperlink{class_q_c_p_axis_a985ae693b842fb0422b4390fe36d299a}{Q\+C\+P\+Axis\+::coord\+To\+Pixel} functions to translate coordinates to pixels in either the key or value dimension. Make sure to check whether the weak pointer is null before using it. If one of the axes is null, don\textquotesingle{}t draw the plottable. \\\cline{1-2}
  186. bool {\bfseries m\+Selected} &indicates whether the plottable is selected or not. \\\cline{1-2}
  187. \end{TabularC}
  188. \subsection{Documentación de las enumeraciones miembro de la clase}
  189. \hypertarget{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8}{}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!Sign\+Domain@{Sign\+Domain}}
  190. \index{Sign\+Domain@{Sign\+Domain}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  191. \subsubsection[{Sign\+Domain}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf Q\+C\+P\+Abstract\+Plottable\+::\+Sign\+Domain}\hspace{0.3cm}{\ttfamily [protected]}}\label{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8}
  192. Represents negative and positive sign domain for passing to get\+Key\+Range and get\+Value\+Range. \begin{Desc}
  193. \item[Valores de enumeraciones]\par
  194. \begin{description}
  195. \index{sd\+Negative@{sd\+Negative}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!sd\+Negative@{sd\+Negative}}\item[{\em
  196. \hypertarget{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8a0fc9a70796ef60ad18ddd18056e6dc63}{}sd\+Negative\label{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8a0fc9a70796ef60ad18ddd18056e6dc63}
  197. }]The negative sign domain, i.\+e. numbers smaller than zero. \index{sd\+Both@{sd\+Both}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!sd\+Both@{sd\+Both}}\item[{\em
  198. \hypertarget{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8a082b98cfb91a7363a3b5cd17b0c1cd60}{}sd\+Both\label{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8a082b98cfb91a7363a3b5cd17b0c1cd60}
  199. }]Both sign domains, including zero, i.\+e. all (rational) numbers. \index{sd\+Positive@{sd\+Positive}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!sd\+Positive@{sd\+Positive}}\item[{\em
  200. \hypertarget{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8a02951859f243a4d24e779cfbb5471030}{}sd\+Positive\label{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8a02951859f243a4d24e779cfbb5471030}
  201. }]The positive sign domain, i.\+e. numbers greater than zero. \end{description}
  202. \end{Desc}
  203. \subsection{Documentación del constructor y destructor}
  204. \hypertarget{class_q_c_p_abstract_plottable_af78a036e40db6f53a31abadc5323715a}{}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  205. \index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  206. \subsubsection[{Q\+C\+P\+Abstract\+Plottable}]{\setlength{\rightskip}{0pt plus 5cm}Q\+C\+P\+Abstract\+Plottable\+::\+Q\+C\+P\+Abstract\+Plottable (
  207. \begin{DoxyParamCaption}
  208. \item[{{\bf Q\+C\+P\+Axis} $\ast$}]{key\+Axis, }
  209. \item[{{\bf Q\+C\+P\+Axis} $\ast$}]{value\+Axis}
  210. \end{DoxyParamCaption}
  211. )}\label{class_q_c_p_abstract_plottable_af78a036e40db6f53a31abadc5323715a}
  212. Constructs an abstract plottable 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 have perpendicular orientations. If either of these restrictions is violated, a corresponding message is printed to the debug output (q\+Debug), the construction is not aborted, though.
  213. Since \hyperlink{class_q_c_p_abstract_plottable}{Q\+C\+P\+Abstract\+Plottable} is an abstract class that defines the basic interface to plottables, it can\textquotesingle{}t be directly instantiated.
  214. You probably want one of the subclasses like \hyperlink{class_q_c_p_graph}{Q\+C\+P\+Graph} or \hyperlink{class_q_c_p_curve}{Q\+C\+P\+Curve} instead.
  215. \subsection{Documentación de las funciones miembro}
  216. \hypertarget{class_q_c_p_abstract_plottable_a70f8cabfd808f7d5204b9f18c45c13f5}{}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!add\+To\+Legend@{add\+To\+Legend}}
  217. \index{add\+To\+Legend@{add\+To\+Legend}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  218. \subsubsection[{add\+To\+Legend}]{\setlength{\rightskip}{0pt plus 5cm}bool Q\+C\+P\+Abstract\+Plottable\+::add\+To\+Legend (
  219. \begin{DoxyParamCaption}
  220. {}
  221. \end{DoxyParamCaption}
  222. )\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_q_c_p_abstract_plottable_a70f8cabfd808f7d5204b9f18c45c13f5}
  223. Adds this plottable to the legend of the parent \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} (Q\+Custom\+Plot\+::legend).
  224. Normally, a \hyperlink{class_q_c_p_plottable_legend_item}{Q\+C\+P\+Plottable\+Legend\+Item} is created and inserted into the legend. If the plottable needs a more specialized representation in the legend, this function will take this into account and instead create the specialized subclass of \hyperlink{class_q_c_p_abstract_legend_item}{Q\+C\+P\+Abstract\+Legend\+Item}.
  225. Returns true on success, i.\+e. when the legend exists and a legend item associated with this plottable isn\textquotesingle{}t already in the legend.
  226. \begin{DoxySeeAlso}{Ver también}
  227. \hyperlink{class_q_c_p_abstract_plottable_aa1f350e510326d012b9a9c9249736c83}{remove\+From\+Legend}, \hyperlink{class_q_c_p_legend_a3ab274de52d2951faea45a6d975e6b3f}{Q\+C\+P\+Legend\+::add\+Item}
  228. \end{DoxySeeAlso}
  229. \hypertarget{class_q_c_p_abstract_plottable_a86e5b8fd4b6ff4f4084e7ea4c573fc53}{}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!clear\+Data@{clear\+Data}}
  230. \index{clear\+Data@{clear\+Data}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  231. \subsubsection[{clear\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Abstract\+Plottable\+::clear\+Data (
  232. \begin{DoxyParamCaption}
  233. {}
  234. \end{DoxyParamCaption}
  235. )\hspace{0.3cm}{\ttfamily [pure virtual]}}\label{class_q_c_p_abstract_plottable_a86e5b8fd4b6ff4f4084e7ea4c573fc53}
  236. Clears all data in the plottable.
  237. Implementado en \hyperlink{class_q_c_p_statistical_box_a19112994449df0c20287858436cc68e3}{Q\+C\+P\+Statistical\+Box}, \hyperlink{class_q_c_p_bars_a11dbbd707132f07f862dff13c5789c2b}{Q\+C\+P\+Bars}, \hyperlink{class_q_c_p_curve_ae0462c61dbfbac07db0736ec64110241}{Q\+C\+P\+Curve} y \hyperlink{class_q_c_p_graph_ad4e94a4e44e5e76fbec81a72a977157d}{Q\+C\+P\+Graph}.
  238. \hypertarget{class_q_c_p_abstract_plottable_aa1f350e510326d012b9a9c9249736c83}{}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!remove\+From\+Legend@{remove\+From\+Legend}}
  239. \index{remove\+From\+Legend@{remove\+From\+Legend}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  240. \subsubsection[{remove\+From\+Legend}]{\setlength{\rightskip}{0pt plus 5cm}bool Q\+C\+P\+Abstract\+Plottable\+::remove\+From\+Legend (
  241. \begin{DoxyParamCaption}
  242. {}
  243. \end{DoxyParamCaption}
  244. ) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_q_c_p_abstract_plottable_aa1f350e510326d012b9a9c9249736c83}
  245. Removes the plottable from the legend of the parent \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}. This means the \hyperlink{class_q_c_p_abstract_legend_item}{Q\+C\+P\+Abstract\+Legend\+Item} (usually a \hyperlink{class_q_c_p_plottable_legend_item}{Q\+C\+P\+Plottable\+Legend\+Item}) that is associated with this plottable is removed.
  246. Returns true on success, i.\+e. if the legend exists and a legend item associated with this plottable was found and removed.
  247. \begin{DoxySeeAlso}{Ver también}
  248. \hyperlink{class_q_c_p_abstract_plottable_a70f8cabfd808f7d5204b9f18c45c13f5}{add\+To\+Legend}, \hyperlink{class_q_c_p_legend_ac91595c3eaa746fe6321d2eb952c63bb}{Q\+C\+P\+Legend\+::remove\+Item}
  249. \end{DoxySeeAlso}
  250. \hypertarget{class_q_c_p_abstract_plottable_a7e8fc3be43c27ccacd70a7bf9d74a5cd}{}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!rescale\+Axes@{rescale\+Axes}}
  251. \index{rescale\+Axes@{rescale\+Axes}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  252. \subsubsection[{rescale\+Axes}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Abstract\+Plottable\+::rescale\+Axes (
  253. \begin{DoxyParamCaption}
  254. \item[{bool}]{only\+Enlarge = {\ttfamily false}}
  255. \end{DoxyParamCaption}
  256. ) const}\label{class_q_c_p_abstract_plottable_a7e8fc3be43c27ccacd70a7bf9d74a5cd}
  257. Rescales the key and value axes associated with this plottable to contain all displayed data, so the whole plottable is visible. If the scaling of an axis is logarithmic, rescale\+Axes will make sure not to rescale to an illegal range i.\+e. a range containing different signs and/or zero. Instead it will stay in the current sign domain and ignore all parts of the plottable that lie outside of that domain.
  258. {\itshape only\+Enlarge} makes sure the ranges are only expanded, never reduced. So it\textquotesingle{}s possible to show multiple plottables in their entirety by multiple calls to rescale\+Axes where the first call has {\itshape only\+Enlarge} set to false (the default), and all subsequent set to true.
  259. \begin{DoxySeeAlso}{Ver también}
  260. \hyperlink{class_q_c_p_abstract_plottable_a1acecfcca3e7fcda00fcbaa3c886386f}{rescale\+Key\+Axis}, \hyperlink{class_q_c_p_abstract_plottable_abfd0805eb1d955c0111a990246658324}{rescale\+Value\+Axis}, \hyperlink{class_q_custom_plot_ad86528f2cee6c7e446dea4a6e8839935}{Q\+Custom\+Plot\+::rescale\+Axes}, \hyperlink{class_q_c_p_axis_a499345f02ebce4b23d8ccec96e58daa9}{Q\+C\+P\+Axis\+::rescale}
  261. \end{DoxySeeAlso}
  262. \hypertarget{class_q_c_p_abstract_plottable_a1acecfcca3e7fcda00fcbaa3c886386f}{}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!rescale\+Key\+Axis@{rescale\+Key\+Axis}}
  263. \index{rescale\+Key\+Axis@{rescale\+Key\+Axis}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  264. \subsubsection[{rescale\+Key\+Axis}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Abstract\+Plottable\+::rescale\+Key\+Axis (
  265. \begin{DoxyParamCaption}
  266. \item[{bool}]{only\+Enlarge = {\ttfamily false}}
  267. \end{DoxyParamCaption}
  268. ) const}\label{class_q_c_p_abstract_plottable_a1acecfcca3e7fcda00fcbaa3c886386f}
  269. Rescales the key axis of the plottable so the whole plottable is visible.
  270. See \hyperlink{class_q_c_p_abstract_plottable_a7e8fc3be43c27ccacd70a7bf9d74a5cd}{rescale\+Axes} for detailed behaviour. \hypertarget{class_q_c_p_abstract_plottable_abfd0805eb1d955c0111a990246658324}{}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!rescale\+Value\+Axis@{rescale\+Value\+Axis}}
  271. \index{rescale\+Value\+Axis@{rescale\+Value\+Axis}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  272. \subsubsection[{rescale\+Value\+Axis}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Abstract\+Plottable\+::rescale\+Value\+Axis (
  273. \begin{DoxyParamCaption}
  274. \item[{bool}]{only\+Enlarge = {\ttfamily false}}
  275. \end{DoxyParamCaption}
  276. ) const}\label{class_q_c_p_abstract_plottable_abfd0805eb1d955c0111a990246658324}
  277. Rescales the value axis of the plottable so the whole plottable is visible.
  278. Returns true if the axis was actually scaled. This might not be the case if this plottable has an invalid range, e.\+g. because it has no data points.
  279. See \hyperlink{class_q_c_p_abstract_plottable_a7e8fc3be43c27ccacd70a7bf9d74a5cd}{rescale\+Axes} for detailed behaviour. \hypertarget{class_q_c_p_abstract_plottable_a3af66432b1dca93b28e00e78a8c7c1d9}{}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!selection\+Changed@{selection\+Changed}}
  280. \index{selection\+Changed@{selection\+Changed}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  281. \subsubsection[{selection\+Changed}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Abstract\+Plottable\+::selection\+Changed (
  282. \begin{DoxyParamCaption}
  283. \item[{bool}]{selected}
  284. \end{DoxyParamCaption}
  285. )\hspace{0.3cm}{\ttfamily [signal]}}\label{class_q_c_p_abstract_plottable_a3af66432b1dca93b28e00e78a8c7c1d9}
  286. This signal is emitted when the selection state of this plottable has changed to {\itshape selected}, either by user interaction or by a direct call to \hyperlink{class_q_c_p_abstract_plottable_afbd5428c2952f59d952e11ab5cd79176}{set\+Selected}. \hypertarget{class_q_c_p_abstract_plottable_a38efe9641d972992a3d44204bc80ec1d}{}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!select\+Test@{select\+Test}}
  287. \index{select\+Test@{select\+Test}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  288. \subsubsection[{select\+Test}]{\setlength{\rightskip}{0pt plus 5cm}virtual double Q\+C\+P\+Abstract\+Plottable\+::select\+Test (
  289. \begin{DoxyParamCaption}
  290. \item[{const Q\+Point\+F \&}]{pos, }
  291. \item[{bool}]{only\+Selectable, }
  292. \item[{Q\+Variant $\ast$}]{details = {\ttfamily 0}}
  293. \end{DoxyParamCaption}
  294. ) const\hspace{0.3cm}{\ttfamily [pure virtual]}}\label{class_q_c_p_abstract_plottable_a38efe9641d972992a3d44204bc80ec1d}
  295. This function is used to decide whether a click hits a layerable object or not.
  296. {\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.
  297. 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.
  298. 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).
  299. 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.
  300. {\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_abstract_plottable_a38efe9641d972992a3d44204bc80ec1d}{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.
  301. You may pass 0 as {\itshape details} to indicate that you are not interested in those selection details.
  302. \begin{DoxySeeAlso}{Ver también}
  303. select\+Event, deselect\+Event, \hyperlink{class_q_custom_plot_a5ee1e2f6ae27419deca53e75907c27e5}{Q\+Custom\+Plot\+::set\+Interactions}
  304. \end{DoxySeeAlso}
  305. Reimplementado de \hyperlink{class_q_c_p_layerable_a4001c4d0dfec55598efa4d531f2179a9}{Q\+C\+P\+Layerable}.
  306. Implementado en \hyperlink{class_q_c_p_statistical_box_a7d3ac843dc48a085740fdfc4319a89cc}{Q\+C\+P\+Statistical\+Box}, \hyperlink{class_q_c_p_bars_a0d37a9feb1d0baf73ce6e809db214445}{Q\+C\+P\+Bars}, \hyperlink{class_q_c_p_curve_a5af9949e725704811bbc81ecd5970b8e}{Q\+C\+P\+Curve} y \hyperlink{class_q_c_p_graph_abc9ff375aabcf2d21cca33d6baf85772}{Q\+C\+P\+Graph}.
  307. \hypertarget{class_q_c_p_abstract_plottable_a757beb744b96cf1855cca5ab9d3ecf52}{}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!set\+Antialiased\+Error\+Bars@{set\+Antialiased\+Error\+Bars}}
  308. \index{set\+Antialiased\+Error\+Bars@{set\+Antialiased\+Error\+Bars}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  309. \subsubsection[{set\+Antialiased\+Error\+Bars}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Abstract\+Plottable\+::set\+Antialiased\+Error\+Bars (
  310. \begin{DoxyParamCaption}
  311. \item[{bool}]{enabled}
  312. \end{DoxyParamCaption}
  313. )}\label{class_q_c_p_abstract_plottable_a757beb744b96cf1855cca5ab9d3ecf52}
  314. Sets whether the error bars of this plottable are drawn antialiased or not.
  315. Note that this setting may be overridden by \hyperlink{class_q_custom_plot_af6f91e5eab1be85f67c556e98c3745e8}{Q\+Custom\+Plot\+::set\+Antialiased\+Elements} and \hyperlink{class_q_custom_plot_ae10d685b5eabea2999fb8775ca173c24}{Q\+Custom\+Plot\+::set\+Not\+Antialiased\+Elements}. \hypertarget{class_q_c_p_abstract_plottable_a089d6b5577120239b55c39ed27c39536}{}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!set\+Antialiased\+Fill@{set\+Antialiased\+Fill}}
  316. \index{set\+Antialiased\+Fill@{set\+Antialiased\+Fill}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  317. \subsubsection[{set\+Antialiased\+Fill}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Abstract\+Plottable\+::set\+Antialiased\+Fill (
  318. \begin{DoxyParamCaption}
  319. \item[{bool}]{enabled}
  320. \end{DoxyParamCaption}
  321. )}\label{class_q_c_p_abstract_plottable_a089d6b5577120239b55c39ed27c39536}
  322. Sets whether fills of this plottable is drawn antialiased or not.
  323. Note that this setting may be overridden by \hyperlink{class_q_custom_plot_af6f91e5eab1be85f67c556e98c3745e8}{Q\+Custom\+Plot\+::set\+Antialiased\+Elements} and \hyperlink{class_q_custom_plot_ae10d685b5eabea2999fb8775ca173c24}{Q\+Custom\+Plot\+::set\+Not\+Antialiased\+Elements}. \hypertarget{class_q_c_p_abstract_plottable_a2f03f067ede2ed4da6f7d0e4777a3f02}{}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!set\+Antialiased\+Scatters@{set\+Antialiased\+Scatters}}
  324. \index{set\+Antialiased\+Scatters@{set\+Antialiased\+Scatters}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  325. \subsubsection[{set\+Antialiased\+Scatters}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Abstract\+Plottable\+::set\+Antialiased\+Scatters (
  326. \begin{DoxyParamCaption}
  327. \item[{bool}]{enabled}
  328. \end{DoxyParamCaption}
  329. )}\label{class_q_c_p_abstract_plottable_a2f03f067ede2ed4da6f7d0e4777a3f02}
  330. Sets whether the scatter symbols of this plottable are drawn antialiased or not.
  331. Note that this setting may be overridden by \hyperlink{class_q_custom_plot_af6f91e5eab1be85f67c556e98c3745e8}{Q\+Custom\+Plot\+::set\+Antialiased\+Elements} and \hyperlink{class_q_custom_plot_ae10d685b5eabea2999fb8775ca173c24}{Q\+Custom\+Plot\+::set\+Not\+Antialiased\+Elements}. \hypertarget{class_q_c_p_abstract_plottable_a7a4b92144dca6453a1f0f210e27edc74}{}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!set\+Brush@{set\+Brush}}
  332. \index{set\+Brush@{set\+Brush}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  333. \subsubsection[{set\+Brush}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Abstract\+Plottable\+::set\+Brush (
  334. \begin{DoxyParamCaption}
  335. \item[{const Q\+Brush \&}]{brush}
  336. \end{DoxyParamCaption}
  337. )}\label{class_q_c_p_abstract_plottable_a7a4b92144dca6453a1f0f210e27edc74}
  338. The brush is used to draw basic fills of the plottable representation in the plot. The Fill can be a color, gradient or texture, see the usage of Q\+Brush.
  339. For example, the \hyperlink{class_q_c_p_graph}{Q\+C\+P\+Graph} subclass draws the fill under the graph with this brush, when it\textquotesingle{}s not set to Qt\+::\+No\+Brush.
  340. \begin{DoxySeeAlso}{Ver también}
  341. \hyperlink{class_q_c_p_abstract_plottable_ab74b09ae4c0e7e13142fe4b5bf46cac7}{set\+Pen}
  342. \end{DoxySeeAlso}
  343. \hypertarget{class_q_c_p_abstract_plottable_a8524fa2994c63c0913ebd9bb2ffa3920}{}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!set\+Key\+Axis@{set\+Key\+Axis}}
  344. \index{set\+Key\+Axis@{set\+Key\+Axis}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  345. \subsubsection[{set\+Key\+Axis}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Abstract\+Plottable\+::set\+Key\+Axis (
  346. \begin{DoxyParamCaption}
  347. \item[{{\bf Q\+C\+P\+Axis} $\ast$}]{axis}
  348. \end{DoxyParamCaption}
  349. )}\label{class_q_c_p_abstract_plottable_a8524fa2994c63c0913ebd9bb2ffa3920}
  350. The key axis of a plottable can be set to any axis of a \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}, as long as it is orthogonal to the plottable\textquotesingle{}s value axis. This function performs no checks to make sure this is the case. The typical mathematical choice is to use the x-\/axis (Q\+Custom\+Plot\+::x\+Axis) as key axis and the y-\/axis (Q\+Custom\+Plot\+::y\+Axis) as value axis.
  351. Normally, the key and value axes are set in the constructor of the plottable (or \hyperlink{class_q_custom_plot_a6fb2873d35a8a8089842d81a70a54167}{Q\+Custom\+Plot\+::add\+Graph} when working with Q\+C\+P\+Graphs through the dedicated graph interface).
  352. \begin{DoxySeeAlso}{Ver también}
  353. \hyperlink{class_q_c_p_abstract_plottable_a71626a07367e241ec62ad2c34baf21cb}{set\+Value\+Axis}
  354. \end{DoxySeeAlso}
  355. \hypertarget{class_q_c_p_abstract_plottable_ab79c7ba76bc7fa89a4b3580e12149f1f}{}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!set\+Name@{set\+Name}}
  356. \index{set\+Name@{set\+Name}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  357. \subsubsection[{set\+Name}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Abstract\+Plottable\+::set\+Name (
  358. \begin{DoxyParamCaption}
  359. \item[{const Q\+String \&}]{name}
  360. \end{DoxyParamCaption}
  361. )}\label{class_q_c_p_abstract_plottable_ab79c7ba76bc7fa89a4b3580e12149f1f}
  362. The name is the textual representation of this plottable as it is displayed in the legend (\hyperlink{class_q_c_p_legend}{Q\+C\+P\+Legend}). It may contain any U\+T\+F-\/8 characters, including newlines. \hypertarget{class_q_c_p_abstract_plottable_ab74b09ae4c0e7e13142fe4b5bf46cac7}{}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!set\+Pen@{set\+Pen}}
  363. \index{set\+Pen@{set\+Pen}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  364. \subsubsection[{set\+Pen}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Abstract\+Plottable\+::set\+Pen (
  365. \begin{DoxyParamCaption}
  366. \item[{const Q\+Pen \&}]{pen}
  367. \end{DoxyParamCaption}
  368. )}\label{class_q_c_p_abstract_plottable_ab74b09ae4c0e7e13142fe4b5bf46cac7}
  369. The pen is used to draw basic lines that make up the plottable representation in the plot.
  370. For example, the \hyperlink{class_q_c_p_graph}{Q\+C\+P\+Graph} subclass draws its graph lines and scatter points with this pen.
  371. \begin{DoxySeeAlso}{Ver también}
  372. \hyperlink{class_q_c_p_abstract_plottable_a7a4b92144dca6453a1f0f210e27edc74}{set\+Brush}
  373. \end{DoxySeeAlso}
  374. \hypertarget{class_q_c_p_abstract_plottable_a22c69299eb5569e0f6bf084877a37dc4}{}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!set\+Selectable@{set\+Selectable}}
  375. \index{set\+Selectable@{set\+Selectable}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  376. \subsubsection[{set\+Selectable}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Abstract\+Plottable\+::set\+Selectable (
  377. \begin{DoxyParamCaption}
  378. \item[{bool}]{selectable}
  379. \end{DoxyParamCaption}
  380. )}\label{class_q_c_p_abstract_plottable_a22c69299eb5569e0f6bf084877a37dc4}
  381. Sets whether the user can (de-\/)select this plottable by clicking on the \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} surface. (When \hyperlink{class_q_custom_plot_a5ee1e2f6ae27419deca53e75907c27e5}{Q\+Custom\+Plot\+::set\+Interactions} contains i\+Select\+Plottables.)
  382. However, even when {\itshape selectable} was set to false, it is possible to set the selection manually, by calling \hyperlink{class_q_c_p_abstract_plottable_afbd5428c2952f59d952e11ab5cd79176}{set\+Selected} directly.
  383. \begin{DoxySeeAlso}{Ver también}
  384. \hyperlink{class_q_c_p_abstract_plottable_afbd5428c2952f59d952e11ab5cd79176}{set\+Selected}
  385. \end{DoxySeeAlso}
  386. \hypertarget{class_q_c_p_abstract_plottable_afbd5428c2952f59d952e11ab5cd79176}{}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!set\+Selected@{set\+Selected}}
  387. \index{set\+Selected@{set\+Selected}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  388. \subsubsection[{set\+Selected}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Abstract\+Plottable\+::set\+Selected (
  389. \begin{DoxyParamCaption}
  390. \item[{bool}]{selected}
  391. \end{DoxyParamCaption}
  392. )}\label{class_q_c_p_abstract_plottable_afbd5428c2952f59d952e11ab5cd79176}
  393. Sets whether this plottable is selected or not. When selected, it uses a different pen and brush to draw its lines and fills, see \hyperlink{class_q_c_p_abstract_plottable_a6911603cad23ab0469b108224517516f}{set\+Selected\+Pen} and \hyperlink{class_q_c_p_abstract_plottable_ae8c816874089f7a44001e8618e81a9dc}{set\+Selected\+Brush}.
  394. The entire selection mechanism for plottables is handled automatically when \hyperlink{class_q_custom_plot_a5ee1e2f6ae27419deca53e75907c27e5}{Q\+Custom\+Plot\+::set\+Interactions} contains i\+Select\+Plottables. You only need to call this function when you wish to change the selection state manually.
  395. This function can change the selection state even when \hyperlink{class_q_c_p_abstract_plottable_a22c69299eb5569e0f6bf084877a37dc4}{set\+Selectable} was set to false.
  396. emits the \hyperlink{class_q_c_p_abstract_plottable_a3af66432b1dca93b28e00e78a8c7c1d9}{selection\+Changed} signal when {\itshape selected} is different from the previous selection state.
  397. \begin{DoxySeeAlso}{Ver también}
  398. \hyperlink{class_q_c_p_abstract_plottable_a22c69299eb5569e0f6bf084877a37dc4}{set\+Selectable}, \hyperlink{class_q_c_p_abstract_plottable_a38efe9641d972992a3d44204bc80ec1d}{select\+Test}
  399. \end{DoxySeeAlso}
  400. \hypertarget{class_q_c_p_abstract_plottable_ae8c816874089f7a44001e8618e81a9dc}{}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!set\+Selected\+Brush@{set\+Selected\+Brush}}
  401. \index{set\+Selected\+Brush@{set\+Selected\+Brush}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  402. \subsubsection[{set\+Selected\+Brush}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Abstract\+Plottable\+::set\+Selected\+Brush (
  403. \begin{DoxyParamCaption}
  404. \item[{const Q\+Brush \&}]{brush}
  405. \end{DoxyParamCaption}
  406. )}\label{class_q_c_p_abstract_plottable_ae8c816874089f7a44001e8618e81a9dc}
  407. When the plottable is selected, this brush is used to draw fills instead of the normal brush set via \hyperlink{class_q_c_p_abstract_plottable_a7a4b92144dca6453a1f0f210e27edc74}{set\+Brush}.
  408. \begin{DoxySeeAlso}{Ver también}
  409. \hyperlink{class_q_c_p_abstract_plottable_afbd5428c2952f59d952e11ab5cd79176}{set\+Selected}, \hyperlink{class_q_c_p_abstract_plottable_a22c69299eb5569e0f6bf084877a37dc4}{set\+Selectable}, \hyperlink{class_q_c_p_abstract_plottable_a6911603cad23ab0469b108224517516f}{set\+Selected\+Pen}, \hyperlink{class_q_c_p_abstract_plottable_a38efe9641d972992a3d44204bc80ec1d}{select\+Test}
  410. \end{DoxySeeAlso}
  411. \hypertarget{class_q_c_p_abstract_plottable_a6911603cad23ab0469b108224517516f}{}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!set\+Selected\+Pen@{set\+Selected\+Pen}}
  412. \index{set\+Selected\+Pen@{set\+Selected\+Pen}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  413. \subsubsection[{set\+Selected\+Pen}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Abstract\+Plottable\+::set\+Selected\+Pen (
  414. \begin{DoxyParamCaption}
  415. \item[{const Q\+Pen \&}]{pen}
  416. \end{DoxyParamCaption}
  417. )}\label{class_q_c_p_abstract_plottable_a6911603cad23ab0469b108224517516f}
  418. When the plottable is selected, this pen is used to draw basic lines instead of the normal pen set via \hyperlink{class_q_c_p_abstract_plottable_ab74b09ae4c0e7e13142fe4b5bf46cac7}{set\+Pen}.
  419. \begin{DoxySeeAlso}{Ver también}
  420. \hyperlink{class_q_c_p_abstract_plottable_afbd5428c2952f59d952e11ab5cd79176}{set\+Selected}, \hyperlink{class_q_c_p_abstract_plottable_a22c69299eb5569e0f6bf084877a37dc4}{set\+Selectable}, \hyperlink{class_q_c_p_abstract_plottable_ae8c816874089f7a44001e8618e81a9dc}{set\+Selected\+Brush}, \hyperlink{class_q_c_p_abstract_plottable_a38efe9641d972992a3d44204bc80ec1d}{select\+Test}
  421. \end{DoxySeeAlso}
  422. \hypertarget{class_q_c_p_abstract_plottable_a71626a07367e241ec62ad2c34baf21cb}{}\index{Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}!set\+Value\+Axis@{set\+Value\+Axis}}
  423. \index{set\+Value\+Axis@{set\+Value\+Axis}!Q\+C\+P\+Abstract\+Plottable@{Q\+C\+P\+Abstract\+Plottable}}
  424. \subsubsection[{set\+Value\+Axis}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Abstract\+Plottable\+::set\+Value\+Axis (
  425. \begin{DoxyParamCaption}
  426. \item[{{\bf Q\+C\+P\+Axis} $\ast$}]{axis}
  427. \end{DoxyParamCaption}
  428. )}\label{class_q_c_p_abstract_plottable_a71626a07367e241ec62ad2c34baf21cb}
  429. The value axis of a plottable can be set to any axis of a \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}, as long as it is orthogonal to the plottable\textquotesingle{}s key axis. This function performs no checks to make sure this is the case. The typical mathematical choice is to use the x-\/axis (Q\+Custom\+Plot\+::x\+Axis) as key axis and the y-\/axis (Q\+Custom\+Plot\+::y\+Axis) as value axis.
  430. Normally, the key and value axes are set in the constructor of the plottable (or \hyperlink{class_q_custom_plot_a6fb2873d35a8a8089842d81a70a54167}{Q\+Custom\+Plot\+::add\+Graph} when working with Q\+C\+P\+Graphs through the dedicated graph interface).
  431. \begin{DoxySeeAlso}{Ver también}
  432. \hyperlink{class_q_c_p_abstract_plottable_a8524fa2994c63c0913ebd9bb2ffa3920}{set\+Key\+Axis}
  433. \end{DoxySeeAlso}
  434. La documentación para esta clase fue generada a partir de los siguientes ficheros\+:\begin{DoxyCompactItemize}
  435. \item
  436. \hyperlink{qcustomplot_8h}{qcustomplot.\+h}\item
  437. \hyperlink{qcustomplot_8cpp}{qcustomplot.\+cpp}\end{DoxyCompactItemize}