Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > b3a1f4d91c26f535919e39e25606614a > files > 2265

wt-doc-3.2.3-1.fc18.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Wt: Wt::WVirtualImage Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Wt
   &#160;<span id="projectnumber">3.2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;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>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceWt.html">Wt</a>      </li>
      <li class="navelem"><a class="el" href="classWt_1_1WVirtualImage.html">WVirtualImage</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Wt::WVirtualImage Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Wt::WVirtualImage" --><!-- doxytag: inherits="Wt::WCompositeWidget" -->
<p>An abstract widget that shows a viewport to a virtually large image.  
 <a href="classWt_1_1WVirtualImage.html#details">More...</a></p>

<p><code>#include &lt;Wt/WVirtualImage&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Wt::WVirtualImage:</div>
<div class="dyncontent">
<div class="center"><img src="classWt_1_1WVirtualImage__inherit__graph.png" border="0" usemap="#Wt_1_1WVirtualImage_inherit__map" alt="Inheritance graph"/></div>
<map name="Wt_1_1WVirtualImage_inherit__map" id="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,168,181"/><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user&#45;interface component." alt="" coords="37,80,136,107"/><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="39,5,135,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classWt_1_1WVirtualImage-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#a5e4388b3757e5466fee84779dc8eddde">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">&#160;</td><td class="mdescRight">Creates a viewport for a virtual image.  <a href="#a5e4388b3757e5466fee84779dc8eddde"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae579c6380dddbc8a6390344e21c5e8bd"></a><!-- doxytag: member="Wt::WVirtualImage::~WVirtualImage" ref="ae579c6380dddbc8a6390344e21c5e8bd" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#ae579c6380dddbc8a6390344e21c5e8bd">~WVirtualImage</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#ac77880df77641e2778667d89135bd8c5">redrawAll</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Regenerates and redraws the image pieces.  <a href="#ac77880df77641e2778667d89135bd8c5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#a967961b3744ce70b0dcfffd2dd4e5582">enableDragging</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables mouse dragging to scroll around the image.  <a href="#a967961b3744ce70b0dcfffd2dd4e5582"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#a7dd6ab6e23b244782bb0fbd5901ac60c">scroll</a> (::int64_t dx,::int64_t dy)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Scrolls the viewport of the image over a distance.  <a href="#a7dd6ab6e23b244782bb0fbd5901ac60c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#a46e5cbf991d6859b5599d8c8f3cea416">scrollTo</a> (::int64_t x,::int64_t y)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Scrolls the viewport of the image to a specific coordinate.  <a href="#a46e5cbf991d6859b5599d8c8f3cea416"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">::int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#a9b8314a512c044710c4af57b58213988">imageWidth</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the virtual image width.  <a href="#a9b8314a512c044710c4af57b58213988"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">::int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#a272537cd717654a5c85eb6607fee801f">imageHeight</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the virtual image height.  <a href="#a272537cd717654a5c85eb6607fee801f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#a1fb1f0da2c5ddcf6ae332d7cd4ad2cee">resizeImage</a> (::int64_t w,::int64_t h)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Resizes the virtual image.  <a href="#a1fb1f0da2c5ddcf6ae332d7cd4ad2cee"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#ab2820de18d8a323c53b1cc7a7cf09486">viewPortWidth</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the viewport width.  <a href="#ab2820de18d8a323c53b1cc7a7cf09486"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#a31e6291cbafcd176aa55e43d5b9fa9c6">viewPortHeight</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the viewport height.  <a href="#a31e6291cbafcd176aa55e43d5b9fa9c6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#a4a222f67c8e0b285f4a0f5fb646ef09a">gridImageSize</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the size of a single piece.  <a href="#a4a222f67c8e0b285f4a0f5fb646ef09a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">::int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#aaef04959b8dc6ca5231ee7c287ec94c3">currentTopLeftX</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current top left X coordinate.  <a href="#aaef04959b8dc6ca5231ee7c287ec94c3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">::int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#a9901120973d8aa95f18a00a605355c47">currentTopLeftY</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current top left Y coordinate.  <a href="#a9901120973d8aa95f18a00a605355c47"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">::int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#a54c2781f8f2164ab2b594a047f3a9889">currentBottomRightX</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current bottom right X coordinate.  <a href="#a54c2781f8f2164ab2b594a047f3a9889"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">::int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#a020cfedaa6a56f7f6d53a552c6a278cc">currentBottomRightY</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current bottom right Y coordinate.  <a href="#a020cfedaa6a56f7f6d53a552c6a278cc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt; ::int64_t,::int64_t &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#a5b5850535038ea4a505d55cadc6a8446">viewPortChanged</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal emitted whenever the viewport changes.  <a href="#a5b5850535038ea4a505d55cadc6a8446"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac2657f31a609a69b48631d26e0bd0b81"></a><!-- doxytag: member="Wt::WVirtualImage::Infinite" ref="ac2657f31a609a69b48631d26e0bd0b81" args="" -->
static const ::int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#ac2657f31a609a69b48631d26e0bd0b81">Infinite</a> = std::numeric_limits&lt; ::int64_t &gt;::max()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Special value for imageWidth or imageHeight. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classWt_1_1WImage.html">WImage</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#a716ef0af4754b64e4e3fe2e45a4deb63">createImage</a> (::int64_t x,::int64_t y, int width, int height)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a grid image for the given rectangle.  <a href="#a716ef0af4754b64e4e3fe2e45a4deb63"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classWt_1_1WResource.html">WResource</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVirtualImage.html#af95a08b61b3f400f3b04d80ac99fb3f7">render</a> (::int64_t x,::int64_t y, int width, int height)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Render a grid image for the given rectangle.  <a href="#af95a08b61b3f400f3b04d80ac99fb3f7"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>An abstract widget that shows a viewport to a virtually large image. </p>
<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>
<p>The WVirtualImage may provide interactive navigation using the mouse, by reacting to dragging of the mouse on the image.</p>
<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>
<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>
<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. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a5e4388b3757e5466fee84779dc8eddde"></a><!-- doxytag: member="Wt::WVirtualImage::WVirtualImage" ref="a5e4388b3757e5466fee84779dc8eddde" 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&#160;</td>
          <td class="paramname"><em>viewPortWidth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>viewPortHeight</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">::int64_t&#160;</td>
          <td class="paramname"><em>imageWidth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">::int64_t&#160;</td>
          <td class="paramname"><em>imageHeight</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</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> *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a viewport for a virtual image. </p>
<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>
<p>In addition, you must specify the size of each square grid item. The default is 256 by 256. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a716ef0af4754b64e4e3fe2e45a4deb63"></a><!-- doxytag: member="Wt::WVirtualImage::createImage" ref="a716ef0af4754b64e4e3fe2e45a4deb63" 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&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">::int64_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <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>
<p>Create the image which spans image coordinates with left upper corner (x, y) and given width and height.</p>
<p>Width and height will not necesarilly equal <a class="el" href="classWt_1_1WVirtualImage.html#a4a222f67c8e0b285f4a0f5fb646ef09a" title="Returns the size of a single piece.">gridImageSize()</a>, if the the image is not infinite sized.</p>
<p>The default implementation calls <a class="el" href="classWt_1_1WVirtualImage.html#af95a08b61b3f400f3b04d80ac99fb3f7" title="Render a grid image for the given rectangle.">render()</a> and creates an image for the resource returned.</p>
<p>You should override this method if you wish to serve for example static image content.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#af95a08b61b3f400f3b04d80ac99fb3f7" title="Render a grid image for the given rectangle.">render()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a54c2781f8f2164ab2b594a047f3a9889"></a><!-- doxytag: member="Wt::WVirtualImage::currentBottomRightX" ref="a54c2781f8f2164ab2b594a047f3a9889" 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</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current bottom right X coordinate. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#a020cfedaa6a56f7f6d53a552c6a278cc" title="Returns the current bottom right Y coordinate.">currentBottomRightY()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a020cfedaa6a56f7f6d53a552c6a278cc"></a><!-- doxytag: member="Wt::WVirtualImage::currentBottomRightY" ref="a020cfedaa6a56f7f6d53a552c6a278cc" 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</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current bottom right Y coordinate. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#a54c2781f8f2164ab2b594a047f3a9889" title="Returns the current bottom right X coordinate.">currentBottomRightX()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aaef04959b8dc6ca5231ee7c287ec94c3"></a><!-- doxytag: member="Wt::WVirtualImage::currentTopLeftX" ref="aaef04959b8dc6ca5231ee7c287ec94c3" 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</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current top left X coordinate. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#a9901120973d8aa95f18a00a605355c47" title="Returns the current top left Y coordinate.">currentTopLeftY()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a9901120973d8aa95f18a00a605355c47"></a><!-- doxytag: member="Wt::WVirtualImage::currentTopLeftY" ref="a9901120973d8aa95f18a00a605355c47" 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</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current top left Y coordinate. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#aaef04959b8dc6ca5231ee7c287ec94c3" title="Returns the current top left X coordinate.">currentTopLeftX()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a967961b3744ce70b0dcfffd2dd4e5582"></a><!-- doxytag: member="Wt::WVirtualImage::enableDragging" ref="a967961b3744ce70b0dcfffd2dd4e5582" 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>
<p>The cursor is changed to a 'move' symbol to indicate the interactivity. </p>

</div>
</div>
<a class="anchor" id="a4a222f67c8e0b285f4a0f5fb646ef09a"></a><!-- doxytag: member="Wt::WVirtualImage::gridImageSize" ref="a4a222f67c8e0b285f4a0f5fb646ef09a" 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</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the size of a single piece. </p>
<p>This is the size of a side of the square pieces that is used to render the visible part of the image. </p>

</div>
</div>
<a class="anchor" id="a272537cd717654a5c85eb6607fee801f"></a><!-- doxytag: member="Wt::WVirtualImage::imageHeight" ref="a272537cd717654a5c85eb6607fee801f" 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</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the virtual image height. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#a9b8314a512c044710c4af57b58213988" title="Returns the virtual image width.">imageWidth()</a>, <a class="el" href="classWt_1_1WVirtualImage.html#a1fb1f0da2c5ddcf6ae332d7cd4ad2cee" title="Resizes the virtual image.">resizeImage()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a9b8314a512c044710c4af57b58213988"></a><!-- doxytag: member="Wt::WVirtualImage::imageWidth" ref="a9b8314a512c044710c4af57b58213988" 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</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the virtual image width. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#a272537cd717654a5c85eb6607fee801f" title="Returns the virtual image height.">imageHeight()</a>, <a class="el" href="classWt_1_1WVirtualImage.html#a1fb1f0da2c5ddcf6ae332d7cd4ad2cee" title="Resizes the virtual image.">resizeImage()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ac77880df77641e2778667d89135bd8c5"></a><!-- doxytag: member="Wt::WVirtualImage::redrawAll" ref="ac77880df77641e2778667d89135bd8c5" 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>
<p>This method invalidates all current grid images, and recreates them. </p>

</div>
</div>
<a class="anchor" id="af95a08b61b3f400f3b04d80ac99fb3f7"></a><!-- doxytag: member="Wt::WVirtualImage::render" ref="af95a08b61b3f400f3b04d80ac99fb3f7" 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&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">::int64_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <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>
<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>
<p>Width and height will not necesarilly equal to <a class="el" href="classWt_1_1WVirtualImage.html#a4a222f67c8e0b285f4a0f5fb646ef09a" title="Returns the size of a single piece.">gridImageSize()</a>, if the the image is not infinite sized.</p>
<p>The default implementation throws an Exception. You must reimplement this method unless you reimplement <a class="el" href="classWt_1_1WVirtualImage.html#a716ef0af4754b64e4e3fe2e45a4deb63" title="Creates a grid image for the given rectangle.">createImage()</a>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#a716ef0af4754b64e4e3fe2e45a4deb63" title="Creates a grid image for the given rectangle.">createImage()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a1fb1f0da2c5ddcf6ae332d7cd4ad2cee"></a><!-- doxytag: member="Wt::WVirtualImage::resizeImage" ref="a1fb1f0da2c5ddcf6ae332d7cd4ad2cee" 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&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">::int64_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Resizes the virtual image. </p>
<p>This sets a new virtual size for the image. The viewport size sets the visible portion of the image.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#a9b8314a512c044710c4af57b58213988" title="Returns the virtual image width.">imageWidth()</a>, <a class="el" href="classWt_1_1WVirtualImage.html#a272537cd717654a5c85eb6607fee801f" title="Returns the virtual image height.">imageHeight()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a7dd6ab6e23b244782bb0fbd5901ac60c"></a><!-- doxytag: member="Wt::WVirtualImage::scroll" ref="a7dd6ab6e23b244782bb0fbd5901ac60c" 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&#160;</td>
          <td class="paramname"><em>dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">::int64_t&#160;</td>
          <td class="paramname"><em>dy</em>&#160;</td>
        </tr>
        <tr>
          <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"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#a46e5cbf991d6859b5599d8c8f3cea416" title="Scrolls the viewport of the image to a specific coordinate.">scrollTo()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a46e5cbf991d6859b5599d8c8f3cea416"></a><!-- doxytag: member="Wt::WVirtualImage::scrollTo" ref="a46e5cbf991d6859b5599d8c8f3cea416" 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&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">::int64_t&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <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>
<p>Scroll the viewport so that its top left coordinate becomes (x, y).</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#a7dd6ab6e23b244782bb0fbd5901ac60c" title="Scrolls the viewport of the image over a distance.">scroll()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a5b5850535038ea4a505d55cadc6a8446"></a><!-- doxytag: member="Wt::WVirtualImage::viewPortChanged" ref="a5b5850535038ea4a505d55cadc6a8446" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1Signal.html">Signal</a>&lt; ::int64_t, ::int64_t &gt;&amp; Wt::WVirtualImage::viewPortChanged </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signal emitted whenever the viewport changes. </p>
<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#a46e5cbf991d6859b5599d8c8f3cea416" title="Scrolls the viewport of the image to a specific coordinate.">scrollTo()</a> and <a class="el" href="classWt_1_1WVirtualImage.html#a7dd6ab6e23b244782bb0fbd5901ac60c" title="Scrolls the viewport of the image over a distance.">scroll()</a>. </p>

</div>
</div>
<a class="anchor" id="a31e6291cbafcd176aa55e43d5b9fa9c6"></a><!-- doxytag: member="Wt::WVirtualImage::viewPortHeight" ref="a31e6291cbafcd176aa55e43d5b9fa9c6" 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</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the viewport height. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#ab2820de18d8a323c53b1cc7a7cf09486" title="Returns the viewport width.">viewPortWidth()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ab2820de18d8a323c53b1cc7a7cf09486"></a><!-- doxytag: member="Wt::WVirtualImage::viewPortWidth" ref="ab2820de18d8a323c53b1cc7a7cf09486" 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</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the viewport width. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WVirtualImage.html#a31e6291cbafcd176aa55e43d5b9fa9c6" title="Returns the viewport height.">viewPortHeight()</a> </dd></dl>

</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"><address style="text-align: right; margin: 3px"><small>
Generated on Thu Nov 1 2012 for <a href="http://www.webtoolkit.eu/wt">the
C++ Web Toolkit (Wt)</a> by&nbsp;<a
href="http://www.doxygen.org/index.html"><img src="doxygen.png"
alt="doxygen" border="0" style="vertical-align: middle; display:
inline-block; height: 2em"></a> 1.7.5.1</small></address>
</body>
</html>