Sophie

Sophie

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

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::Chart::WPieChart 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="namespaceWt_1_1Chart.html">Chart</a>      </li>
      <li class="navelem"><a class="el" href="classWt_1_1Chart_1_1WPieChart.html">WPieChart</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Wt::Chart::WPieChart Class Reference<div class="ingroups"><a class="el" href="group__charts.html">Charts (Wt::Chart)</a> &#124; <a class="el" href="group__modelview.html">Model/view system</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Wt::Chart::WPieChart" --><!-- doxytag: inherits="Wt::Chart::WAbstractChart" -->
<p>A pie chart.  
 <a href="classWt_1_1Chart_1_1WPieChart.html#details">More...</a></p>

<p><code>#include &lt;Wt/Chart/WPieChart&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Wt::Chart::WPieChart:</div>
<div class="dyncontent">
<div class="center"><img src="classWt_1_1Chart_1_1WPieChart__inherit__graph.png" border="0" usemap="#Wt_1_1Chart_1_1WPieChart_inherit__map" alt="Inheritance graph"/></div>
<map name="Wt_1_1Chart_1_1WPieChart_inherit__map" id="Wt_1_1Chart_1_1WPieChart_inherit__map">
<area shape="rect" href="classWt_1_1Chart_1_1WAbstractChart.html" title="Abstract base class for MVC&#45;based charts." alt="" coords="5,379,184,405"/><area shape="rect" href="classWt_1_1WPaintedWidget.html" title="A widget that is painted using vector graphics." alt="" coords="23,304,167,331"/><area shape="rect" href="classWt_1_1WInteractWidget.html" title="An abstract widget that can receive user&#45;interface interaction." alt="" coords="23,229,167,256"/><area shape="rect" href="classWt_1_1WWebWidget.html" title="A base class for widgets with an HTML counterpart." alt="" coords="31,155,159,181"/><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user&#45;interface component." alt="" coords="45,80,144,107"/><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="47,5,143,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classWt_1_1Chart_1_1WPieChart-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"><a class="anchor" id="afec3ff85d3997e588acadbc2b844943a"></a><!-- doxytag: member="Wt::Chart::WPieChart::WPieChart" ref="afec3ff85d3997e588acadbc2b844943a" args="(WContainerWidget *parent=0)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#afec3ff85d3997e588acadbc2b844943a">WPieChart</a> (<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 new pie chart. <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_1Chart_1_1WPieChart.html#aa40bfd3f2095106f8081596b235de4c6">setLabelsColumn</a> (int column)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the model column that holds the labels.  <a href="#aa40bfd3f2095106f8081596b235de4c6"></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_1Chart_1_1WPieChart.html#a9029c0a18c84558da2b36089dfb7fa3d">labelsColumn</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the model column used for the labels.  <a href="#a9029c0a18c84558da2b36089dfb7fa3d"></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_1Chart_1_1WPieChart.html#a3692ea22a1417e599e9358b0ed5a723d">setDataColumn</a> (int modelColumn)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the model column that holds the data.  <a href="#a3692ea22a1417e599e9358b0ed5a723d"></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_1Chart_1_1WPieChart.html#a5d88b01950313351cfb38821d8c8bc2c">dataColumn</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the model column used for the data.  <a href="#a5d88b01950313351cfb38821d8c8bc2c"></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_1Chart_1_1WPieChart.html#af0fc06d47e2b717f1faeae80926d068c">setBrush</a> (int modelRow, const <a class="el" href="classWt_1_1WBrush.html">WBrush</a> &amp;brush)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Customizes the brush used for a pie segment.  <a href="#af0fc06d47e2b717f1faeae80926d068c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WBrush.html">WBrush</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a6063464c0a664943d747b344e8383b5c">brush</a> (int modelRow) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the brush used for a pie segment.  <a href="#a6063464c0a664943d747b344e8383b5c"></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_1Chart_1_1WPieChart.html#a4a2bfe0c147b5433d340d49351b5032c">setExplode</a> (int modelRow, double factor)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the explosion factor for a pie segment.  <a href="#a4a2bfe0c147b5433d340d49351b5032c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#ae4873101c6d49b858e665f88182b0361">explode</a> (int modelRow) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the explosion factor for a segment.  <a href="#ae4873101c6d49b858e665f88182b0361"></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_1Chart_1_1WPieChart.html#ae36d57f4c2801cb8599a1bc99e340a24">setPerspectiveEnabled</a> (bool enabled, double height=1.0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables a 3D perspective effect on the pie.  <a href="#ae36d57f4c2801cb8599a1bc99e340a24"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a448d52119f7422ec0893261980e7e880">isPerspectiveEnabled</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether a 3D effect is enabled.  <a href="#a448d52119f7422ec0893261980e7e880"></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_1Chart_1_1WPieChart.html#a74b91c0514247ba9ea91b53fbae795f7">setShadowEnabled</a> (bool enabled)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables a shadow effect.  <a href="#a74b91c0514247ba9ea91b53fbae795f7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a1738f01efbd4c3b34956d2e42096580f">isShadowEnabled</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether a shadow effect is enabled.  <a href="#a1738f01efbd4c3b34956d2e42096580f"></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_1Chart_1_1WPieChart.html#a407707a2ab0b2c56500e35da85e619a5">setStartAngle</a> (double degrees)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the angle of the first segment.  <a href="#a407707a2ab0b2c56500e35da85e619a5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#af2d62e836a60f28755218921fc0e4b90">startAngle</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the angle of the first segment.  <a href="#af2d62e836a60f28755218921fc0e4b90"></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_1Chart_1_1WPieChart.html#aa573182ef1ba641315f3d2bf5899784f">setAvoidLabelRendering</a> (double percent)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the percentage value to avoid rendering of label texts.  <a href="#aa573182ef1ba641315f3d2bf5899784f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#af304b94ab8892fd17d0af98259a709af">avoidLabelRendering</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the percentage to avoid label rendering.  <a href="#af304b94ab8892fd17d0af98259a709af"></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_1Chart_1_1WPieChart.html#a89324f6159e5893e1ddd368718d00e5d">setDisplayLabels</a> (WFlags&lt; <a class="el" href="group__charts.html#ga9345394a8eeda6800d8a24c5df44d983">LabelOption</a> &gt; options)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures if and how labels should be displayed.  <a href="#a89324f6159e5893e1ddd368718d00e5d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">WFlags&lt; <a class="el" href="group__charts.html#ga9345394a8eeda6800d8a24c5df44d983">LabelOption</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a448e016c20ffc0c15d707cf69081f5d4">displayLabels</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns options set for displaying labels.  <a href="#a448e016c20ffc0c15d707cf69081f5d4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#ac4e58ff2d6c698bfa4a52f6347dff654">createLegendItemWidget</a> (int index, WFlags&lt; <a class="el" href="group__charts.html#ga9345394a8eeda6800d8a24c5df44d983">LabelOption</a> &gt; options)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a widget which renders the a legend item.  <a href="#ac4e58ff2d6c698bfa4a52f6347dff654"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a566d64a04ee31771c99e399c4cf15c4e">addDataPointArea</a> (const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;index, <a class="el" href="classWt_1_1WAbstractArea.html">WAbstractArea</a> *area) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a data point area (used for displaying e.g. tooltips).  <a href="#a566d64a04ee31771c99e399c4cf15c4e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a3929b0fc7d0b71f06809207b3d34df08">paint</a> (<a class="el" href="classWt_1_1WPainter.html">WPainter</a> &amp;painter, const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;rectangle=<a class="el" href="classWt_1_1WRectF.html">WRectF</a>()) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Paint the chart in a rectangle of the given painter.  <a href="#a3929b0fc7d0b71f06809207b3d34df08"></a><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">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#ab1653eea26f873b295a7350bd0dbb9ac">paintEvent</a> (<a class="el" href="classWt_1_1WPaintDevice.html">Wt::WPaintDevice</a> *paintDevice)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Paints the widget.  <a href="#ab1653eea26f873b295a7350bd0dbb9ac"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a9d29685403eb2948a01acbda7787ad5c">modelChanged</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method called whenever the entire model was changed.  <a href="#a9d29685403eb2948a01acbda7787ad5c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a171e964386bbb9db15d0eba58ce57b68">modelReset</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method called whenever the entire model was reset.  <a href="#a171e964386bbb9db15d0eba58ce57b68"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a2e84917071b1a77361375713e424c2d8">modelColumnsInserted</a> (const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;parent, int start, int end)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method called when colums have been inserted in the model.  <a href="#a2e84917071b1a77361375713e424c2d8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a8c7417d6962e60c3d18da332a67149ba">modelColumnsRemoved</a> (const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;parent, int start, int end)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method called when colums have been removed from the model.  <a href="#a8c7417d6962e60c3d18da332a67149ba"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a7d189d82d85c24be23bac4d8ab21223a">modelRowsInserted</a> (const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;parent, int start, int end)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method called when rows have been inserted from the model.  <a href="#a7d189d82d85c24be23bac4d8ab21223a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a8c9668712e4b19567a3959227ae0f8ae">modelRowsRemoved</a> (const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;parent, int start, int end)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method called when rows have been removed from the model.  <a href="#a8c9668712e4b19567a3959227ae0f8ae"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#abf017e24778b35d2e5d4d1054147ed8b">modelDataChanged</a> (const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;topLeft, const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;bottomRight)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method called when data has been changed in the model.  <a href="#abf017e24778b35d2e5d4d1054147ed8b"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A pie chart. </p>
<p>A pie chart renders a single data series as segments of a circle, so that the area of each segment is proportional to the value in the data series.</p>
<p>To use a pie chart, you need to set a model using <a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#aa23d116689e939301470398df8ad5c8b" title="Set the model.">setModel()</a>, and use <a class="el" href="classWt_1_1Chart_1_1WPieChart.html#aa40bfd3f2095106f8081596b235de4c6" title="Sets the model column that holds the labels.">setLabelsColumn()</a> and <a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a3692ea22a1417e599e9358b0ed5a723d" title="Sets the model column that holds the data.">setDataColumn()</a> to specify the model column that contains the category labels and data.</p>
<p>The pie chart may be customized visually by enabling a 3D effect (<a class="el" href="classWt_1_1Chart_1_1WPieChart.html#ae36d57f4c2801cb8599a1bc99e340a24" title="Enables a 3D perspective effect on the pie.">setPerspectiveEnabled()</a>), or by specifying the angle of the first segment. One or more segments may be exploded, which seperates the segment from the rest of the pie chart, using <a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a4a2bfe0c147b5433d340d49351b5032c" title="Sets the explosion factor for a pie segment.">setExplode()</a>.</p>
<p>The segments may be labeled in various ways using <a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a89324f6159e5893e1ddd368718d00e5d" title="Configures if and how labels should be displayed.">setDisplayLabels()</a>.</p>
<h3>CSS</h3>
<p>Styling through CSS is not applicable.</p>
<div class="image">
<img src="ChartWPieChart-1.png" alt="ChartWPieChart-1.png"/>
<div class="caption">
Example of a pie chart</div></div>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html" title="A cartesian chart.">WCartesianChart</a> </dd></dl>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a566d64a04ee31771c99e399c4cf15c4e"></a><!-- doxytag: member="Wt::Chart::WPieChart::addDataPointArea" ref="a566d64a04ee31771c99e399c4cf15c4e" args="(const WModelIndex &amp;index, WAbstractArea *area) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WPieChart::addDataPointArea </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWt_1_1WAbstractArea.html">WAbstractArea</a> *&#160;</td>
          <td class="paramname"><em>area</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a data point area (used for displaying e.g. tooltips). </p>
<p>You may want to specialize this is if you wish to modify (or delete) the area.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>Currently, an area is only created if the ToolTipRole data at the data point is not empty. </dd></dl>

</div>
</div>
<a class="anchor" id="af304b94ab8892fd17d0af98259a709af"></a><!-- doxytag: member="Wt::Chart::WPieChart::avoidLabelRendering" ref="af304b94ab8892fd17d0af98259a709af" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Wt::Chart::WPieChart::avoidLabelRendering </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the percentage to avoid label rendering. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#aa573182ef1ba641315f3d2bf5899784f" title="Sets the percentage value to avoid rendering of label texts.">setAvoidLabelRendering(double)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a6063464c0a664943d747b344e8383b5c"></a><!-- doxytag: member="Wt::Chart::WPieChart::brush" ref="a6063464c0a664943d747b344e8383b5c" args="(int modelRow) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WBrush.html">WBrush</a> Wt::Chart::WPieChart::brush </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>modelRow</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the brush used for a pie segment. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#af0fc06d47e2b717f1faeae80926d068c" title="Customizes the brush used for a pie segment.">setBrush(int, const WBrush&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ac4e58ff2d6c698bfa4a52f6347dff654"></a><!-- doxytag: member="Wt::Chart::WPieChart::createLegendItemWidget" ref="ac4e58ff2d6c698bfa4a52f6347dff654" args="(int index, WFlags&lt; LabelOption &gt; options)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> * Wt::Chart::WPieChart::createLegendItemWidget </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WFlags&lt; <a class="el" href="group__charts.html#ga9345394a8eeda6800d8a24c5df44d983">LabelOption</a> &gt;&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a widget which renders the a legend item. </p>
<p>Depending on the passed LabelOption flags, the legend item widget, will contain a text (with or without the percentage) and/or a span with the segment's color. </p>

</div>
</div>
<a class="anchor" id="a5d88b01950313351cfb38821d8c8bc2c"></a><!-- doxytag: member="Wt::Chart::WPieChart::dataColumn" ref="a5d88b01950313351cfb38821d8c8bc2c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::Chart::WPieChart::dataColumn </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the model column used for the data. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a3692ea22a1417e599e9358b0ed5a723d" title="Sets the model column that holds the data.">setDataColumn(int)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a448e016c20ffc0c15d707cf69081f5d4"></a><!-- doxytag: member="Wt::Chart::WPieChart::displayLabels" ref="a448e016c20ffc0c15d707cf69081f5d4" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">WFlags&lt;<a class="el" href="group__charts.html#ga9345394a8eeda6800d8a24c5df44d983">LabelOption</a>&gt; Wt::Chart::WPieChart::displayLabels </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns options set for displaying labels. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a89324f6159e5893e1ddd368718d00e5d" title="Configures if and how labels should be displayed.">WPieChart::setDisplayLabels()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ae4873101c6d49b858e665f88182b0361"></a><!-- doxytag: member="Wt::Chart::WPieChart::explode" ref="ae4873101c6d49b858e665f88182b0361" args="(int modelRow) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Wt::Chart::WPieChart::explode </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>modelRow</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the explosion factor for a segment. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a4a2bfe0c147b5433d340d49351b5032c" title="Sets the explosion factor for a pie segment.">setExplode(int, double)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a448d52119f7422ec0893261980e7e880"></a><!-- doxytag: member="Wt::Chart::WPieChart::isPerspectiveEnabled" ref="a448d52119f7422ec0893261980e7e880" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::Chart::WPieChart::isPerspectiveEnabled </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns whether a 3D effect is enabled. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#ae36d57f4c2801cb8599a1bc99e340a24" title="Enables a 3D perspective effect on the pie.">setPerspectiveEnabled(bool, double)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a1738f01efbd4c3b34956d2e42096580f"></a><!-- doxytag: member="Wt::Chart::WPieChart::isShadowEnabled" ref="a1738f01efbd4c3b34956d2e42096580f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::Chart::WPieChart::isShadowEnabled </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns whether a shadow effect is enabled. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a74b91c0514247ba9ea91b53fbae795f7" title="Enables a shadow effect.">setShadowEnabled()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a9029c0a18c84558da2b36089dfb7fa3d"></a><!-- doxytag: member="Wt::Chart::WPieChart::labelsColumn" ref="a9029c0a18c84558da2b36089dfb7fa3d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::Chart::WPieChart::labelsColumn </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the model column used for the labels. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#aa40bfd3f2095106f8081596b235de4c6" title="Sets the model column that holds the labels.">setLabelsColumn(int)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a9d29685403eb2948a01acbda7787ad5c"></a><!-- doxytag: member="Wt::Chart::WPieChart::modelChanged" ref="a9d29685403eb2948a01acbda7787ad5c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WPieChart::modelChanged </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method called whenever the entire model was changed. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#aa23d116689e939301470398df8ad5c8b" title="Set the model.">setModel(WAbstractItemModel *)</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#a9e3df17843eedb5f32dc1407f115fca4">Wt::Chart::WAbstractChart</a>.</p>

</div>
</div>
<a class="anchor" id="a2e84917071b1a77361375713e424c2d8"></a><!-- doxytag: member="Wt::Chart::WPieChart::modelColumnsInserted" ref="a2e84917071b1a77361375713e424c2d8" args="(const WModelIndex &amp;parent, int start, int end)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WPieChart::modelColumnsInserted </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method called when colums have been inserted in the model. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#ac56221d07f5ef246f10dccc93756cb3c" title="Signal emitted after a number of columns were inserted.">WAbstractItemModel::columnsInserted</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#a12430c6057fb5d65458c4f8c9c42a034">Wt::Chart::WAbstractChart</a>.</p>

</div>
</div>
<a class="anchor" id="a8c7417d6962e60c3d18da332a67149ba"></a><!-- doxytag: member="Wt::Chart::WPieChart::modelColumnsRemoved" ref="a8c7417d6962e60c3d18da332a67149ba" args="(const WModelIndex &amp;parent, int start, int end)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WPieChart::modelColumnsRemoved </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method called when colums have been removed from the model. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#a2aecbfc4363903aed6d3ce4d176c82d0" title="Signal emitted after a number of columns were removed.">WAbstractItemModel::columnsRemoved</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#ad235f839f2e46152ff41fda54a29cea7">Wt::Chart::WAbstractChart</a>.</p>

</div>
</div>
<a class="anchor" id="abf017e24778b35d2e5d4d1054147ed8b"></a><!-- doxytag: member="Wt::Chart::WPieChart::modelDataChanged" ref="abf017e24778b35d2e5d4d1054147ed8b" args="(const WModelIndex &amp;topLeft, const WModelIndex &amp;bottomRight)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WPieChart::modelDataChanged </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&#160;</td>
          <td class="paramname"><em>topLeft</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&#160;</td>
          <td class="paramname"><em>bottomRight</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method called when data has been changed in the model. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#aa074e5bc55394252a609ef17d071b563" title="Signal emitted when some data was changed.">WAbstractItemModel::dataChanged</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#aec6e96688e308aec05cdf3bf085837e2">Wt::Chart::WAbstractChart</a>.</p>

</div>
</div>
<a class="anchor" id="a171e964386bbb9db15d0eba58ce57b68"></a><!-- doxytag: member="Wt::Chart::WPieChart::modelReset" ref="a171e964386bbb9db15d0eba58ce57b68" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WPieChart::modelReset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method called whenever the entire model was reset. </p>
<p>Bound to the <a class="el" href="classWt_1_1WAbstractItemModel.html#ae28a4ba2ce1dd93e7479dfa152a65efc" title="Signal emitted when the model was reset.">WAbstractItemModel::modelReset()</a> and <a class="el" href="classWt_1_1WAbstractItemModel.html#afe7cb1d5186881f83aa8f0e452aaef66" title="Signal emitted when the layout is changed.">WAbstractItemModel::layoutChanged()</a> signals. </p>

<p>Reimplemented from <a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#abf2d10492352754f92dc11cea27625cb">Wt::Chart::WAbstractChart</a>.</p>

</div>
</div>
<a class="anchor" id="a7d189d82d85c24be23bac4d8ab21223a"></a><!-- doxytag: member="Wt::Chart::WPieChart::modelRowsInserted" ref="a7d189d82d85c24be23bac4d8ab21223a" args="(const WModelIndex &amp;parent, int start, int end)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WPieChart::modelRowsInserted </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method called when rows have been inserted from the model. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#a54c971088bb9b424f97fe31c17f8f12f" title="Signal emitted after a number of rows were inserted.">WAbstractItemModel::rowsInserted</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#a69ef1dd5294dbd1de8f6ada34d96af45">Wt::Chart::WAbstractChart</a>.</p>

</div>
</div>
<a class="anchor" id="a8c9668712e4b19567a3959227ae0f8ae"></a><!-- doxytag: member="Wt::Chart::WPieChart::modelRowsRemoved" ref="a8c9668712e4b19567a3959227ae0f8ae" args="(const WModelIndex &amp;parent, int start, int end)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WPieChart::modelRowsRemoved </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method called when rows have been removed from the model. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#a0f73bbfb08f2739ac12881f62a61bc7f" title="Signal emitted after a number of rows were removed.">WAbstractItemModel::rowsRemoved</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#a1857420ee055502380caa45446e5c0c4">Wt::Chart::WAbstractChart</a>.</p>

</div>
</div>
<a class="anchor" id="a3929b0fc7d0b71f06809207b3d34df08"></a><!-- doxytag: member="Wt::Chart::WPieChart::paint" ref="a3929b0fc7d0b71f06809207b3d34df08" args="(WPainter &amp;painter, const WRectF &amp;rectangle=WRectF()) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WPieChart::paint </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WPainter.html">WPainter</a> &amp;&#160;</td>
          <td class="paramname"><em>painter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&#160;</td>
          <td class="paramname"><em>rectangle</em> = <code><a class="el" href="classWt_1_1WRectF.html">WRectF</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Paint the chart in a rectangle of the given painter. </p>
<p>Paints the chart inside the <em>painter</em>, in the area indicated by <em>rectangle</em>. When <em>rectangle</em> is a null rectangle, the entire painter <a class="el" href="classWt_1_1WPainter.html#a0bcac25d9328887ed15669b4a4ae52de">window</a> is used. </p>

<p>Implements <a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#af642c65474e95ec0969906d8d31e2862">Wt::Chart::WAbstractChart</a>.</p>

</div>
</div>
<a class="anchor" id="ab1653eea26f873b295a7350bd0dbb9ac"></a><!-- doxytag: member="Wt::Chart::WPieChart::paintEvent" ref="ab1653eea26f873b295a7350bd0dbb9ac" args="(Wt::WPaintDevice *paintDevice)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WPieChart::paintEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WPaintDevice.html">Wt::WPaintDevice</a> *&#160;</td>
          <td class="paramname"><em>paintDevice</em></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Paints the widget. </p>
<p>You should reimplement this method to paint the contents of the widget, using the given paintDevice. </p>

<p>Implements <a class="el" href="classWt_1_1WPaintedWidget.html#ad8ce22eff41754c8616f45851f57fb1a">Wt::WPaintedWidget</a>.</p>

</div>
</div>
<a class="anchor" id="aa573182ef1ba641315f3d2bf5899784f"></a><!-- doxytag: member="Wt::Chart::WPieChart::setAvoidLabelRendering" ref="aa573182ef1ba641315f3d2bf5899784f" args="(double percent)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WPieChart::setAvoidLabelRendering </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>percent</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the percentage value to avoid rendering of label texts. </p>
<p>The default value is 0 percent. </p>

</div>
</div>
<a class="anchor" id="af0fc06d47e2b717f1faeae80926d068c"></a><!-- doxytag: member="Wt::Chart::WPieChart::setBrush" ref="af0fc06d47e2b717f1faeae80926d068c" args="(int modelRow, const WBrush &amp;brush)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WPieChart::setBrush </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>modelRow</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WBrush.html">WBrush</a> &amp;&#160;</td>
          <td class="paramname"><em>brush</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Customizes the brush used for a pie segment. </p>
<p>By default, the brush is taken from the <a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#a29320100617c0a195904c89874fcc7f3" title="Returns the palette for the chart.">palette()</a>. You can use this method to override the palette's brush for a particular <em>modelRow</em>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#a044936e6358c8efc55699effc4b946d8" title="Set a palette for the chart.">setPalette(WChartPalette *)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a3692ea22a1417e599e9358b0ed5a723d"></a><!-- doxytag: member="Wt::Chart::WPieChart::setDataColumn" ref="a3692ea22a1417e599e9358b0ed5a723d" args="(int modelColumn)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WPieChart::setDataColumn </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>modelColumn</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the model column that holds the data. </p>
<p>The data column should contain data that can be converted to a number, but should not necessarily be of a number type, see also <a class="el" href="group__modelview.html#ga2494f8093b2b8f2f9c0aa7699e7bfc2a" title="Interprets a boost::any as a number value.">asNumber(const boost::any&amp;)</a>.</p>
<p>The default value is -1 (not defined).</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#aa23d116689e939301470398df8ad5c8b" title="Set the model.">setModel(WAbstractItemModel *)</a>, <a class="el" href="classWt_1_1Chart_1_1WPieChart.html#aa40bfd3f2095106f8081596b235de4c6" title="Sets the model column that holds the labels.">setLabelsColumn(int)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a89324f6159e5893e1ddd368718d00e5d"></a><!-- doxytag: member="Wt::Chart::WPieChart::setDisplayLabels" ref="a89324f6159e5893e1ddd368718d00e5d" args="(WFlags&lt; LabelOption &gt; options)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WPieChart::setDisplayLabels </td>
          <td>(</td>
          <td class="paramtype">WFlags&lt; <a class="el" href="group__charts.html#ga9345394a8eeda6800d8a24c5df44d983">LabelOption</a> &gt;&#160;</td>
          <td class="paramname"><em>options</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Configures if and how labels should be displayed. </p>
<p>The <em>options</em> must be the logical OR of a placement option (<a class="el" href="group__charts.html#gga9345394a8eeda6800d8a24c5df44d983aeb92488c13b0ccc46cddbb3445007443">Inside</a> or <a class="el" href="group__charts.html#gga9345394a8eeda6800d8a24c5df44d983a88861128e109b6a63e76a311dc57e408">Outside</a>) and <a class="el" href="group__charts.html#gga9345394a8eeda6800d8a24c5df44d983a60df9add81425373c20fafe8c4e40b0e">TextLabel</a> and/or <a class="el" href="group__charts.html#gga9345394a8eeda6800d8a24c5df44d983a307741727c5ef5e33efcd347a0853e50">TextPercentage</a>. If both TextLabel and TextPercentage are specified, then these are combined as "&lt;label&gt;: &lt;percentage&gt;".</p>
<p>The default value is <a class="el" href="group__charts.html#gga9345394a8eeda6800d8a24c5df44d983a866d745e727785c20e31d5ea76bb58a3">NoLabels</a>. </p>

</div>
</div>
<a class="anchor" id="a4a2bfe0c147b5433d340d49351b5032c"></a><!-- doxytag: member="Wt::Chart::WPieChart::setExplode" ref="a4a2bfe0c147b5433d340d49351b5032c" args="(int modelRow, double factor)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WPieChart::setExplode </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>modelRow</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>factor</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the explosion factor for a pie segment. </p>
<p>Separates the segment corresponding to model row <em>modelRow</em> from the rest of the pie. The <em>factor</em> is a positive number that represents the distance from the center as a fraction of the pie radius. Thus, 0 corresponds to no separation, and 0.1 to a 10% separation, and 1 to a separation where the segment tip is on the outer perimeter of the pie.</p>
<p>The default value is 0. </p>

</div>
</div>
<a class="anchor" id="aa40bfd3f2095106f8081596b235de4c6"></a><!-- doxytag: member="Wt::Chart::WPieChart::setLabelsColumn" ref="aa40bfd3f2095106f8081596b235de4c6" args="(int column)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WPieChart::setLabelsColumn </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>column</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the model column that holds the labels. </p>
<p>The labels are used only when <a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a89324f6159e5893e1ddd368718d00e5d" title="Configures if and how labels should be displayed.">setDisplayLabels()</a> is called with the <a class="el" href="group__charts.html#gga9345394a8eeda6800d8a24c5df44d983a60df9add81425373c20fafe8c4e40b0e">TextLabel</a> option.</p>
<p>The default value is -1 (not defined).</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#aa23d116689e939301470398df8ad5c8b" title="Set the model.">setModel(WAbstractItemModel *)</a>, <a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a89324f6159e5893e1ddd368718d00e5d" title="Configures if and how labels should be displayed.">setDisplayLabels()</a>, <a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a3692ea22a1417e599e9358b0ed5a723d" title="Sets the model column that holds the data.">setDataColumn(int)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ae36d57f4c2801cb8599a1bc99e340a24"></a><!-- doxytag: member="Wt::Chart::WPieChart::setPerspectiveEnabled" ref="ae36d57f4c2801cb8599a1bc99e340a24" args="(bool enabled, double height=1.0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WPieChart::setPerspectiveEnabled </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enabled</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>height</em> = <code>1.0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Enables a 3D perspective effect on the pie. </p>
<p>A 3D perspective effect is added, which may be customized by specifying the simulated <em>height</em> of the pie. The height is defined as a fraction of the pie radius.</p>
<p>The default value is false. </p>

</div>
</div>
<a class="anchor" id="a74b91c0514247ba9ea91b53fbae795f7"></a><!-- doxytag: member="Wt::Chart::WPieChart::setShadowEnabled" ref="a74b91c0514247ba9ea91b53fbae795f7" args="(bool enabled)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WPieChart::setShadowEnabled </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enabled</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Enables a shadow effect. </p>
<p>A soft shadow effect is added.</p>
<p>The default value is false. </p>

</div>
</div>
<a class="anchor" id="a407707a2ab0b2c56500e35da85e619a5"></a><!-- doxytag: member="Wt::Chart::WPieChart::setStartAngle" ref="a407707a2ab0b2c56500e35da85e619a5" args="(double degrees)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WPieChart::setStartAngle </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>degrees</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the angle of the first segment. </p>
<p>The default value is 45 degrees. </p>

</div>
</div>
<a class="anchor" id="af2d62e836a60f28755218921fc0e4b90"></a><!-- doxytag: member="Wt::Chart::WPieChart::startAngle" ref="af2d62e836a60f28755218921fc0e4b90" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Wt::Chart::WPieChart::startAngle </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the angle of the first segment. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WPieChart.html#a407707a2ab0b2c56500e35da85e619a5" title="Sets the angle of the first segment.">setStartAngle(double)</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>