(empty message)
[qanava.git] / doc / reference / html / classqan_1_1can_1_1_item.html
blob492c9d78428a8f8ce88f5d835e3ddb2fab5682ff
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3 <title>Qanava: qan::can::Item Class Reference</title>
4 <link href="doxygen.css" rel="stylesheet" type="text/css">
5 </head><body>
6 <!-- Generated by Doxygen 1.4.3 -->
7 <div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
8 <div class="nav">
9 <a class="el" href="namespaceqan.html">qan</a>::<a class="el" href="namespaceqan_1_1can.html">can</a>::<a class="el" href="classqan_1_1can_1_1_item.html">Item</a></div>
10 <h1>qan::can::Item Class Reference</h1><!-- doxytag: class=<qan::can::Item> -->Base classe for all "virtual" canvas graphic elements.
11 <a href="#_details">More...</a>
12 <p>
13 <code>#include &lt;canItem.h&gt;</code>
14 <p>
15 Inherited by <a class="el" href="classqan_1_1can_1_1_item_impl.html">qan::can::ItemImpl&lt; CanvasItem &gt;</a>, <a class="el" href="classqan_1_1can_1_1_item_impl.html">qan::can::ItemImpl&lt; QCanvasLine &gt;</a>, <a class="el" href="classqan_1_1can_1_1_item_impl.html">qan::can::ItemImpl&lt; QCanvasPolygon &gt;</a>, <a class="el" href="classqan_1_1can_1_1_item_impl.html">qan::can::ItemImpl&lt; QCanvasRectangle &gt;</a>, and <a class="el" href="classqan_1_1can_1_1_item_impl.html">qan::can::ItemImpl&lt; QCanvasText &gt;</a>.
16 <p>
17 Inheritance diagram for qan::can::Item:<p><center><img src="classqan_1_1can_1_1_item__inherit__graph.png" border="0" usemap="#qan_1_1can_1_1_item__inherit__map" alt="Inheritance graph"></center>
18 <map name="qan_1_1can_1_1_item__inherit__map">
19 <area href="classqan_1_1can_1_1_item_impl.html" shape="rect" coords="167,208,397,234" alt="">
20 <area href="classqan_1_1can_1_1_item_impl.html" shape="rect" coords="605,144,842,170" alt="">
21 <area href="classqan_1_1can_1_1_item_impl.html" shape="rect" coords="605,60,842,86" alt="">
22 <area href="classqan_1_1can_1_1_item_impl.html" shape="rect" coords="586,385,861,412" alt="">
23 <area href="classqan_1_1can_1_1_item_impl.html" shape="rect" coords="593,302,854,329" alt="">
24 </map>
25 <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classqan_1_1can_1_1_item-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
26 <tr><td></td></tr>
27 <tr><td colspan="2"><br><h2>Sub Items Management</h2></td></tr>
28 <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::vector&lt; <a class="el" href="classqan_1_1can_1_1_item.html">Item</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1can_1_1_item.html#z21_0">SubItems</a></td></tr>
30 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">STL container for this item sub items. <a href="#z21_0"></a><br></td></tr>
31 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1can_1_1_item.html#z21_1">addSubItem</a> (<a class="el" href="classqan_1_1can_1_1_item.html">Item</a> &amp;<a class="el" href="classqan_1_1can_1_1_item.html">Item</a>)</td></tr>
33 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a sub item to this item. <a href="#z21_1"></a><br></td></tr>
34 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classqan_1_1can_1_1_item.html#z21_0">SubItems</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1can_1_1_item.html#z21_2">getSubItems</a> ()</td></tr>
36 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get this item sub items. <a href="#z21_2"></a><br></td></tr>
37 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classqan_1_1can_1_1_item.html#z21_0">SubItems</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1can_1_1_item.html#z21_3">_subItems</a></td></tr>
39 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This item sub items. <a href="#z21_3"></a><br></td></tr>
40 <tr><td colspan="2"><br><h2>Item Constructor</h2></td></tr>
41 <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1can_1_1_item.html#z18_0">Item</a> (<a class="el" href="classqan_1_1can_1_1_item.html#w7">ID</a> id, <a class="el" href="classqan_1_1can_1_1_canvas.html">Canvas</a> &amp;canvas)</td></tr>
43 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1can_1_1_item.html#z18_1">~Item</a> ()</td></tr>
45 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classqan_1_1can_1_1_item.html">Item</a> virtual destructor. <a href="#z18_1"></a><br></td></tr>
46 <tr><td colspan="2"><br><h2>Appearence Management</h2></td></tr>
47 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classqan_1_1can_1_1_item.html#w7">ID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1can_1_1_item.html#z19_0">getId</a> () const </td></tr>
49 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the item conrete ID (type). <a href="#z19_0"></a><br></td></tr>
50 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1can_1_1_item.html#z19_1">hideItem</a> ()=0</td></tr>
52 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Hide an item. <a href="#z19_1"></a><br></td></tr>
53 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1can_1_1_item.html#z19_2">showItem</a> ()=0</td></tr>
55 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Show an item that has previously been hidden. <a href="#z19_2"></a><br></td></tr>
56 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1can_1_1_item.html#z19_3">moveItem</a> (double x, double y)=0</td></tr>
58 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Move this item (but not the hierarcy of sub items). <a href="#z19_3"></a><br></td></tr>
59 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1can_1_1_item.html#z19_4">moveItemBy</a> (double dx, double dy)=0</td></tr>
61 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Move this item and its hierarchy of sub item by a position delta. <a href="#z19_4"></a><br></td></tr>
62 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QRect&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1can_1_1_item.html#z19_5">getBoundingRect</a> () const =0</td></tr>
64 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get this item hierarchy bounding rectangle. <a href="#z19_5"></a><br></td></tr>
65 <tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1can_1_1_item.html#z19_6">getX</a> ()</td></tr>
67 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get this item x position. <a href="#z19_6"></a><br></td></tr>
68 <tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1can_1_1_item.html#z19_7">getY</a> ()</td></tr>
70 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get this item x position. <a href="#z19_7"></a><br></td></tr>
71 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1can_1_1_item.html#z19_8">updateStyle</a> (const <a class="el" href="classqan_1_1can_1_1_adv_style.html">AdvStyle</a> &amp;style)=0</td></tr>
73 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Update the node according to the given style. <a href="#z19_8"></a><br></td></tr>
74 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classqan_1_1can_1_1_item.html#w7">ID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1can_1_1_item.html#z19_9">_id</a></td></tr>
76 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classqan_1_1can_1_1_item.html">Item</a> concrete ID (type). <a href="#z19_9"></a><br></td></tr>
77 <tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1can_1_1_item.html#z19_10">_x</a></td></tr>
79 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classqan_1_1can_1_1_item.html">Item</a> x position. <a href="#z19_10"></a><br></td></tr>
80 <tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1can_1_1_item.html#z19_11">_y</a></td></tr>
82 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classqan_1_1can_1_1_item.html">Item</a> y position. <a href="#z19_11"></a><br></td></tr>
83 <tr><td colspan="2"><br><h2>State Management</h2></td></tr>
84 <tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1can_1_1_item.html#z20_0">isRoot</a> () const </td></tr>
86 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return true if this item is a root ont. <a href="#z20_0"></a><br></td></tr>
87 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1can_1_1_item.html#z20_1">setRoot</a> (bool root)</td></tr>
89 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the item root state. <a href="#z20_1"></a><br></td></tr>
90 <tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1can_1_1_item.html#z20_2">_root</a></td></tr>
92 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Root item state. <a href="#z20_2"></a><br></td></tr>
93 <tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
94 <tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1can_1_1_item.html#w7">ID</a> { <br>
95 &nbsp;&nbsp;<a class="el" href="classqan_1_1can_1_1_item.html#w7w0">NONE</a> = 1,
96 <a class="el" href="classqan_1_1can_1_1_item.html#w7w1">ARTICLE</a> = 2,
97 <a class="el" href="classqan_1_1can_1_1_item.html#w7w2">CATEGORY</a> = 4,
98 <a class="el" href="classqan_1_1can_1_1_item.html#w7w3">ARROW</a> = 8,
99 <br>
100 &nbsp;&nbsp;<a class="el" href="classqan_1_1can_1_1_item.html#w7w4">RECTANGLE</a> = 16,
101 <a class="el" href="classqan_1_1can_1_1_item.html#w7w5">TEXT</a> = 32,
102 <a class="el" href="classqan_1_1can_1_1_item.html#w7w6">RECTANGULAR</a> = 64
103 <br>
104 }</td></tr>
106 </table>
107 <hr><a name="_details"></a><h2>Detailed Description</h2>
108 Base classe for all "virtual" canvas graphic elements.
110 "Virtual" because, while beeing concrete, an item must be connected to a concrete QT canvas item object to be drawn.
112 <hr><h2>Member Typedef Documentation</h2>
113 <a class="anchor" name="z21_0"></a><!-- doxytag: member=<qan::can::Item::SubItems> ref=<z21_0> args=<> --><p>
114 <table class="mdTable" cellpadding="2" cellspacing="0">
115 <tr>
116 <td class="mdRow">
117 <table cellpadding="0" cellspacing="0" border="0">
118 <tr>
119 <td class="md" nowrap valign="top">typedef std::vector&lt; <a class="el" href="classqan_1_1can_1_1_item.html">Item</a>* &gt; <a class="el" href="classqan_1_1can_1_1_item.html#z21_0">qan::can::Item::SubItems</a> </td>
120 </tr>
121 </table>
122 </td>
123 </tr>
124 </table>
125 <table cellspacing="5" cellpadding="0" border="0">
126 <tr>
127 <td>
128 &nbsp;
129 </td>
130 <td>
133 STL container for this item sub items.
135 </td>
136 </tr>
137 </table>
138 <hr><h2>Member Enumeration Documentation</h2>
139 <a class="anchor" name="w7"></a><!-- doxytag: member=<qan::can::Item::ID> ref=<w7> args=<> --><p>
140 <table class="mdTable" cellpadding="2" cellspacing="0">
141 <tr>
142 <td class="mdRow">
143 <table cellpadding="0" cellspacing="0" border="0">
144 <tr>
145 <td class="md" nowrap valign="top">enum <a class="el" href="classqan_1_1can_1_1_item.html#w7">qan::can::Item::ID</a> </td>
146 </tr>
147 </table>
148 </td>
149 </tr>
150 </table>
151 <table cellspacing="5" cellpadding="0" border="0">
152 <tr>
153 <td>
154 &nbsp;
155 </td>
156 <td>
159 <dl compact><dt><b>Enumerator: </b></dt><dd>
160 <table border="0" cellspacing="2" cellpadding="0">
161 <tr><td valign="top"><em><a class="anchor" name="w7w0"></a><!-- doxytag: member=<NONE> ref=<w7w0> args=<> -->NONE</em>&nbsp;</td><td>
162 </td></tr>
163 <tr><td valign="top"><em><a class="anchor" name="w7w1"></a><!-- doxytag: member=<ARTICLE> ref=<w7w1> args=<> -->ARTICLE</em>&nbsp;</td><td>
164 </td></tr>
165 <tr><td valign="top"><em><a class="anchor" name="w7w2"></a><!-- doxytag: member=<CATEGORY> ref=<w7w2> args=<> -->CATEGORY</em>&nbsp;</td><td>
166 </td></tr>
167 <tr><td valign="top"><em><a class="anchor" name="w7w3"></a><!-- doxytag: member=<ARROW> ref=<w7w3> args=<> -->ARROW</em>&nbsp;</td><td>
168 </td></tr>
169 <tr><td valign="top"><em><a class="anchor" name="w7w4"></a><!-- doxytag: member=<RECTANGLE> ref=<w7w4> args=<> -->RECTANGLE</em>&nbsp;</td><td>
170 </td></tr>
171 <tr><td valign="top"><em><a class="anchor" name="w7w5"></a><!-- doxytag: member=<TEXT> ref=<w7w5> args=<> -->TEXT</em>&nbsp;</td><td>
172 </td></tr>
173 <tr><td valign="top"><em><a class="anchor" name="w7w6"></a><!-- doxytag: member=<RECTANGULAR> ref=<w7w6> args=<> -->RECTANGULAR</em>&nbsp;</td><td>
174 </td></tr>
175 </table>
176 </dl>
177 </td>
178 </tr>
179 </table>
180 <hr><h2>Constructor &amp; Destructor Documentation</h2>
181 <a class="anchor" name="z18_0"></a><!-- doxytag: member=<qan::can::Item::Item> ref=<z18_0> args=<(ID id, Canvas &amp;canvas)> --><p>
182 <table class="mdTable" cellpadding="2" cellspacing="0">
183 <tr>
184 <td class="mdRow">
185 <table cellpadding="0" cellspacing="0" border="0">
186 <tr>
187 <td class="md" nowrap valign="top">qan::can::Item::Item </td>
188 <td class="md" valign="top">(&nbsp;</td>
189 <td class="md" nowrap valign="top"><a class="el" href="classqan_1_1can_1_1_item.html#w7">ID</a>&nbsp;</td>
190 <td class="mdname" nowrap> <em>id</em>, </td>
191 </tr>
192 <tr>
193 <td class="md" nowrap align="right"></td>
194 <td class="md"></td>
195 <td class="md" nowrap><a class="el" href="classqan_1_1can_1_1_canvas.html">Canvas</a> &amp;&nbsp;</td>
196 <td class="mdname" nowrap> <em>canvas</em></td>
197 </tr>
198 <tr>
199 <td class="md"></td>
200 <td class="md">)&nbsp;</td>
201 <td class="md" colspan="2"></td>
202 </tr>
203 </table>
204 </td>
205 </tr>
206 </table>
207 <table cellspacing="5" cellpadding="0" border="0">
208 <tr>
209 <td>
210 &nbsp;
211 </td>
212 <td>
215 </td>
216 </tr>
217 </table>
218 <a class="anchor" name="z18_1"></a><!-- doxytag: member=<qan::can::Item::~Item> ref=<z18_1> args=<()> --><p>
219 <table class="mdTable" cellpadding="2" cellspacing="0">
220 <tr>
221 <td class="mdRow">
222 <table cellpadding="0" cellspacing="0" border="0">
223 <tr>
224 <td class="md" nowrap valign="top">virtual qan::can::Item::~Item </td>
225 <td class="md" valign="top">(&nbsp;</td>
226 <td class="mdname1" valign="top" nowrap> </td>
227 <td class="md" valign="top">&nbsp;)&nbsp;</td>
228 <td class="md" nowrap><code> [inline, virtual]</code></td>
229 </tr>
230 </table>
231 </td>
232 </tr>
233 </table>
234 <table cellspacing="5" cellpadding="0" border="0">
235 <tr>
236 <td>
237 &nbsp;
238 </td>
239 <td>
242 <a class="el" href="classqan_1_1can_1_1_item.html">Item</a> virtual destructor.
244 </td>
245 </tr>
246 </table>
247 <hr><h2>Member Function Documentation</h2>
248 <a class="anchor" name="z21_1"></a><!-- doxytag: member=<qan::can::Item::addSubItem> ref=<z21_1> args=<(Item &amp;Item)> --><p>
249 <table class="mdTable" cellpadding="2" cellspacing="0">
250 <tr>
251 <td class="mdRow">
252 <table cellpadding="0" cellspacing="0" border="0">
253 <tr>
254 <td class="md" nowrap valign="top">void qan::can::Item::addSubItem </td>
255 <td class="md" valign="top">(&nbsp;</td>
256 <td class="md" nowrap valign="top"><a class="el" href="classqan_1_1can_1_1_item.html">Item</a> &amp;&nbsp;</td>
257 <td class="mdname1" valign="top" nowrap> <em>Item</em> </td>
258 <td class="md" valign="top">&nbsp;)&nbsp;</td>
259 <td class="md" nowrap></td>
260 </tr>
261 </table>
262 </td>
263 </tr>
264 </table>
265 <table cellspacing="5" cellpadding="0" border="0">
266 <tr>
267 <td>
268 &nbsp;
269 </td>
270 <td>
273 Add a sub item to this item.
275 </td>
276 </tr>
277 </table>
278 <a class="anchor" name="z19_5"></a><!-- doxytag: member=<qan::can::Item::getBoundingRect> ref=<z19_5> args=<() const =0> --><p>
279 <table class="mdTable" cellpadding="2" cellspacing="0">
280 <tr>
281 <td class="mdRow">
282 <table cellpadding="0" cellspacing="0" border="0">
283 <tr>
284 <td class="md" nowrap valign="top">virtual QRect qan::can::Item::getBoundingRect </td>
285 <td class="md" valign="top">(&nbsp;</td>
286 <td class="mdname1" valign="top" nowrap> </td>
287 <td class="md" valign="top">&nbsp;)&nbsp;</td>
288 <td class="md" nowrap> const<code> [pure virtual]</code></td>
289 </tr>
290 </table>
291 </td>
292 </tr>
293 </table>
294 <table cellspacing="5" cellpadding="0" border="0">
295 <tr>
296 <td>
297 &nbsp;
298 </td>
299 <td>
302 Get this item hierarchy bounding rectangle.
306 Implemented in <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_5">qan::can::ItemImpl&lt; CanvasItem &gt;</a>, <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_5">qan::can::ItemImpl&lt; QCanvasLine &gt;</a>, <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_5">qan::can::ItemImpl&lt; QCanvasText &gt;</a>, <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_5">qan::can::ItemImpl&lt; QCanvasRectangle &gt;</a>, and <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_5">qan::can::ItemImpl&lt; QCanvasPolygon &gt;</a>. </td>
307 </tr>
308 </table>
309 <a class="anchor" name="z19_0"></a><!-- doxytag: member=<qan::can::Item::getId> ref=<z19_0> args=<() const > --><p>
310 <table class="mdTable" cellpadding="2" cellspacing="0">
311 <tr>
312 <td class="mdRow">
313 <table cellpadding="0" cellspacing="0" border="0">
314 <tr>
315 <td class="md" nowrap valign="top"><a class="el" href="classqan_1_1can_1_1_item.html#w7">ID</a> qan::can::Item::getId </td>
316 <td class="md" valign="top">(&nbsp;</td>
317 <td class="mdname1" valign="top" nowrap> </td>
318 <td class="md" valign="top">&nbsp;)&nbsp;</td>
319 <td class="md" nowrap> const<code> [inline]</code></td>
320 </tr>
321 </table>
322 </td>
323 </tr>
324 </table>
325 <table cellspacing="5" cellpadding="0" border="0">
326 <tr>
327 <td>
328 &nbsp;
329 </td>
330 <td>
333 Get the item conrete ID (type).
335 </td>
336 </tr>
337 </table>
338 <a class="anchor" name="z21_2"></a><!-- doxytag: member=<qan::can::Item::getSubItems> ref=<z21_2> args=<()> --><p>
339 <table class="mdTable" cellpadding="2" cellspacing="0">
340 <tr>
341 <td class="mdRow">
342 <table cellpadding="0" cellspacing="0" border="0">
343 <tr>
344 <td class="md" nowrap valign="top"><a class="el" href="classqan_1_1can_1_1_item.html#z21_0">SubItems</a>&amp; qan::can::Item::getSubItems </td>
345 <td class="md" valign="top">(&nbsp;</td>
346 <td class="mdname1" valign="top" nowrap> </td>
347 <td class="md" valign="top">&nbsp;)&nbsp;</td>
348 <td class="md" nowrap><code> [inline]</code></td>
349 </tr>
350 </table>
351 </td>
352 </tr>
353 </table>
354 <table cellspacing="5" cellpadding="0" border="0">
355 <tr>
356 <td>
357 &nbsp;
358 </td>
359 <td>
362 Get this item sub items.
364 </td>
365 </tr>
366 </table>
367 <a class="anchor" name="z19_6"></a><!-- doxytag: member=<qan::can::Item::getX> ref=<z19_6> args=<()> --><p>
368 <table class="mdTable" cellpadding="2" cellspacing="0">
369 <tr>
370 <td class="mdRow">
371 <table cellpadding="0" cellspacing="0" border="0">
372 <tr>
373 <td class="md" nowrap valign="top">double qan::can::Item::getX </td>
374 <td class="md" valign="top">(&nbsp;</td>
375 <td class="mdname1" valign="top" nowrap> </td>
376 <td class="md" valign="top">&nbsp;)&nbsp;</td>
377 <td class="md" nowrap><code> [inline]</code></td>
378 </tr>
379 </table>
380 </td>
381 </tr>
382 </table>
383 <table cellspacing="5" cellpadding="0" border="0">
384 <tr>
385 <td>
386 &nbsp;
387 </td>
388 <td>
391 Get this item x position.
393 </td>
394 </tr>
395 </table>
396 <a class="anchor" name="z19_7"></a><!-- doxytag: member=<qan::can::Item::getY> ref=<z19_7> args=<()> --><p>
397 <table class="mdTable" cellpadding="2" cellspacing="0">
398 <tr>
399 <td class="mdRow">
400 <table cellpadding="0" cellspacing="0" border="0">
401 <tr>
402 <td class="md" nowrap valign="top">double qan::can::Item::getY </td>
403 <td class="md" valign="top">(&nbsp;</td>
404 <td class="mdname1" valign="top" nowrap> </td>
405 <td class="md" valign="top">&nbsp;)&nbsp;</td>
406 <td class="md" nowrap><code> [inline]</code></td>
407 </tr>
408 </table>
409 </td>
410 </tr>
411 </table>
412 <table cellspacing="5" cellpadding="0" border="0">
413 <tr>
414 <td>
415 &nbsp;
416 </td>
417 <td>
420 Get this item x position.
422 </td>
423 </tr>
424 </table>
425 <a class="anchor" name="z19_1"></a><!-- doxytag: member=<qan::can::Item::hideItem> ref=<z19_1> args=<()=0> --><p>
426 <table class="mdTable" cellpadding="2" cellspacing="0">
427 <tr>
428 <td class="mdRow">
429 <table cellpadding="0" cellspacing="0" border="0">
430 <tr>
431 <td class="md" nowrap valign="top">virtual void qan::can::Item::hideItem </td>
432 <td class="md" valign="top">(&nbsp;</td>
433 <td class="mdname1" valign="top" nowrap> </td>
434 <td class="md" valign="top">&nbsp;)&nbsp;</td>
435 <td class="md" nowrap><code> [pure virtual]</code></td>
436 </tr>
437 </table>
438 </td>
439 </tr>
440 </table>
441 <table cellspacing="5" cellpadding="0" border="0">
442 <tr>
443 <td>
444 &nbsp;
445 </td>
446 <td>
449 Hide an item.
453 Implemented in <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_1">qan::can::ItemImpl&lt; CanvasItem &gt;</a>, <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_1">qan::can::ItemImpl&lt; QCanvasLine &gt;</a>, <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_1">qan::can::ItemImpl&lt; QCanvasText &gt;</a>, <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_1">qan::can::ItemImpl&lt; QCanvasRectangle &gt;</a>, and <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_1">qan::can::ItemImpl&lt; QCanvasPolygon &gt;</a>. </td>
454 </tr>
455 </table>
456 <a class="anchor" name="z20_0"></a><!-- doxytag: member=<qan::can::Item::isRoot> ref=<z20_0> args=<() const > --><p>
457 <table class="mdTable" cellpadding="2" cellspacing="0">
458 <tr>
459 <td class="mdRow">
460 <table cellpadding="0" cellspacing="0" border="0">
461 <tr>
462 <td class="md" nowrap valign="top">bool qan::can::Item::isRoot </td>
463 <td class="md" valign="top">(&nbsp;</td>
464 <td class="mdname1" valign="top" nowrap> </td>
465 <td class="md" valign="top">&nbsp;)&nbsp;</td>
466 <td class="md" nowrap> const<code> [inline]</code></td>
467 </tr>
468 </table>
469 </td>
470 </tr>
471 </table>
472 <table cellspacing="5" cellpadding="0" border="0">
473 <tr>
474 <td>
475 &nbsp;
476 </td>
477 <td>
480 Return true if this item is a root ont.
482 </td>
483 </tr>
484 </table>
485 <a class="anchor" name="z19_3"></a><!-- doxytag: member=<qan::can::Item::moveItem> ref=<z19_3> args=<(double x, double y)=0> --><p>
486 <table class="mdTable" cellpadding="2" cellspacing="0">
487 <tr>
488 <td class="mdRow">
489 <table cellpadding="0" cellspacing="0" border="0">
490 <tr>
491 <td class="md" nowrap valign="top">virtual void qan::can::Item::moveItem </td>
492 <td class="md" valign="top">(&nbsp;</td>
493 <td class="md" nowrap valign="top">double&nbsp;</td>
494 <td class="mdname" nowrap> <em>x</em>, </td>
495 </tr>
496 <tr>
497 <td class="md" nowrap align="right"></td>
498 <td class="md"></td>
499 <td class="md" nowrap>double&nbsp;</td>
500 <td class="mdname" nowrap> <em>y</em></td>
501 </tr>
502 <tr>
503 <td class="md"></td>
504 <td class="md">)&nbsp;</td>
505 <td class="md" colspan="2"><code> [pure virtual]</code></td>
506 </tr>
507 </table>
508 </td>
509 </tr>
510 </table>
511 <table cellspacing="5" cellpadding="0" border="0">
512 <tr>
513 <td>
514 &nbsp;
515 </td>
516 <td>
519 Move this item (but not the hierarcy of sub items).
523 Implemented in <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_3">qan::can::ItemImpl&lt; CanvasItem &gt;</a>, <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_3">qan::can::ItemImpl&lt; QCanvasLine &gt;</a>, <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_3">qan::can::ItemImpl&lt; QCanvasText &gt;</a>, <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_3">qan::can::ItemImpl&lt; QCanvasRectangle &gt;</a>, and <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_3">qan::can::ItemImpl&lt; QCanvasPolygon &gt;</a>. </td>
524 </tr>
525 </table>
526 <a class="anchor" name="z19_4"></a><!-- doxytag: member=<qan::can::Item::moveItemBy> ref=<z19_4> args=<(double dx, double dy)=0> --><p>
527 <table class="mdTable" cellpadding="2" cellspacing="0">
528 <tr>
529 <td class="mdRow">
530 <table cellpadding="0" cellspacing="0" border="0">
531 <tr>
532 <td class="md" nowrap valign="top">virtual void qan::can::Item::moveItemBy </td>
533 <td class="md" valign="top">(&nbsp;</td>
534 <td class="md" nowrap valign="top">double&nbsp;</td>
535 <td class="mdname" nowrap> <em>dx</em>, </td>
536 </tr>
537 <tr>
538 <td class="md" nowrap align="right"></td>
539 <td class="md"></td>
540 <td class="md" nowrap>double&nbsp;</td>
541 <td class="mdname" nowrap> <em>dy</em></td>
542 </tr>
543 <tr>
544 <td class="md"></td>
545 <td class="md">)&nbsp;</td>
546 <td class="md" colspan="2"><code> [pure virtual]</code></td>
547 </tr>
548 </table>
549 </td>
550 </tr>
551 </table>
552 <table cellspacing="5" cellpadding="0" border="0">
553 <tr>
554 <td>
555 &nbsp;
556 </td>
557 <td>
560 Move this item and its hierarchy of sub item by a position delta.
564 Implemented in <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_4">qan::can::ItemImpl&lt; CanvasItem &gt;</a>, <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_4">qan::can::ItemImpl&lt; QCanvasLine &gt;</a>, <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_4">qan::can::ItemImpl&lt; QCanvasText &gt;</a>, <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_4">qan::can::ItemImpl&lt; QCanvasRectangle &gt;</a>, and <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_4">qan::can::ItemImpl&lt; QCanvasPolygon &gt;</a>. </td>
565 </tr>
566 </table>
567 <a class="anchor" name="z20_1"></a><!-- doxytag: member=<qan::can::Item::setRoot> ref=<z20_1> args=<(bool root)> --><p>
568 <table class="mdTable" cellpadding="2" cellspacing="0">
569 <tr>
570 <td class="mdRow">
571 <table cellpadding="0" cellspacing="0" border="0">
572 <tr>
573 <td class="md" nowrap valign="top">void qan::can::Item::setRoot </td>
574 <td class="md" valign="top">(&nbsp;</td>
575 <td class="md" nowrap valign="top">bool&nbsp;</td>
576 <td class="mdname1" valign="top" nowrap> <em>root</em> </td>
577 <td class="md" valign="top">&nbsp;)&nbsp;</td>
578 <td class="md" nowrap><code> [inline]</code></td>
579 </tr>
580 </table>
581 </td>
582 </tr>
583 </table>
584 <table cellspacing="5" cellpadding="0" border="0">
585 <tr>
586 <td>
587 &nbsp;
588 </td>
589 <td>
592 Set the item root state.
594 </td>
595 </tr>
596 </table>
597 <a class="anchor" name="z19_2"></a><!-- doxytag: member=<qan::can::Item::showItem> ref=<z19_2> args=<()=0> --><p>
598 <table class="mdTable" cellpadding="2" cellspacing="0">
599 <tr>
600 <td class="mdRow">
601 <table cellpadding="0" cellspacing="0" border="0">
602 <tr>
603 <td class="md" nowrap valign="top">virtual void qan::can::Item::showItem </td>
604 <td class="md" valign="top">(&nbsp;</td>
605 <td class="mdname1" valign="top" nowrap> </td>
606 <td class="md" valign="top">&nbsp;)&nbsp;</td>
607 <td class="md" nowrap><code> [pure virtual]</code></td>
608 </tr>
609 </table>
610 </td>
611 </tr>
612 </table>
613 <table cellspacing="5" cellpadding="0" border="0">
614 <tr>
615 <td>
616 &nbsp;
617 </td>
618 <td>
621 Show an item that has previously been hidden.
625 Implemented in <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_2">qan::can::ItemImpl&lt; CanvasItem &gt;</a>, <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_2">qan::can::ItemImpl&lt; QCanvasLine &gt;</a>, <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_2">qan::can::ItemImpl&lt; QCanvasText &gt;</a>, <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_2">qan::can::ItemImpl&lt; QCanvasRectangle &gt;</a>, and <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_2">qan::can::ItemImpl&lt; QCanvasPolygon &gt;</a>. </td>
626 </tr>
627 </table>
628 <a class="anchor" name="z19_8"></a><!-- doxytag: member=<qan::can::Item::updateStyle> ref=<z19_8> args=<(const AdvStyle &amp;style)=0> --><p>
629 <table class="mdTable" cellpadding="2" cellspacing="0">
630 <tr>
631 <td class="mdRow">
632 <table cellpadding="0" cellspacing="0" border="0">
633 <tr>
634 <td class="md" nowrap valign="top">virtual void qan::can::Item::updateStyle </td>
635 <td class="md" valign="top">(&nbsp;</td>
636 <td class="md" nowrap valign="top">const <a class="el" href="classqan_1_1can_1_1_adv_style.html">AdvStyle</a> &amp;&nbsp;</td>
637 <td class="mdname1" valign="top" nowrap> <em>style</em> </td>
638 <td class="md" valign="top">&nbsp;)&nbsp;</td>
639 <td class="md" nowrap><code> [pure virtual]</code></td>
640 </tr>
641 </table>
642 </td>
643 </tr>
644 </table>
645 <table cellspacing="5" cellpadding="0" border="0">
646 <tr>
647 <td>
648 &nbsp;
649 </td>
650 <td>
653 Update the node according to the given style.
657 Implemented in <a class="el" href="classqan_1_1can_1_1_rectangle_item.html#z23_1">qan::can::RectangleItem</a>, <a class="el" href="classqan_1_1can_1_1_rectangular_item.html#z26_4">qan::can::RectangularItem</a>, <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_8">qan::can::ItemImpl&lt; CanvasItem &gt;</a>, <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_8">qan::can::ItemImpl&lt; QCanvasLine &gt;</a>, <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_8">qan::can::ItemImpl&lt; QCanvasText &gt;</a>, <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_8">qan::can::ItemImpl&lt; QCanvasRectangle &gt;</a>, and <a class="el" href="classqan_1_1can_1_1_item_impl.html#z29_8">qan::can::ItemImpl&lt; QCanvasPolygon &gt;</a>. </td>
658 </tr>
659 </table>
660 <hr><h2>Member Data Documentation</h2>
661 <a class="anchor" name="z19_9"></a><!-- doxytag: member=<qan::can::Item::_id> ref=<z19_9> args=<> --><p>
662 <table class="mdTable" cellpadding="2" cellspacing="0">
663 <tr>
664 <td class="mdRow">
665 <table cellpadding="0" cellspacing="0" border="0">
666 <tr>
667 <td class="md" nowrap valign="top"><a class="el" href="classqan_1_1can_1_1_item.html#w7">ID</a> <a class="el" href="classqan_1_1can_1_1_item.html#z19_9">qan::can::Item::_id</a><code> [protected]</code> </td>
668 </tr>
669 </table>
670 </td>
671 </tr>
672 </table>
673 <table cellspacing="5" cellpadding="0" border="0">
674 <tr>
675 <td>
676 &nbsp;
677 </td>
678 <td>
681 <a class="el" href="classqan_1_1can_1_1_item.html">Item</a> concrete ID (type).
683 </td>
684 </tr>
685 </table>
686 <a class="anchor" name="z20_2"></a><!-- doxytag: member=<qan::can::Item::_root> ref=<z20_2> args=<> --><p>
687 <table class="mdTable" cellpadding="2" cellspacing="0">
688 <tr>
689 <td class="mdRow">
690 <table cellpadding="0" cellspacing="0" border="0">
691 <tr>
692 <td class="md" nowrap valign="top">bool <a class="el" href="classqan_1_1can_1_1_item.html#z20_2">qan::can::Item::_root</a><code> [protected]</code> </td>
693 </tr>
694 </table>
695 </td>
696 </tr>
697 </table>
698 <table cellspacing="5" cellpadding="0" border="0">
699 <tr>
700 <td>
701 &nbsp;
702 </td>
703 <td>
706 Root item state.
708 </td>
709 </tr>
710 </table>
711 <a class="anchor" name="z21_3"></a><!-- doxytag: member=<qan::can::Item::_subItems> ref=<z21_3> args=<> --><p>
712 <table class="mdTable" cellpadding="2" cellspacing="0">
713 <tr>
714 <td class="mdRow">
715 <table cellpadding="0" cellspacing="0" border="0">
716 <tr>
717 <td class="md" nowrap valign="top"><a class="el" href="classqan_1_1can_1_1_item.html#z21_0">SubItems</a> <a class="el" href="classqan_1_1can_1_1_item.html#z21_3">qan::can::Item::_subItems</a><code> [protected]</code> </td>
718 </tr>
719 </table>
720 </td>
721 </tr>
722 </table>
723 <table cellspacing="5" cellpadding="0" border="0">
724 <tr>
725 <td>
726 &nbsp;
727 </td>
728 <td>
731 This item sub items.
733 </td>
734 </tr>
735 </table>
736 <a class="anchor" name="z19_10"></a><!-- doxytag: member=<qan::can::Item::_x> ref=<z19_10> args=<> --><p>
737 <table class="mdTable" cellpadding="2" cellspacing="0">
738 <tr>
739 <td class="mdRow">
740 <table cellpadding="0" cellspacing="0" border="0">
741 <tr>
742 <td class="md" nowrap valign="top">double <a class="el" href="classqan_1_1can_1_1_item.html#z19_10">qan::can::Item::_x</a><code> [protected]</code> </td>
743 </tr>
744 </table>
745 </td>
746 </tr>
747 </table>
748 <table cellspacing="5" cellpadding="0" border="0">
749 <tr>
750 <td>
751 &nbsp;
752 </td>
753 <td>
756 <a class="el" href="classqan_1_1can_1_1_item.html">Item</a> x position.
758 </td>
759 </tr>
760 </table>
761 <a class="anchor" name="z19_11"></a><!-- doxytag: member=<qan::can::Item::_y> ref=<z19_11> args=<> --><p>
762 <table class="mdTable" cellpadding="2" cellspacing="0">
763 <tr>
764 <td class="mdRow">
765 <table cellpadding="0" cellspacing="0" border="0">
766 <tr>
767 <td class="md" nowrap valign="top">double <a class="el" href="classqan_1_1can_1_1_item.html#z19_11">qan::can::Item::_y</a><code> [protected]</code> </td>
768 </tr>
769 </table>
770 </td>
771 </tr>
772 </table>
773 <table cellspacing="5" cellpadding="0" border="0">
774 <tr>
775 <td>
776 &nbsp;
777 </td>
778 <td>
781 <a class="el" href="classqan_1_1can_1_1_item.html">Item</a> y position.
783 </td>
784 </tr>
785 </table>
786 <hr>The documentation for this class was generated from the following files:<ul>
787 <li>C:/projects/qanava/src/can/<a class="el" href="can_item_8h.html">canItem.h</a><li>C:/projects/qanava/src/can/<a class="el" href="can_item_8cpp.html">canItem.cpp</a></ul>
789 <hr style="width: 100%; height: 2px;">
790 <table width="95%" height="48" border="0"
791 cellpadding="0" cellspacing="0" style="text-align: left; width: 95%; height: 31px;">
792 <tbody>
793 <tr>
794 <td height="48" style="font-family: Helvetica,Arial,sans-serif;">
795 <dl>
796 <dt><a href="http://www.libqanava.org"><font size="2">www.libqanava.org</font></a><font size="2">
797 Qanava - QCanvas Avanc&eacute;</font></dt>
798 </dl>
799 </td>
800 <td style="vertical-align: middle; text-align: right;"><span
801 style="font-family: Helvetica,Arial,sans-serif;"><font size="2">Generated by</font></span>
803 href="http://www.doxygen.org"><img alt="Doxygen logo"
804 src="../images/doxygen.png"
805 style="border: 0px solid ; width: 100px; height: 45px;" align="middle"></a></td>
806 </tr>
807 </tbody>
808 </table>