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::ItemImpl
< CanvasItem
> Class Template Reference
</title>
4 <link href=
"doxygen.css" rel=
"stylesheet" type=
"text/css">
6 <!-- Generated by Doxygen 1.4.3 -->
7 <div class=
"qindex"><a class=
"qindex" href=
"index.html">Main
Page
</a> |
<a class=
"qindex" href=
"namespaces.html">Namespace List
</a> |
<a class=
"qindex" href=
"hierarchy.html">Class
Hierarchy
</a> |
<a class=
"qindex" href=
"annotated.html">Class
List
</a> |
<a class=
"qindex" href=
"dirs.html">Directories
</a> |
<a class=
"qindex" href=
"files.html">File
List
</a> |
<a class=
"qindex" href=
"functions.html">Class
Members
</a> |
<a class=
"qindex" href=
"globals.html">File
Members
</a> |
<a class=
"qindex" href=
"pages.html">Related
Pages
</a></div>
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_impl.html">ItemImpl
</a></div>
10 <h1>qan::can::ItemImpl
< CanvasItem
> Class Template Reference
</h1><!-- doxytag: class=<qan::can::ItemImpl> --><!-- doxytag: inherits=<qan::can::Item> -->Model a concrete element on a canvas, implemented as QCanvasItem subclasse.
11 <a href=
"#_details">More...
</a>
13 <code>#include
<canItemImpl.h
></code>
15 Inherits
<a class=
"el" href=
"classqan_1_1can_1_1_item.html">qan::can::Item
</a>.
17 Inheritance diagram for qan::can::ItemImpl
< CanvasItem
>:
<p><center><img src=
"classqan_1_1can_1_1_item_impl__inherit__graph.png" border=
"0" usemap=
"#qan_1_1can_1_1_item_impl_3_01_canvas_item_01_4__inherit__map" alt=
"Inheritance graph"></center>
18 <map name=
"qan_1_1can_1_1_item_impl_3_01_canvas_item_01_4__inherit__map">
19 <area href=
"classqan_1_1can_1_1_item_impl.html" shape=
"rect" coords=
"605,10,842,37" alt=
"">
20 <area href=
"classqan_1_1can_1_1_item_impl.html" shape=
"rect" coords=
"605,74,842,101" alt=
"">
21 <area href=
"classqan_1_1can_1_1_item_impl.html" shape=
"rect" coords=
"586,138,861,165" alt=
"">
22 <area href=
"classqan_1_1can_1_1_item_impl.html" shape=
"rect" coords=
"593,202,854,229" alt=
"">
23 <area href=
"classqan_1_1can_1_1_item.html" shape=
"rect" coords=
"9,106,115,133" alt=
"">
25 <center><font size=
"2">[
<a href=
"graph_legend.html">legend
</a>]
</font></center>Collaboration diagram for qan::can::ItemImpl
< CanvasItem
>:
<p><center><img src=
"classqan_1_1can_1_1_item_impl__coll__graph.png" border=
"0" usemap=
"#qan_1_1can_1_1_item_impl_3_01_canvas_item_01_4__coll__map" alt=
"Collaboration graph"></center>
26 <map name=
"qan_1_1can_1_1_item_impl_3_01_canvas_item_01_4__coll__map">
27 <area href=
"classqan_1_1can_1_1_item.html" shape=
"rect" coords=
"38,189,145,216" alt=
"">
28 <area href=
"classqan_1_1can_1_1_canvas.html" shape=
"rect" coords=
"190,189,315,216" alt=
"">
29 <area href=
"classqan_1_1can_1_1_grid.html" shape=
"rect" coords=
"299,280,406,306" alt=
"">
30 <area href=
"classqan_1_1can_1_1_image_manager.html" shape=
"rect" coords=
"31,98,202,125" alt=
"">
31 <area href=
"classqan_1_1can_1_1_adv_style_1_1_manager.html" shape=
"rect" coords=
"217,8,411,34" alt=
"">
32 <area href=
"classqan_1_1can_1_1_graph_view.html" shape=
"rect" coords=
"366,98,513,125" alt=
"">
33 <area href=
"classqan_1_1la_1_1_grid.html" shape=
"rect" coords=
"435,189,531,216" alt=
"">
34 <area href=
"classqan_1_1la_1_1_grid_layout.html" shape=
"rect" coords=
"462,280,598,306" alt=
"">
36 <center><font size=
"2">[
<a href=
"graph_legend.html">legend
</a>]
</font></center><a href=
"classqan_1_1can_1_1_item_impl-members.html">List of all members.
</a><table border=
"0" cellpadding=
"0" cellspacing=
"0">
38 <tr><td colspan=
"2"><br><h2>Item Constructor/Destructor
</h2></td></tr>
39 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top"> </td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html#z28_0">ItemImpl
</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> &canvas)
</td></tr>
41 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight"><a class=
"el" href=
"classqan_1_1can_1_1_item.html">Item
</a> constructor.
<a href=
"#z28_0"></a><br></td></tr>
42 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">virtual
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html#z28_1">~ItemImpl
</a> ()
</td></tr>
44 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight"><a class=
"el" href=
"classqan_1_1can_1_1_item.html">Item
</a> virtual destructor.
<a href=
"#z28_1"></a><br></td></tr>
45 <tr><td colspan=
"2"><br><h2>Sub items management
</h2></td></tr>
46 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">void
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html#z29_0">refreshCanvasSize
</a> ()
</td></tr>
48 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Resize the canvas of this item to ensure that the canvas is large enought to contain the item bounding rectangle.
<a href=
"#z29_0"></a><br></td></tr>
49 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">virtual void
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html#z29_1">hideItem
</a> ()
</td></tr>
51 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Hide an item.
<a href=
"#z29_1"></a><br></td></tr>
52 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">virtual void
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html#z29_2">showItem
</a> ()
</td></tr>
54 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Show an item that has previously been hidden.
<a href=
"#z29_2"></a><br></td></tr>
55 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">virtual void
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html#z29_3">moveItem
</a> (double x, double y)
</td></tr>
57 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Move this item (but not the hierarcy of sub items).
<a href=
"#z29_3"></a><br></td></tr>
58 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">virtual void
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html#z29_4">moveItemBy
</a> (double dx, double dy)
</td></tr>
60 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Move this item and its hierarchy of sub item by a position delta.
<a href=
"#z29_4"></a><br></td></tr>
61 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">QRect
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html#z29_5">getBoundingRect
</a> () const
</td></tr>
63 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Get this item hierarchy bounding rectangle.
<a href=
"#z29_5"></a><br></td></tr>
64 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">virtual void
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html#z29_6">move
</a> (double x, double y)
</td></tr>
66 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Move this item but not its sub items.
<a href=
"#z29_6"></a><br></td></tr>
67 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">virtual void
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html#z29_7">moveBy
</a> (double dx, double dy)
</td></tr>
69 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Move this item of delta[x/y] and its sub items.
<a href=
"#z29_7"></a><br></td></tr>
70 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">virtual void
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html#z29_8">updateStyle
</a> (const
<a class=
"el" href=
"classqan_1_1can_1_1_adv_style.html">AdvStyle
</a> &)
</td></tr>
72 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Update the node according to the given style.
<a href=
"#z29_8"></a><br></td></tr>
73 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top"><a class=
"el" href=
"classqan_1_1can_1_1_canvas.html">Canvas
</a> & </td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html#z29_9">getCanvas
</a> ()
</td></tr>
75 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Get the item canvas.
<a href=
"#z29_9"></a><br></td></tr>
76 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top"><a class=
"el" href=
"classqan_1_1can_1_1_canvas.html">Canvas
</a> & </td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html#z29_10">_canvas
</a></td></tr>
78 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight"><a class=
"el" href=
"classqan_1_1can_1_1_item.html">Item
</a> canvas.
<a href=
"#z29_10"></a><br></td></tr>
80 <hr><a name=
"_details"></a><h2>Detailed Description
</h2>
81 <h3>template
<class CanvasItem
><br>
82 class qan::can::ItemImpl
< CanvasItem
></h3>
84 Model a concrete element on a canvas, implemented as QCanvasItem subclasse.
86 The concrete QCanvasItem class type is given as this class parameter (either
<a class=
"el" href=
"class_q_canvas_polygon.html">QCanvasPolygon
</a> or
<a class=
"el" href=
"class_q_canvas_rectangle.html">QCanvasRectangle
</a> for example). This class connect the abstract Qanava
<a class=
"el" href=
"classqan_1_1can_1_1_item.html">can::Item
</a> classe to a concrete QCanvasItem graphical object.
<p>
87 Coherency between the QT interface (methods from QCanvasItem) and the
<a class=
"el" href=
"classqan_1_1can_1_1_item.html">can::Item
</a> one is maintained by
<a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html">ItemImpl
</a>, and the two interfaces can be used simultaneously to move the item or get its position.
<p>
88 <dl compact
><dt><b>See also:
</b></dt><dd><a class=
"el" href=
"classqan_1_1can_1_1_item.html">can::Item
</a></dd></dl>
91 <hr><h2>Constructor
& Destructor Documentation
</h2>
92 <a class=
"anchor" name=
"z28_0"></a><!-- doxytag: member=<qan::can::ItemImpl::ItemImpl> ref=<z28_0> args=<(ID id, Canvas &canvas)> --><p>
93 <table class=
"mdTable" cellpadding=
"2" cellspacing=
"0">
96 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
98 <td class=
"mdPrefix" colspan=
"4">
99 template
<class CanvasItem
> </td>
102 <td class=
"md" nowrap
valign=
"top"><a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html">qan::can::ItemImpl
</a>< CanvasItem
>::
<a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html">ItemImpl
</a> </td>
103 <td class=
"md" valign=
"top">(
</td>
104 <td class=
"md" nowrap
valign=
"top"><a class=
"el" href=
"classqan_1_1can_1_1_item.html#w7">ID
</a> </td>
105 <td class=
"mdname" nowrap
> <em>id
</em>,
</td>
108 <td class=
"md" nowrap
align=
"right"></td>
110 <td class=
"md" nowrap
><a class=
"el" href=
"classqan_1_1can_1_1_canvas.html">Canvas
</a> & </td>
111 <td class=
"mdname" nowrap
> <em>canvas
</em></td>
115 <td class=
"md">)
</td>
116 <td class=
"md" colspan=
"2"></td>
122 <table cellspacing=
"5" cellpadding=
"0" border=
"0">
130 <a class=
"el" href=
"classqan_1_1can_1_1_item.html">Item
</a> constructor.
135 <a class=
"anchor" name=
"z28_1"></a><!-- doxytag: member=<qan::can::ItemImpl::~ItemImpl> ref=<z28_1> args=<()> --><p>
136 <table class=
"mdTable" cellpadding=
"2" cellspacing=
"0">
139 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
141 <td class=
"mdPrefix" colspan=
"4">
142 template
<class CanvasItem
> </td>
145 <td class=
"md" nowrap
valign=
"top">virtual
<a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html">qan::can::ItemImpl
</a>< CanvasItem
>::~
<a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html">ItemImpl
</a> </td>
146 <td class=
"md" valign=
"top">(
</td>
147 <td class=
"mdname1" valign=
"top" nowrap
> </td>
148 <td class=
"md" valign=
"top"> )
</td>
149 <td class=
"md" nowrap
><code> [inline, virtual]
</code></td>
155 <table cellspacing=
"5" cellpadding=
"0" border=
"0">
163 <a class=
"el" href=
"classqan_1_1can_1_1_item.html">Item
</a> virtual destructor.
168 <hr><h2>Member Function Documentation
</h2>
169 <a class=
"anchor" name=
"z29_5"></a><!-- doxytag: member=<qan::can::ItemImpl::getBoundingRect> ref=<z29_5> args=<() const > --><p>
170 <table class=
"mdTable" cellpadding=
"2" cellspacing=
"0">
173 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
175 <td class=
"mdPrefix" colspan=
"4">
176 template
<class CanvasItem
> </td>
179 <td class=
"md" nowrap
valign=
"top">QRect
<a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html">qan::can::ItemImpl
</a>< CanvasItem
>::getBoundingRect
</td>
180 <td class=
"md" valign=
"top">(
</td>
181 <td class=
"mdname1" valign=
"top" nowrap
> </td>
182 <td class=
"md" valign=
"top"> )
</td>
183 <td class=
"md" nowrap
> const
<code> [virtual]
</code></td>
189 <table cellspacing=
"5" cellpadding=
"0" border=
"0">
197 Get this item hierarchy bounding rectangle.
201 Implements
<a class=
"el" href=
"classqan_1_1can_1_1_item.html#z19_5">qan::can::Item
</a>.
</td>
204 <a class=
"anchor" name=
"z29_9"></a><!-- doxytag: member=<qan::can::ItemImpl::getCanvas> ref=<z29_9> args=<()> --><p>
205 <table class=
"mdTable" cellpadding=
"2" cellspacing=
"0">
208 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
210 <td class=
"mdPrefix" colspan=
"4">
211 template
<class CanvasItem
> </td>
214 <td class=
"md" nowrap
valign=
"top"><a class=
"el" href=
"classqan_1_1can_1_1_canvas.html">Canvas
</a>& <a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html">qan::can::ItemImpl
</a>< CanvasItem
>::getCanvas
</td>
215 <td class=
"md" valign=
"top">(
</td>
216 <td class=
"mdname1" valign=
"top" nowrap
> </td>
217 <td class=
"md" valign=
"top"> )
</td>
218 <td class=
"md" nowrap
><code> [inline, protected]
</code></td>
224 <table cellspacing=
"5" cellpadding=
"0" border=
"0">
237 <a class=
"anchor" name=
"z29_1"></a><!-- doxytag: member=<qan::can::ItemImpl::hideItem> ref=<z29_1> args=<()> --><p>
238 <table class=
"mdTable" cellpadding=
"2" cellspacing=
"0">
241 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
243 <td class=
"mdPrefix" colspan=
"4">
244 template
<class CanvasItem
> </td>
247 <td class=
"md" nowrap
valign=
"top">void
<a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html">qan::can::ItemImpl
</a>< CanvasItem
>::hideItem
</td>
248 <td class=
"md" valign=
"top">(
</td>
249 <td class=
"mdname1" valign=
"top" nowrap
> </td>
250 <td class=
"md" valign=
"top"> )
</td>
251 <td class=
"md" nowrap
><code> [virtual]
</code></td>
257 <table cellspacing=
"5" cellpadding=
"0" border=
"0">
269 Implements
<a class=
"el" href=
"classqan_1_1can_1_1_item.html#z19_1">qan::can::Item
</a>.
</td>
272 <a class=
"anchor" name=
"z29_6"></a><!-- doxytag: member=<qan::can::ItemImpl::move> ref=<z29_6> args=<(double x, double y)> --><p>
273 <table class=
"mdTable" cellpadding=
"2" cellspacing=
"0">
276 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
278 <td class=
"mdPrefix" colspan=
"4">
279 template
<class CanvasItem
> </td>
282 <td class=
"md" nowrap
valign=
"top">void
<a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html">qan::can::ItemImpl
</a>< CanvasItem
>::move
</td>
283 <td class=
"md" valign=
"top">(
</td>
284 <td class=
"md" nowrap
valign=
"top">double
</td>
285 <td class=
"mdname" nowrap
> <em>x
</em>,
</td>
288 <td class=
"md" nowrap
align=
"right"></td>
290 <td class=
"md" nowrap
>double
</td>
291 <td class=
"mdname" nowrap
> <em>y
</em></td>
295 <td class=
"md">)
</td>
296 <td class=
"md" colspan=
"2"><code> [virtual]
</code></td>
302 <table cellspacing=
"5" cellpadding=
"0" border=
"0">
310 Move this item but not its sub items.
312 Sub items are not moved with this method. Use the
<a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html#z29_7">moveBy()
</a> method if you want to move the whole item hierarchy.
314 Reimplemented in
<a class=
"el" href=
"classqan_1_1can_1_1_rectangular_item.html#z26_2">qan::can::RectangularItem
</a>.
</td>
317 <a class=
"anchor" name=
"z29_7"></a><!-- doxytag: member=<qan::can::ItemImpl::moveBy> ref=<z29_7> args=<(double dx, double dy)> --><p>
318 <table class=
"mdTable" cellpadding=
"2" cellspacing=
"0">
321 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
323 <td class=
"mdPrefix" colspan=
"4">
324 template
<class CanvasItem
> </td>
327 <td class=
"md" nowrap
valign=
"top">void
<a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html">qan::can::ItemImpl
</a>< CanvasItem
>::moveBy
</td>
328 <td class=
"md" valign=
"top">(
</td>
329 <td class=
"md" nowrap
valign=
"top">double
</td>
330 <td class=
"mdname" nowrap
> <em>dx
</em>,
</td>
333 <td class=
"md" nowrap
align=
"right"></td>
335 <td class=
"md" nowrap
>double
</td>
336 <td class=
"mdname" nowrap
> <em>dy
</em></td>
340 <td class=
"md">)
</td>
341 <td class=
"md" colspan=
"2"><code> [virtual]
</code></td>
347 <table cellspacing=
"5" cellpadding=
"0" border=
"0">
355 Move this item of delta[x/y] and its sub items.
357 Sub items are moved along with this item. Use the
<a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html#z29_6">move()
</a> method if you want to move only this item, but not its hierarchy of sub items.
359 Reimplemented in
<a class=
"el" href=
"classqan_1_1can_1_1_rectangular_item.html#z26_3">qan::can::RectangularItem
</a>.
</td>
362 <a class=
"anchor" name=
"z29_3"></a><!-- doxytag: member=<qan::can::ItemImpl::moveItem> ref=<z29_3> args=<(double x, double y)> --><p>
363 <table class=
"mdTable" cellpadding=
"2" cellspacing=
"0">
366 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
368 <td class=
"mdPrefix" colspan=
"4">
369 template
<class CanvasItem
> </td>
372 <td class=
"md" nowrap
valign=
"top">void
<a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html">qan::can::ItemImpl
</a>< CanvasItem
>::moveItem
</td>
373 <td class=
"md" valign=
"top">(
</td>
374 <td class=
"md" nowrap
valign=
"top">double
</td>
375 <td class=
"mdname" nowrap
> <em>x
</em>,
</td>
378 <td class=
"md" nowrap
align=
"right"></td>
380 <td class=
"md" nowrap
>double
</td>
381 <td class=
"mdname" nowrap
> <em>y
</em></td>
385 <td class=
"md">)
</td>
386 <td class=
"md" colspan=
"2"><code> [virtual]
</code></td>
392 <table cellspacing=
"5" cellpadding=
"0" border=
"0">
400 Move this item (but not the hierarcy of sub items).
402 Sub items are not moved with this method. Use the
<a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html#z29_7">moveBy()
</a> method if you want to move the whole item hierarchy.
404 Implements
<a class=
"el" href=
"classqan_1_1can_1_1_item.html#z19_3">qan::can::Item
</a>.
</td>
407 <a class=
"anchor" name=
"z29_4"></a><!-- doxytag: member=<qan::can::ItemImpl::moveItemBy> ref=<z29_4> args=<(double dx, double dy)> --><p>
408 <table class=
"mdTable" cellpadding=
"2" cellspacing=
"0">
411 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
413 <td class=
"mdPrefix" colspan=
"4">
414 template
<class CanvasItem
> </td>
417 <td class=
"md" nowrap
valign=
"top">void
<a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html">qan::can::ItemImpl
</a>< CanvasItem
>::moveItemBy
</td>
418 <td class=
"md" valign=
"top">(
</td>
419 <td class=
"md" nowrap
valign=
"top">double
</td>
420 <td class=
"mdname" nowrap
> <em>dx
</em>,
</td>
423 <td class=
"md" nowrap
align=
"right"></td>
425 <td class=
"md" nowrap
>double
</td>
426 <td class=
"mdname" nowrap
> <em>dy
</em></td>
430 <td class=
"md">)
</td>
431 <td class=
"md" colspan=
"2"><code> [virtual]
</code></td>
437 <table cellspacing=
"5" cellpadding=
"0" border=
"0">
445 Move this item and its hierarchy of sub item by a position delta.
447 Sub items are moved along with this item. Use the
<a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html#z29_6">move()
</a> method if you want to move only this item, but not its hierarchy of sub items.
449 Implements
<a class=
"el" href=
"classqan_1_1can_1_1_item.html#z19_4">qan::can::Item
</a>.
</td>
452 <a class=
"anchor" name=
"z29_0"></a><!-- doxytag: member=<qan::can::ItemImpl::refreshCanvasSize> ref=<z29_0> args=<()> --><p>
453 <table class=
"mdTable" cellpadding=
"2" cellspacing=
"0">
456 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
458 <td class=
"mdPrefix" colspan=
"4">
459 template
<class CanvasItem
> </td>
462 <td class=
"md" nowrap
valign=
"top">void
<a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html">qan::can::ItemImpl
</a>< CanvasItem
>::refreshCanvasSize
</td>
463 <td class=
"md" valign=
"top">(
</td>
464 <td class=
"mdname1" valign=
"top" nowrap
> </td>
465 <td class=
"md" valign=
"top"> )
</td>
466 <td class=
"md" nowrap
></td>
472 <table cellspacing=
"5" cellpadding=
"0" border=
"0">
480 Resize the canvas of this item to ensure that the canvas is large enought to contain the item bounding rectangle.
485 <a class=
"anchor" name=
"z29_2"></a><!-- doxytag: member=<qan::can::ItemImpl::showItem> ref=<z29_2> args=<()> --><p>
486 <table class=
"mdTable" cellpadding=
"2" cellspacing=
"0">
489 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
491 <td class=
"mdPrefix" colspan=
"4">
492 template
<class CanvasItem
> </td>
495 <td class=
"md" nowrap
valign=
"top">void
<a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html">qan::can::ItemImpl
</a>< CanvasItem
>::showItem
</td>
496 <td class=
"md" valign=
"top">(
</td>
497 <td class=
"mdname1" valign=
"top" nowrap
> </td>
498 <td class=
"md" valign=
"top"> )
</td>
499 <td class=
"md" nowrap
><code> [virtual]
</code></td>
505 <table cellspacing=
"5" cellpadding=
"0" border=
"0">
513 Show an item that has previously been hidden.
517 Implements
<a class=
"el" href=
"classqan_1_1can_1_1_item.html#z19_2">qan::can::Item
</a>.
</td>
520 <a class=
"anchor" name=
"z29_8"></a><!-- doxytag: member=<qan::can::ItemImpl::updateStyle> ref=<z29_8> args=<(const AdvStyle &)> --><p>
521 <table class=
"mdTable" cellpadding=
"2" cellspacing=
"0">
524 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
526 <td class=
"mdPrefix" colspan=
"4">
527 template
<class CanvasItem
> </td>
530 <td class=
"md" nowrap
valign=
"top">virtual void
<a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html">qan::can::ItemImpl
</a>< CanvasItem
>::updateStyle
</td>
531 <td class=
"md" valign=
"top">(
</td>
532 <td class=
"md" nowrap
valign=
"top">const
<a class=
"el" href=
"classqan_1_1can_1_1_adv_style.html">AdvStyle
</a> & </td>
533 <td class=
"mdname1" valign=
"top" nowrap
> </td>
534 <td class=
"md" valign=
"top"> )
</td>
535 <td class=
"md" nowrap
><code> [inline, virtual]
</code></td>
541 <table cellspacing=
"5" cellpadding=
"0" border=
"0">
549 Update the node according to the given style.
553 Implements
<a class=
"el" href=
"classqan_1_1can_1_1_item.html#z19_8">qan::can::Item
</a>.
555 Reimplemented in
<a class=
"el" href=
"classqan_1_1can_1_1_rectangle_item.html#z23_1">qan::can::RectangleItem
</a>, and
<a class=
"el" href=
"classqan_1_1can_1_1_rectangular_item.html#z26_4">qan::can::RectangularItem
</a>.
</td>
558 <hr><h2>Member Data Documentation
</h2>
559 <a class=
"anchor" name=
"z29_10"></a><!-- doxytag: member=<qan::can::ItemImpl::_canvas> ref=<z29_10> args=<> --><p>
560 <table class=
"mdTable" cellpadding=
"2" cellspacing=
"0">
563 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
565 <td class=
"mdPrefix" colspan=
"4">
566 template
<class CanvasItem
> </td>
569 <td class=
"md" nowrap
valign=
"top"><a class=
"el" href=
"classqan_1_1can_1_1_canvas.html">Canvas
</a>& <a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html">qan::can::ItemImpl
</a>< CanvasItem
>::
<a class=
"el" href=
"classqan_1_1can_1_1_item_impl.html#z29_10">_canvas
</a><code> [private]
</code> </td>
575 <table cellspacing=
"5" cellpadding=
"0" border=
"0">
583 <a class=
"el" href=
"classqan_1_1can_1_1_item.html">Item
</a> canvas.
588 <hr>The documentation for this class was generated from the following file:
<ul>
589 <li>C:/projects/qanava/src/can/
<a class=
"el" href=
"can_item_impl_8h.html">canItemImpl.h
</a></ul>
591 <hr style=
"width: 100%; height: 2px;">
592 <table width=
"95%" height=
"48" border=
"0"
593 cellpadding=
"0" cellspacing=
"0" style=
"text-align: left; width: 95%; height: 31px;">
596 <td height=
"48" style=
"font-family: Helvetica,Arial,sans-serif;">
598 <dt><a href=
"http://www.libqanava.org"><font size=
"2">www.libqanava.org
</font></a><font size=
"2">
599 Qanava - QCanvas Avanc
é</font></dt>
602 <td style=
"vertical-align: middle; text-align: right;"><span
603 style=
"font-family: Helvetica,Arial,sans-serif;"><font size=
"2">Generated by
</font></span>
605 href=
"http://www.doxygen.org"><img alt=
"Doxygen logo"
606 src=
"../images/doxygen.png"
607 style=
"border: 0px solid ; width: 100px; height: 45px;" align=
"middle"></a></td>