1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Wt: Wt::WVirtualImage Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="classWt_1_1WVirtualImage.html">WVirtualImage</a>
</div>
</div>
<div class="contents">
<h1>Wt::WVirtualImage Class Reference</h1><!-- doxytag: class="Wt::WVirtualImage" --><!-- doxytag: inherits="Wt::WCompositeWidget" -->An abstract widget that shows a viewport to a virtually large image.
<a href="#_details">More...</a>
<p>
<code>#include <Wt/WVirtualImage></code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WVirtualImage:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WVirtualImage__inherit__graph.png" border="0" usemap="#Wt_1_1WVirtualImage__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WVirtualImage__inherit__map">
<area shape="rect" href="classWt_1_1WCompositeWidget.html" title="A widget that hides the implementation of composite widgets." alt="" coords="5,155,165,181"><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user-interface component." alt="" coords="37,80,133,107"><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="37,5,133,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<p>
<a href="classWt_1_1WVirtualImage-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#a7d567e1fb9f81bb00b0e4c5364c2281">WVirtualImage</a> (int viewPortWidth, int viewPortHeight, int64_t imageWidth, int64_t imageHeight, int gridImageSize=256, <a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a viewport for a virtual image. <a href="#a7d567e1fb9f81bb00b0e4c5364c2281"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e579c6380dddbc8a6390344e21c5e8bd"></a><!-- doxytag: member="Wt::WVirtualImage::~WVirtualImage" ref="e579c6380dddbc8a6390344e21c5e8bd" args="()" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#e579c6380dddbc8a6390344e21c5e8bd">~WVirtualImage</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#c77880df77641e2778667d89135bd8c5">redrawAll</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Regenerates and redraws the image pieces. <a href="#c77880df77641e2778667d89135bd8c5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#967961b3744ce70b0dcfffd2dd4e5582">enableDragging</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Enables mouse dragging to scroll around the image. <a href="#967961b3744ce70b0dcfffd2dd4e5582"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#534e108756601d90729613531eb8b53c">scroll</a> (int64_t dx, int64_t dy)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Scrolls the viewport of the image over a distance. <a href="#534e108756601d90729613531eb8b53c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#5d3c1ed4db8ae1022e6810ebf2b96002">scrollTo</a> (int64_t x, int64_t y)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Scrolls the viewport of the image to a specific coordinate. <a href="#5d3c1ed4db8ae1022e6810ebf2b96002"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#a1468c9e6f1903c6120f207a017ee07b">imageWidth</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the virtual image width. <a href="#a1468c9e6f1903c6120f207a017ee07b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#498aa2ad488ad7a8aefc452dc1ac7073">imageHeight</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the virtual image height. <a href="#498aa2ad488ad7a8aefc452dc1ac7073"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#269a9169c21d4b5337ca1ffca3818a7d">resizeImage</a> (int64_t w, int64_t h)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Resizes the virtual image. <a href="#269a9169c21d4b5337ca1ffca3818a7d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#b2820de18d8a323c53b1cc7a7cf09486">viewPortWidth</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the viewport width. <a href="#b2820de18d8a323c53b1cc7a7cf09486"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#31e6291cbafcd176aa55e43d5b9fa9c6">viewPortHeight</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the viewport height. <a href="#31e6291cbafcd176aa55e43d5b9fa9c6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#4a222f67c8e0b285f4a0f5fb646ef09a">gridImageSize</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the size of a single piece. <a href="#4a222f67c8e0b285f4a0f5fb646ef09a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#cebb4e525040bc0007a8de4a468edd53">currentTopLeftX</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the current top left X coordinate. <a href="#cebb4e525040bc0007a8de4a468edd53"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#af21415766c90bb5fca7467f2e1c2290">currentTopLeftY</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the current top left Y coordinate. <a href="#af21415766c90bb5fca7467f2e1c2290"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#70f6115b0cadd44f5401f588207a559a">currentBottomRightX</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the current bottom right X coordinate. <a href="#70f6115b0cadd44f5401f588207a559a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#1bad3a30a98028ad1bff4f124dd75045">currentBottomRightY</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the current bottom right Y coordinate. <a href="#1bad3a30a98028ad1bff4f124dd75045"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1Signal.html">Signal</a>< int64_t, int64_t > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#f9ee8a45d64065925e0fcaa4d15be5d5">viewPortChanged</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Signal emitted whenever the viewport changes. <a href="#f9ee8a45d64065925e0fcaa4d15be5d5"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="31301991419831c28727146799c6177f"></a><!-- doxytag: member="Wt::WVirtualImage::Infinite" ref="31301991419831c28727146799c6177f" args="" -->
static const int64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#31301991419831c28727146799c6177f">Infinite</a> = std::numeric_limits<int64_t>::max()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Special value for imageWidth or imageHeight. <br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classWt_1_1WImage.html">WImage</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#d77db89c2208a50f7a29f3429db60abe">createImage</a> (int64_t x, int64_t y, int width, int height)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a grid image for the given rectangle. <a href="#d77db89c2208a50f7a29f3429db60abe"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classWt_1_1WResource.html">WResource</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#96f487768bcb1292304843a4a05a7daa">render</a> (int64_t x, int64_t y, int width, int height)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Render a grid image for the given rectangle. <a href="#96f487768bcb1292304843a4a05a7daa"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
An abstract widget that shows a viewport to a virtually large image.
<p>
WVirtualImage is an abstract class which renders a large image in small pieces. The large image is broken down, and rendered as a grid of smaller square images parts.<p>
The WVirtualImage may provide interactive navigation using the mouse, by reacting to dragging of the mouse on the image.<p>
The WVirtualImage renders pieces in and bordering the current viewport. In this way, provided the individual pieces load sufficiently fast, the user has effectively the impression of scrolling through a single large image, without glitches. Whenever the image is navigated, if necessary, new images are rendered to maintain the border. Images that are too far from the current viewport are pruned away, so that browser memory remains bounded.<p>
To use this class, you must reimplement one of two virtual methods to specify the contents of each grid piece. Either you provide a suitable <a class="el" href="classWt_1_1WImage.html" title="A widget that displays an image.">WImage</a> for every grid piece, or you provide a <a class="el" href="classWt_1_1WResource.html" title="An object which can be rendered in the HTTP protocol.">WResource</a> which renders the contents for a <a class="el" href="classWt_1_1WImage.html" title="A widget that displays an image.">WImage</a> for every grid piece.<p>
The total image dimensions are (0, 0) to (imageWidth, imageHeight) for a finite image, and become unbounded (including negative numbers) for each dimension which is Infinite.<p>
<h3>CSS</h3>
<p>
Styling through CSS is not applicable. <hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="a7d567e1fb9f81bb00b0e4c5364c2281"></a><!-- doxytag: member="Wt::WVirtualImage::WVirtualImage" ref="a7d567e1fb9f81bb00b0e4c5364c2281" args="(int viewPortWidth, int viewPortHeight, int64_t imageWidth, int64_t imageHeight, int gridImageSize=256, WContainerWidget *parent=0)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Wt::WVirtualImage::WVirtualImage </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>viewPortWidth</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>viewPortHeight</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64_t </td>
<td class="paramname"> <em>imageWidth</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64_t </td>
<td class="paramname"> <em>imageHeight</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>gridImageSize</em> = <code>256</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> * </td>
<td class="paramname"> <em>parent</em> = <code>0</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Creates a viewport for a virtual image.
<p>
You must specify the size of the viewport, and the size of the virtual image. The latter dimensions may be the special value Infinite, indicating that in one or more dimensions, the image size is infinite (in practice limited by the maximum integer value).<p>
In addition, you must specify the size of each square grid item. The default is 256 by 256.
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="c77880df77641e2778667d89135bd8c5"></a><!-- doxytag: member="Wt::WVirtualImage::redrawAll" ref="c77880df77641e2778667d89135bd8c5" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WVirtualImage::redrawAll </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Regenerates and redraws the image pieces.
<p>
This method invalidates all current grid images, and recreates them.
</div>
</div><p>
<a class="anchor" name="967961b3744ce70b0dcfffd2dd4e5582"></a><!-- doxytag: member="Wt::WVirtualImage::enableDragging" ref="967961b3744ce70b0dcfffd2dd4e5582" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WVirtualImage::enableDragging </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Enables mouse dragging to scroll around the image.
<p>
The cursor is changed to a 'move' symbol to indicate the interactivity.
</div>
</div><p>
<a class="anchor" name="534e108756601d90729613531eb8b53c"></a><!-- doxytag: member="Wt::WVirtualImage::scroll" ref="534e108756601d90729613531eb8b53c" args="(int64_t dx, int64_t dy)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WVirtualImage::scroll </td>
<td>(</td>
<td class="paramtype">int64_t </td>
<td class="paramname"> <em>dx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64_t </td>
<td class="paramname"> <em>dy</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Scrolls the viewport of the image over a distance.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#5d3c1ed4db8ae1022e6810ebf2b96002" title="Scrolls the viewport of the image to a specific coordinate.">scrollTo()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="5d3c1ed4db8ae1022e6810ebf2b96002"></a><!-- doxytag: member="Wt::WVirtualImage::scrollTo" ref="5d3c1ed4db8ae1022e6810ebf2b96002" args="(int64_t x, int64_t y)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WVirtualImage::scrollTo </td>
<td>(</td>
<td class="paramtype">int64_t </td>
<td class="paramname"> <em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64_t </td>
<td class="paramname"> <em>y</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Scrolls the viewport of the image to a specific coordinate.
<p>
Scroll the viewport so that its top left coordinate becomes (x, y).<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#534e108756601d90729613531eb8b53c" title="Scrolls the viewport of the image over a distance.">scroll()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="a1468c9e6f1903c6120f207a017ee07b"></a><!-- doxytag: member="Wt::WVirtualImage::imageWidth" ref="a1468c9e6f1903c6120f207a017ee07b" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int64_t Wt::WVirtualImage::imageWidth </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the virtual image width.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#498aa2ad488ad7a8aefc452dc1ac7073" title="Returns the virtual image height.">imageHeight()</a>, <a class="el" href="classWt_1_1WVirtualImage.html#269a9169c21d4b5337ca1ffca3818a7d" title="Resizes the virtual image.">resizeImage()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="498aa2ad488ad7a8aefc452dc1ac7073"></a><!-- doxytag: member="Wt::WVirtualImage::imageHeight" ref="498aa2ad488ad7a8aefc452dc1ac7073" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int64_t Wt::WVirtualImage::imageHeight </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the virtual image height.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#a1468c9e6f1903c6120f207a017ee07b" title="Returns the virtual image width.">imageWidth()</a>, <a class="el" href="classWt_1_1WVirtualImage.html#269a9169c21d4b5337ca1ffca3818a7d" title="Resizes the virtual image.">resizeImage()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="269a9169c21d4b5337ca1ffca3818a7d"></a><!-- doxytag: member="Wt::WVirtualImage::resizeImage" ref="269a9169c21d4b5337ca1ffca3818a7d" args="(int64_t w, int64_t h)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WVirtualImage::resizeImage </td>
<td>(</td>
<td class="paramtype">int64_t </td>
<td class="paramname"> <em>w</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64_t </td>
<td class="paramname"> <em>h</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Resizes the virtual image.
<p>
This sets a new virtual size for the image. The viewport size sets the visible portion of the image.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#a1468c9e6f1903c6120f207a017ee07b" title="Returns the virtual image width.">imageWidth()</a>, <a class="el" href="classWt_1_1WVirtualImage.html#498aa2ad488ad7a8aefc452dc1ac7073" title="Returns the virtual image height.">imageHeight()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="b2820de18d8a323c53b1cc7a7cf09486"></a><!-- doxytag: member="Wt::WVirtualImage::viewPortWidth" ref="b2820de18d8a323c53b1cc7a7cf09486" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Wt::WVirtualImage::viewPortWidth </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the viewport width.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#31e6291cbafcd176aa55e43d5b9fa9c6" title="Returns the viewport height.">viewPortHeight()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="31e6291cbafcd176aa55e43d5b9fa9c6"></a><!-- doxytag: member="Wt::WVirtualImage::viewPortHeight" ref="31e6291cbafcd176aa55e43d5b9fa9c6" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Wt::WVirtualImage::viewPortHeight </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the viewport height.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#b2820de18d8a323c53b1cc7a7cf09486" title="Returns the viewport width.">viewPortWidth()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="4a222f67c8e0b285f4a0f5fb646ef09a"></a><!-- doxytag: member="Wt::WVirtualImage::gridImageSize" ref="4a222f67c8e0b285f4a0f5fb646ef09a" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Wt::WVirtualImage::gridImageSize </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the size of a single piece.
<p>
This is the size of a side of the square pieces that is used to render the visible part of the image.
</div>
</div><p>
<a class="anchor" name="cebb4e525040bc0007a8de4a468edd53"></a><!-- doxytag: member="Wt::WVirtualImage::currentTopLeftX" ref="cebb4e525040bc0007a8de4a468edd53" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int64_t Wt::WVirtualImage::currentTopLeftX </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the current top left X coordinate.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#af21415766c90bb5fca7467f2e1c2290" title="Returns the current top left Y coordinate.">currentTopLeftY()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="af21415766c90bb5fca7467f2e1c2290"></a><!-- doxytag: member="Wt::WVirtualImage::currentTopLeftY" ref="af21415766c90bb5fca7467f2e1c2290" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int64_t Wt::WVirtualImage::currentTopLeftY </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the current top left Y coordinate.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#cebb4e525040bc0007a8de4a468edd53" title="Returns the current top left X coordinate.">currentTopLeftX()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="70f6115b0cadd44f5401f588207a559a"></a><!-- doxytag: member="Wt::WVirtualImage::currentBottomRightX" ref="70f6115b0cadd44f5401f588207a559a" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int64_t Wt::WVirtualImage::currentBottomRightX </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the current bottom right X coordinate.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#1bad3a30a98028ad1bff4f124dd75045" title="Returns the current bottom right Y coordinate.">currentBottomRightY()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="1bad3a30a98028ad1bff4f124dd75045"></a><!-- doxytag: member="Wt::WVirtualImage::currentBottomRightY" ref="1bad3a30a98028ad1bff4f124dd75045" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int64_t Wt::WVirtualImage::currentBottomRightY </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the current bottom right Y coordinate.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#70f6115b0cadd44f5401f588207a559a" title="Returns the current bottom right X coordinate.">currentBottomRightX()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="f9ee8a45d64065925e0fcaa4d15be5d5"></a><!-- doxytag: member="Wt::WVirtualImage::viewPortChanged" ref="f9ee8a45d64065925e0fcaa4d15be5d5" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1Signal.html">Signal</a><int64_t, int64_t>& Wt::WVirtualImage::viewPortChanged </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Signal emitted whenever the viewport changes.
<p>
The viewport can be changed by the user dragging the image or through the API methods <a class="el" href="classWt_1_1WVirtualImage.html#5d3c1ed4db8ae1022e6810ebf2b96002" title="Scrolls the viewport of the image to a specific coordinate.">scrollTo()</a> and <a class="el" href="classWt_1_1WVirtualImage.html#534e108756601d90729613531eb8b53c" title="Scrolls the viewport of the image over a distance.">scroll()</a>.
</div>
</div><p>
<a class="anchor" name="d77db89c2208a50f7a29f3429db60abe"></a><!-- doxytag: member="Wt::WVirtualImage::createImage" ref="d77db89c2208a50f7a29f3429db60abe" args="(int64_t x, int64_t y, int width, int height)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1WImage.html">WImage</a> * Wt::WVirtualImage::createImage </td>
<td>(</td>
<td class="paramtype">int64_t </td>
<td class="paramname"> <em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64_t </td>
<td class="paramname"> <em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>height</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Creates a grid image for the given rectangle.
<p>
Create the image which spans image coordinates with left upper corner (x, y) and given width and height.<p>
Width and height will not necesarilly equal <a class="el" href="classWt_1_1WVirtualImage.html#4a222f67c8e0b285f4a0f5fb646ef09a" title="Returns the size of a single piece.">gridImageSize()</a>, if the the image is not infinite sized.<p>
The default implementation calls <a class="el" href="classWt_1_1WVirtualImage.html#96f487768bcb1292304843a4a05a7daa" title="Render a grid image for the given rectangle.">render()</a> and creates an image for the resource returned.<p>
You should override this method if you wish to serve for example static image content.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#96f487768bcb1292304843a4a05a7daa" title="Render a grid image for the given rectangle.">render(int64_t x, int64_t y, int width, int height)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="96f487768bcb1292304843a4a05a7daa"></a><!-- doxytag: member="Wt::WVirtualImage::render" ref="96f487768bcb1292304843a4a05a7daa" args="(int64_t x, int64_t y, int width, int height)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1WResource.html">WResource</a> * Wt::WVirtualImage::render </td>
<td>(</td>
<td class="paramtype">int64_t </td>
<td class="paramname"> <em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64_t </td>
<td class="paramname"> <em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>height</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Render a grid image for the given rectangle.
<p>
Returns a resource that streams an image which renders the rectangle which spans image coordinates with left upper corner (x, y) and given width and height.<p>
Width and height will not necesarilly equal to <a class="el" href="classWt_1_1WVirtualImage.html#4a222f67c8e0b285f4a0f5fb646ef09a" title="Returns the size of a single piece.">gridImageSize()</a>, if the the image is not infinite sized.<p>
The default implementation throws an Exception. You must reimplement this method unless you reimplement <a class="el" href="classWt_1_1WVirtualImage.html#d77db89c2208a50f7a29f3429db60abe" title="Creates a grid image for the given rectangle.">createImage()</a>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#d77db89c2208a50f7a29f3429db60abe" title="Creates a grid image for the given rectangle.">createImage(int64_t x, int64_t y, int width, int height)</a> </dd></dl>
</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:08 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>
|