QwtPlotDict.3 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. .TH "QwtPlotDict" 3 "Mon Dec 28 2020" "Version 6.1.6" "Qwt User's Guide" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. QwtPlotDict \- A dictionary for plot items\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <qwt_plot_dict\&.h>\fP
  11. .PP
  12. Inherited by \fBQwtPlot\fP\&.
  13. .SS "Public Member Functions"
  14. .in +1c
  15. .ti -1c
  16. .RI "\fBQwtPlotDict\fP ()"
  17. .br
  18. .ti -1c
  19. .RI "virtual \fB~QwtPlotDict\fP ()"
  20. .br
  21. .ti -1c
  22. .RI "void \fBsetAutoDelete\fP (bool)"
  23. .br
  24. .ti -1c
  25. .RI "bool \fBautoDelete\fP () const"
  26. .br
  27. .ti -1c
  28. .RI "const QwtPlotItemList & \fBitemList\fP () const"
  29. .br
  30. .RI "A QwtPlotItemList of all attached plot items\&. "
  31. .ti -1c
  32. .RI "QwtPlotItemList \fBitemList\fP (int rtti) const"
  33. .br
  34. .ti -1c
  35. .RI "void \fBdetachItems\fP (int rtti=\fBQwtPlotItem::Rtti_PlotItem\fP, bool \fBautoDelete\fP=true)"
  36. .br
  37. .in -1c
  38. .SS "Protected Member Functions"
  39. .in +1c
  40. .ti -1c
  41. .RI "void \fBinsertItem\fP (\fBQwtPlotItem\fP *)"
  42. .br
  43. .ti -1c
  44. .RI "void \fBremoveItem\fP (\fBQwtPlotItem\fP *)"
  45. .br
  46. .in -1c
  47. .SH "Detailed Description"
  48. .PP
  49. A dictionary for plot items\&.
  50. \fBQwtPlotDict\fP organizes plot items in increasing z-order\&. If \fBautoDelete()\fP is enabled, all attached items will be deleted in the destructor of the dictionary\&. \fBQwtPlotDict\fP can be used to get access to all \fBQwtPlotItem\fP items - or all items of a specific type - that are currently on the plot\&.
  51. .PP
  52. \fBSee also\fP
  53. .RS 4
  54. \fBQwtPlotItem::attach()\fP, \fBQwtPlotItem::detach()\fP, \fBQwtPlotItem::z()\fP
  55. .RE
  56. .PP
  57. .SH "Constructor & Destructor Documentation"
  58. .PP
  59. .SS "QwtPlotDict::QwtPlotDict ()\fC [explicit]\fP"
  60. Constructor
  61. .PP
  62. Auto deletion is enabled\&.
  63. .PP
  64. \fBSee also\fP
  65. .RS 4
  66. \fBsetAutoDelete()\fP, \fBQwtPlotItem::attach()\fP
  67. .RE
  68. .PP
  69. .SS "QwtPlotDict::~QwtPlotDict ()\fC [virtual]\fP"
  70. Destructor
  71. .PP
  72. If \fBautoDelete()\fP is on, all attached items will be deleted
  73. .PP
  74. \fBSee also\fP
  75. .RS 4
  76. \fBsetAutoDelete()\fP, \fBautoDelete()\fP, \fBQwtPlotItem::attach()\fP
  77. .RE
  78. .PP
  79. .SH "Member Function Documentation"
  80. .PP
  81. .SS "bool QwtPlotDict::autoDelete () const"
  82. .PP
  83. \fBReturns\fP
  84. .RS 4
  85. true if auto deletion is enabled
  86. .RE
  87. .PP
  88. \fBSee also\fP
  89. .RS 4
  90. \fBsetAutoDelete()\fP, \fBinsertItem()\fP
  91. .RE
  92. .PP
  93. .SS "void QwtPlotDict::detachItems (int rtti = \fC\fBQwtPlotItem::Rtti_PlotItem\fP\fP, bool autoDelete = \fCtrue\fP)"
  94. Detach items from the dictionary
  95. .PP
  96. \fBParameters\fP
  97. .RS 4
  98. \fIrtti\fP In case of \fBQwtPlotItem::Rtti_PlotItem\fP detach all items otherwise only those items of the type rtti\&.
  99. .br
  100. \fIautoDelete\fP If true, delete all detached items
  101. .RE
  102. .PP
  103. .SS "void QwtPlotDict::insertItem (\fBQwtPlotItem\fP * item)\fC [protected]\fP"
  104. Insert a plot item
  105. .PP
  106. \fBParameters\fP
  107. .RS 4
  108. \fIitem\fP PlotItem
  109. .RE
  110. .PP
  111. \fBSee also\fP
  112. .RS 4
  113. \fBremoveItem()\fP
  114. .RE
  115. .PP
  116. .SS "const QwtPlotItemList & QwtPlotDict::itemList () const"
  117. .PP
  118. A QwtPlotItemList of all attached plot items\&. Use caution when iterating these lists, as removing/detaching an item will invalidate the iterator\&. Instead you can place pointers to objects to be removed in a removal list, and traverse that list later\&.
  119. .PP
  120. \fBReturns\fP
  121. .RS 4
  122. List of all attached plot items\&.
  123. .RE
  124. .PP
  125. .SS "QwtPlotItemList QwtPlotDict::itemList (int rtti) const"
  126. .PP
  127. \fBReturns\fP
  128. .RS 4
  129. List of all attached plot items of a specific type\&.
  130. .RE
  131. .PP
  132. \fBParameters\fP
  133. .RS 4
  134. \fIrtti\fP See \fBQwtPlotItem::RttiValues\fP
  135. .RE
  136. .PP
  137. \fBSee also\fP
  138. .RS 4
  139. \fBQwtPlotItem::rtti()\fP
  140. .RE
  141. .PP
  142. .SS "void QwtPlotDict::removeItem (\fBQwtPlotItem\fP * item)\fC [protected]\fP"
  143. Remove a plot item
  144. .PP
  145. \fBParameters\fP
  146. .RS 4
  147. \fIitem\fP PlotItem
  148. .RE
  149. .PP
  150. \fBSee also\fP
  151. .RS 4
  152. \fBinsertItem()\fP
  153. .RE
  154. .PP
  155. .SS "void QwtPlotDict::setAutoDelete (bool autoDelete)"
  156. En/Disable Auto deletion
  157. .PP
  158. If Auto deletion is on all attached plot items will be deleted in the destructor of \fBQwtPlotDict\fP\&. The default value is on\&.
  159. .PP
  160. \fBSee also\fP
  161. .RS 4
  162. \fBautoDelete()\fP, \fBinsertItem()\fP
  163. .RE
  164. .PP
  165. .SH "Author"
  166. .PP
  167. Generated automatically by Doxygen for Qwt User's Guide from the source code\&.