暫無描述

class_q_c_p_line_ending.tex 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. \hypertarget{class_q_c_p_line_ending}{}\section{Referencia de la Clase Q\+C\+P\+Line\+Ending}
  2. \label{class_q_c_p_line_ending}\index{Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}}
  3. Handles the different ending decorations for line-\/like items.
  4. \subsection*{Tipos públicos}
  5. \begin{DoxyCompactItemize}
  6. \item
  7. enum \hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5}{Ending\+Style} \{ \\*
  8. \hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5aca12d500f50cd6871766801bac30fb03}{es\+None},
  9. \hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5a3d7dcea2f100671727c3417142154f8f}{es\+Flat\+Arrow},
  10. \hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5ab9964d0d03f812d1e79de15edbeb2cbf}{es\+Spike\+Arrow},
  11. \hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5a61f78ee8f375fb21cb9d250687bbcbd2}{es\+Line\+Arrow},
  12. \\*
  13. \hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5ae5a3414916817258bcc6dddd605e8f5c}{es\+Disc},
  14. \hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5ae1836502fa43d8990bb62b2d493a140a}{es\+Square},
  15. \hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5a378fe5a8b768411b0bc1765210fe7200}{es\+Diamond},
  16. \hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5a2cf543bbca332df26d89bf779f50469f}{es\+Bar},
  17. \\*
  18. \hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5a126c390f0c359fcd8df1fc5e38d26d5b}{es\+Half\+Bar},
  19. \hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5a2b2cc96e757ca9bcd91fb70221ed43ab}{es\+Skewed\+Bar}
  20. \}
  21. \end{DoxyCompactItemize}
  22. \subsection*{Métodos públicos}
  23. \begin{DoxyCompactItemize}
  24. \item
  25. \hyperlink{class_q_c_p_line_ending_af2eaf8123b000d97fbd11929c669f61b}{Q\+C\+P\+Line\+Ending} ()
  26. \item
  27. \hyperlink{class_q_c_p_line_ending_abb2abc7542f0c7a3c081d878248896a4}{Q\+C\+P\+Line\+Ending} (\hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5}{Ending\+Style} style, double width=8, double length=10, bool inverted=false)
  28. \item
  29. \hypertarget{class_q_c_p_line_ending_aea324dbfddbca9895ca8a3a968671299}{}\hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5}{Ending\+Style} {\bfseries style} () const \label{class_q_c_p_line_ending_aea324dbfddbca9895ca8a3a968671299}
  30. \item
  31. \hypertarget{class_q_c_p_line_ending_a028328ee3fb139a40acaf65fb56edf67}{}double {\bfseries width} () const \label{class_q_c_p_line_ending_a028328ee3fb139a40acaf65fb56edf67}
  32. \item
  33. \hypertarget{class_q_c_p_line_ending_a1744315d7b73f6e7ead3621e2cb18c28}{}double {\bfseries length} () const \label{class_q_c_p_line_ending_a1744315d7b73f6e7ead3621e2cb18c28}
  34. \item
  35. \hypertarget{class_q_c_p_line_ending_aa4ffbb182cbc89fc3d92eb348630502c}{}bool {\bfseries inverted} () const \label{class_q_c_p_line_ending_aa4ffbb182cbc89fc3d92eb348630502c}
  36. \item
  37. void \hyperlink{class_q_c_p_line_ending_a56953b9cb8ed1bed0f025c3935f16910}{set\+Style} (\hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5}{Ending\+Style} style)
  38. \item
  39. void \hyperlink{class_q_c_p_line_ending_a26dc020ea985a72cc25881ce2115e34e}{set\+Width} (double width)
  40. \item
  41. void \hyperlink{class_q_c_p_line_ending_ae36fa01763751cd64b7f56c3507e935a}{set\+Length} (double length)
  42. \item
  43. void \hyperlink{class_q_c_p_line_ending_a580e4e2360b35ebb8d68f3494aa2335d}{set\+Inverted} (bool inverted)
  44. \item
  45. \hypertarget{class_q_c_p_line_ending_a586b45cf738881a70119e353dc1ed59c}{}double {\bfseries bounding\+Distance} () const \label{class_q_c_p_line_ending_a586b45cf738881a70119e353dc1ed59c}
  46. \item
  47. double \hyperlink{class_q_c_p_line_ending_a6a528e6dc5aabe1077a573b045715f03}{real\+Length} () const
  48. \item
  49. \hypertarget{class_q_c_p_line_ending_ac4b2fa94bd27b2f008b5fc090fcd7c0b}{}void {\bfseries draw} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter, const Q\+Vector2\+D \&pos, const Q\+Vector2\+D \&dir) const \label{class_q_c_p_line_ending_ac4b2fa94bd27b2f008b5fc090fcd7c0b}
  50. \item
  51. \hypertarget{class_q_c_p_line_ending_a05c143b1f66cb68d746c309523c45e3e}{}void {\bfseries draw} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter, const Q\+Vector2\+D \&pos, double angle) const \label{class_q_c_p_line_ending_a05c143b1f66cb68d746c309523c45e3e}
  52. \end{DoxyCompactItemize}
  53. \subsection*{Atributos protegidos}
  54. \begin{DoxyCompactItemize}
  55. \item
  56. \hypertarget{class_q_c_p_line_ending_a4696fc9117b60f1ca7690fcd2ba56611}{}\hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5}{Ending\+Style} {\bfseries m\+Style}\label{class_q_c_p_line_ending_a4696fc9117b60f1ca7690fcd2ba56611}
  57. \item
  58. \hypertarget{class_q_c_p_line_ending_aca89d21341133c20dc6825c33a5eac48}{}double {\bfseries m\+Width}\label{class_q_c_p_line_ending_aca89d21341133c20dc6825c33a5eac48}
  59. \item
  60. \hypertarget{class_q_c_p_line_ending_ae8e1e2566b96c05736cd92662dba8af8}{}double {\bfseries m\+Length}\label{class_q_c_p_line_ending_ae8e1e2566b96c05736cd92662dba8af8}
  61. \item
  62. \hypertarget{class_q_c_p_line_ending_a91306fe771d54c955e0af21af14349d5}{}bool {\bfseries m\+Inverted}\label{class_q_c_p_line_ending_a91306fe771d54c955e0af21af14349d5}
  63. \end{DoxyCompactItemize}
  64. \subsection{Descripción detallada}
  65. Handles the different ending decorations for line-\/like items.
  66. For every ending a line-\/like item has, an instance of this class exists. For example, \hyperlink{class_q_c_p_item_line}{Q\+C\+P\+Item\+Line} has two endings which can be set with \hyperlink{class_q_c_p_item_line_aebf3d687114d584e0459db6759e2c3c3}{Q\+C\+P\+Item\+Line\+::set\+Head} and \hyperlink{class_q_c_p_item_line_ac264222c3297a7efe33df9345c811a5f}{Q\+C\+P\+Item\+Line\+::set\+Tail}.
  67. The styles themselves are defined via the enum \hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5}{Q\+C\+P\+Line\+Ending\+::\+Ending\+Style}. Most decorations can be modified regarding width and length, see \hyperlink{class_q_c_p_line_ending_a26dc020ea985a72cc25881ce2115e34e}{set\+Width} and \hyperlink{class_q_c_p_line_ending_ae36fa01763751cd64b7f56c3507e935a}{set\+Length}. The direction of the ending decoration (e.\+g. direction an arrow is pointing) is controlled by the line-\/like item. For example, when both endings of a \hyperlink{class_q_c_p_item_line}{Q\+C\+P\+Item\+Line} are set to be arrows, they will point to opposite directions, e.\+g. \char`\"{}outward\char`\"{}. This can be changed by \hyperlink{class_q_c_p_line_ending_a580e4e2360b35ebb8d68f3494aa2335d}{set\+Inverted}, which would make the respective arrow point inward.
  68. Note that due to the overloaded \hyperlink{class_q_c_p_line_ending}{Q\+C\+P\+Line\+Ending} constructor, you may directly specify a \hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5}{Q\+C\+P\+Line\+Ending\+::\+Ending\+Style} where actually a \hyperlink{class_q_c_p_line_ending}{Q\+C\+P\+Line\+Ending} is expected, e.\+g.
  69. \begin{DoxyCode}
  70. myItemLine->setHead(\hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5ab9964d0d03f812d1e79de15edbeb2cbf}{QCPLineEnding::esSpikeArrow})
  71. \end{DoxyCode}
  72. \subsection{Documentación de las enumeraciones miembro de la clase}
  73. \hypertarget{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5}{}\index{Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}!Ending\+Style@{Ending\+Style}}
  74. \index{Ending\+Style@{Ending\+Style}!Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}}
  75. \subsubsection[{Ending\+Style}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf Q\+C\+P\+Line\+Ending\+::\+Ending\+Style}}\label{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5}
  76. Defines the type of ending decoration for line-\/like items, e.\+g. an arrow.
  77. The width and length of these decorations can be controlled with the functions \hyperlink{class_q_c_p_line_ending_a26dc020ea985a72cc25881ce2115e34e}{set\+Width} and \hyperlink{class_q_c_p_line_ending_ae36fa01763751cd64b7f56c3507e935a}{set\+Length}. Some decorations like \hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5ae5a3414916817258bcc6dddd605e8f5c}{es\+Disc}, \hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5ae1836502fa43d8990bb62b2d493a140a}{es\+Square}, \hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5a378fe5a8b768411b0bc1765210fe7200}{es\+Diamond} and \hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5a2cf543bbca332df26d89bf779f50469f}{es\+Bar} only support a width, the length property is ignored.
  78. \begin{DoxySeeAlso}{Ver también}
  79. \hyperlink{class_q_c_p_item_line_aebf3d687114d584e0459db6759e2c3c3}{Q\+C\+P\+Item\+Line\+::set\+Head}, \hyperlink{class_q_c_p_item_line_ac264222c3297a7efe33df9345c811a5f}{Q\+C\+P\+Item\+Line\+::set\+Tail}, \hyperlink{class_q_c_p_item_curve_a08a30d9cdd63995deea3d9e20430676f}{Q\+C\+P\+Item\+Curve\+::set\+Head}, \hyperlink{class_q_c_p_item_curve_ac3488d8b1a6489c845dc5bff3ef71124}{Q\+C\+P\+Item\+Curve\+::set\+Tail}
  80. \end{DoxySeeAlso}
  81. \begin{Desc}
  82. \item[Valores de enumeraciones]\par
  83. \begin{description}
  84. \index{es\+None@{es\+None}!Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}}\index{Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}!es\+None@{es\+None}}\item[{\em
  85. \hypertarget{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5aca12d500f50cd6871766801bac30fb03}{}es\+None\label{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5aca12d500f50cd6871766801bac30fb03}
  86. }]No ending decoration. \index{es\+Flat\+Arrow@{es\+Flat\+Arrow}!Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}}\index{Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}!es\+Flat\+Arrow@{es\+Flat\+Arrow}}\item[{\em
  87. \hypertarget{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5a3d7dcea2f100671727c3417142154f8f}{}es\+Flat\+Arrow\label{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5a3d7dcea2f100671727c3417142154f8f}
  88. }]A filled arrow head with a straight/flat back (a triangle) \index{es\+Spike\+Arrow@{es\+Spike\+Arrow}!Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}}\index{Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}!es\+Spike\+Arrow@{es\+Spike\+Arrow}}\item[{\em
  89. \hypertarget{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5ab9964d0d03f812d1e79de15edbeb2cbf}{}es\+Spike\+Arrow\label{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5ab9964d0d03f812d1e79de15edbeb2cbf}
  90. }]A filled arrow head with an indented back. \index{es\+Line\+Arrow@{es\+Line\+Arrow}!Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}}\index{Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}!es\+Line\+Arrow@{es\+Line\+Arrow}}\item[{\em
  91. \hypertarget{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5a61f78ee8f375fb21cb9d250687bbcbd2}{}es\+Line\+Arrow\label{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5a61f78ee8f375fb21cb9d250687bbcbd2}
  92. }]A non-\/filled arrow head with open back. \index{es\+Disc@{es\+Disc}!Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}}\index{Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}!es\+Disc@{es\+Disc}}\item[{\em
  93. \hypertarget{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5ae5a3414916817258bcc6dddd605e8f5c}{}es\+Disc\label{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5ae5a3414916817258bcc6dddd605e8f5c}
  94. }]A filled circle. \index{es\+Square@{es\+Square}!Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}}\index{Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}!es\+Square@{es\+Square}}\item[{\em
  95. \hypertarget{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5ae1836502fa43d8990bb62b2d493a140a}{}es\+Square\label{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5ae1836502fa43d8990bb62b2d493a140a}
  96. }]A filled square. \index{es\+Diamond@{es\+Diamond}!Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}}\index{Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}!es\+Diamond@{es\+Diamond}}\item[{\em
  97. \hypertarget{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5a378fe5a8b768411b0bc1765210fe7200}{}es\+Diamond\label{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5a378fe5a8b768411b0bc1765210fe7200}
  98. }]A filled diamond (45° rotated square) \index{es\+Bar@{es\+Bar}!Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}}\index{Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}!es\+Bar@{es\+Bar}}\item[{\em
  99. \hypertarget{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5a2cf543bbca332df26d89bf779f50469f}{}es\+Bar\label{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5a2cf543bbca332df26d89bf779f50469f}
  100. }]A bar perpendicular to the line. \index{es\+Half\+Bar@{es\+Half\+Bar}!Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}}\index{Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}!es\+Half\+Bar@{es\+Half\+Bar}}\item[{\em
  101. \hypertarget{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5a126c390f0c359fcd8df1fc5e38d26d5b}{}es\+Half\+Bar\label{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5a126c390f0c359fcd8df1fc5e38d26d5b}
  102. }]A bar perpendicular to the line sticking out to one side. \index{es\+Skewed\+Bar@{es\+Skewed\+Bar}!Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}}\index{Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}!es\+Skewed\+Bar@{es\+Skewed\+Bar}}\item[{\em
  103. \hypertarget{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5a2b2cc96e757ca9bcd91fb70221ed43ab}{}es\+Skewed\+Bar\label{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5a2b2cc96e757ca9bcd91fb70221ed43ab}
  104. }]A bar that is skewed (skew controllable via \hyperlink{class_q_c_p_line_ending_ae36fa01763751cd64b7f56c3507e935a}{set\+Length}) \end{description}
  105. \end{Desc}
  106. \subsection{Documentación del constructor y destructor}
  107. \hypertarget{class_q_c_p_line_ending_af2eaf8123b000d97fbd11929c669f61b}{}\index{Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}!Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}}
  108. \index{Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}!Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}}
  109. \subsubsection[{Q\+C\+P\+Line\+Ending}]{\setlength{\rightskip}{0pt plus 5cm}Q\+C\+P\+Line\+Ending\+::\+Q\+C\+P\+Line\+Ending (
  110. \begin{DoxyParamCaption}
  111. {}
  112. \end{DoxyParamCaption}
  113. )}\label{class_q_c_p_line_ending_af2eaf8123b000d97fbd11929c669f61b}
  114. Creates a \hyperlink{class_q_c_p_line_ending}{Q\+C\+P\+Line\+Ending} instance with default values (style \hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5aca12d500f50cd6871766801bac30fb03}{es\+None}). \hypertarget{class_q_c_p_line_ending_abb2abc7542f0c7a3c081d878248896a4}{}\index{Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}!Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}}
  115. \index{Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}!Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}}
  116. \subsubsection[{Q\+C\+P\+Line\+Ending}]{\setlength{\rightskip}{0pt plus 5cm}Q\+C\+P\+Line\+Ending\+::\+Q\+C\+P\+Line\+Ending (
  117. \begin{DoxyParamCaption}
  118. \item[{{\bf Q\+C\+P\+Line\+Ending\+::\+Ending\+Style}}]{style, }
  119. \item[{double}]{width = {\ttfamily 8}, }
  120. \item[{double}]{length = {\ttfamily 10}, }
  121. \item[{bool}]{inverted = {\ttfamily false}}
  122. \end{DoxyParamCaption}
  123. )}\label{class_q_c_p_line_ending_abb2abc7542f0c7a3c081d878248896a4}
  124. Creates a \hyperlink{class_q_c_p_line_ending}{Q\+C\+P\+Line\+Ending} instance with the specified values.
  125. \subsection{Documentación de las funciones miembro}
  126. \hypertarget{class_q_c_p_line_ending_a6a528e6dc5aabe1077a573b045715f03}{}\index{Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}!real\+Length@{real\+Length}}
  127. \index{real\+Length@{real\+Length}!Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}}
  128. \subsubsection[{real\+Length}]{\setlength{\rightskip}{0pt plus 5cm}double Q\+C\+P\+Line\+Ending\+::real\+Length (
  129. \begin{DoxyParamCaption}
  130. {}
  131. \end{DoxyParamCaption}
  132. ) const}\label{class_q_c_p_line_ending_a6a528e6dc5aabe1077a573b045715f03}
  133. Starting from the origin of this line ending (which is style specific), returns the length covered by the line ending symbol, in backward direction.
  134. For example, the \hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5ab9964d0d03f812d1e79de15edbeb2cbf}{es\+Spike\+Arrow} has a shorter real length than a \hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5a3d7dcea2f100671727c3417142154f8f}{es\+Flat\+Arrow}, even if both have the same \hyperlink{class_q_c_p_line_ending_ae36fa01763751cd64b7f56c3507e935a}{set\+Length} value, because the spike arrow has an inward curved back, which reduces the length along its center axis (the drawing origin for arrows is at the tip).
  135. This function is used for precise, style specific placement of line endings, for example in Q\+C\+P\+Axes. \hypertarget{class_q_c_p_line_ending_a580e4e2360b35ebb8d68f3494aa2335d}{}\index{Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}!set\+Inverted@{set\+Inverted}}
  136. \index{set\+Inverted@{set\+Inverted}!Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}}
  137. \subsubsection[{set\+Inverted}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Line\+Ending\+::set\+Inverted (
  138. \begin{DoxyParamCaption}
  139. \item[{bool}]{inverted}
  140. \end{DoxyParamCaption}
  141. )}\label{class_q_c_p_line_ending_a580e4e2360b35ebb8d68f3494aa2335d}
  142. Sets whether the ending decoration shall be inverted. For example, an arrow decoration will point inward when {\itshape inverted} is set to true.
  143. Note that also the {\itshape width} direction is inverted. For symmetrical ending styles like arrows or discs, this doesn\textquotesingle{}t make a difference. However, asymmetric styles like \hyperlink{class_q_c_p_line_ending_a5ef16e6876b4b74959c7261d8d4c2cd5a126c390f0c359fcd8df1fc5e38d26d5b}{es\+Half\+Bar} are affected by it, which can be used to control to which side the half bar points to. \hypertarget{class_q_c_p_line_ending_ae36fa01763751cd64b7f56c3507e935a}{}\index{Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}!set\+Length@{set\+Length}}
  144. \index{set\+Length@{set\+Length}!Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}}
  145. \subsubsection[{set\+Length}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Line\+Ending\+::set\+Length (
  146. \begin{DoxyParamCaption}
  147. \item[{double}]{length}
  148. \end{DoxyParamCaption}
  149. )}\label{class_q_c_p_line_ending_ae36fa01763751cd64b7f56c3507e935a}
  150. Sets the length of the ending decoration, if the style supports it. On arrows, for example, the length defines the size in pointing direction.
  151. \begin{DoxySeeAlso}{Ver también}
  152. \hyperlink{class_q_c_p_line_ending_a26dc020ea985a72cc25881ce2115e34e}{set\+Width}
  153. \end{DoxySeeAlso}
  154. \hypertarget{class_q_c_p_line_ending_a56953b9cb8ed1bed0f025c3935f16910}{}\index{Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}!set\+Style@{set\+Style}}
  155. \index{set\+Style@{set\+Style}!Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}}
  156. \subsubsection[{set\+Style}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Line\+Ending\+::set\+Style (
  157. \begin{DoxyParamCaption}
  158. \item[{{\bf Q\+C\+P\+Line\+Ending\+::\+Ending\+Style}}]{style}
  159. \end{DoxyParamCaption}
  160. )}\label{class_q_c_p_line_ending_a56953b9cb8ed1bed0f025c3935f16910}
  161. Sets the style of the ending decoration. \hypertarget{class_q_c_p_line_ending_a26dc020ea985a72cc25881ce2115e34e}{}\index{Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}!set\+Width@{set\+Width}}
  162. \index{set\+Width@{set\+Width}!Q\+C\+P\+Line\+Ending@{Q\+C\+P\+Line\+Ending}}
  163. \subsubsection[{set\+Width}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Line\+Ending\+::set\+Width (
  164. \begin{DoxyParamCaption}
  165. \item[{double}]{width}
  166. \end{DoxyParamCaption}
  167. )}\label{class_q_c_p_line_ending_a26dc020ea985a72cc25881ce2115e34e}
  168. Sets the width of the ending decoration, if the style supports it. On arrows, for example, the width defines the size perpendicular to the arrow\textquotesingle{}s pointing direction.
  169. \begin{DoxySeeAlso}{Ver también}
  170. \hyperlink{class_q_c_p_line_ending_ae36fa01763751cd64b7f56c3507e935a}{set\+Length}
  171. \end{DoxySeeAlso}
  172. La documentación para esta clase fue generada a partir de los siguientes ficheros\+:\begin{DoxyCompactItemize}
  173. \item
  174. \hyperlink{qcustomplot_8h}{qcustomplot.\+h}\item
  175. \hyperlink{qcustomplot_8cpp}{qcustomplot.\+cpp}\end{DoxyCompactItemize}