Sophie

Sophie

distrib > Mandriva > cooker > i586 > by-pkgid > 76bdad05b5dca2a491582dbec0713d55 > files > 1041

libqwt-devel-6.0.1-2.i586.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>Qwt User&#39;s Guide: qwt_symbol.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Qwt User's Guide&#160;<span id="projectnumber">6.0.1</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <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="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>qwt_symbol.h</h1>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- mode: C++ ; c-file-style: &quot;stroustrup&quot; -*- *****************************</span>
<a name="l00002"></a>00002 <span class="comment"> * Qwt Widget Library</span>
<a name="l00003"></a>00003 <span class="comment"> * Copyright (C) 1997   Josef Wilgen</span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (C) 2002   Uwe Rathmann</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
<a name="l00007"></a>00007 <span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span>
<a name="l00008"></a>00008 <span class="comment"> *****************************************************************************/</span>
<a name="l00009"></a>00009 
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef QWT_SYMBOL_H</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define QWT_SYMBOL_H</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &quot;qwt_global.h&quot;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;QPolygonF&gt;</span>
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="keyword">class </span>QPainter;
<a name="l00017"></a>00017 <span class="keyword">class </span>QRect;
<a name="l00018"></a>00018 <span class="keyword">class </span>QSize;
<a name="l00019"></a>00019 <span class="keyword">class </span>QBrush;
<a name="l00020"></a>00020 <span class="keyword">class </span>QPen;
<a name="l00021"></a>00021 <span class="keyword">class </span>QColor;
<a name="l00022"></a>00022 <span class="keyword">class </span>QPointF;
<a name="l00023"></a>00023 
<a name="l00025"></a><a class="code" href="class_qwt_symbol.html">00025</a> <span class="keyword">class </span>QWT_EXPORT <a class="code" href="class_qwt_symbol.html" title="A class for drawing symbols.">QwtSymbol</a>
<a name="l00026"></a>00026 {
<a name="l00027"></a>00027 <span class="keyword">public</span>:
<a name="l00032"></a><a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2f">00032</a>     <span class="keyword">enum</span> <a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2f">Style</a>
<a name="l00033"></a>00033     {
<a name="l00035"></a><a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fac3089b3993834683204a7bda52e763d3">00035</a>         NoSymbol = -1,
<a name="l00036"></a>00036 
<a name="l00038"></a><a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fa09e1d50ec759311a76c158f69149fa44">00038</a>         <a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fa09e1d50ec759311a76c158f69149fa44" title="Ellipse or circle.">Ellipse</a>,
<a name="l00039"></a>00039 
<a name="l00041"></a><a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fa3c5d3b8c39e11cc10c6f0c8176bbd235">00041</a>         <a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fa3c5d3b8c39e11cc10c6f0c8176bbd235" title="Rectangle.">Rect</a>,
<a name="l00042"></a>00042 
<a name="l00044"></a><a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fa952136b2f18abfe1b4712ce9de84dbf4">00044</a>         <a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fa952136b2f18abfe1b4712ce9de84dbf4" title="Diamond.">Diamond</a>,
<a name="l00045"></a>00045 
<a name="l00047"></a><a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fa559fad30c36d3e3e2ecad4a21122be79">00047</a>         <a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fa559fad30c36d3e3e2ecad4a21122be79" title="Triangle pointing upwards.">Triangle</a>,
<a name="l00048"></a>00048 
<a name="l00050"></a><a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fad8ea4408d80512825a2700b4968f1715">00050</a>         <a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fad8ea4408d80512825a2700b4968f1715" title="Triangle pointing downwards.">DTriangle</a>,
<a name="l00051"></a>00051 
<a name="l00053"></a><a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fabf99d9afabd98be69e2ee377bbfa85bf">00053</a>         <a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fabf99d9afabd98be69e2ee377bbfa85bf" title="Triangle pointing upwards.">UTriangle</a>,
<a name="l00054"></a>00054 
<a name="l00056"></a><a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fa228f6d48261e8b6bc9981370ae65f5e5">00056</a>         <a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fa228f6d48261e8b6bc9981370ae65f5e5" title="Triangle pointing left.">LTriangle</a>,
<a name="l00057"></a>00057 
<a name="l00059"></a><a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2faeb6111f6fc1813efb466687309c873bd">00059</a>         <a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2faeb6111f6fc1813efb466687309c873bd" title="Triangle pointing right.">RTriangle</a>,
<a name="l00060"></a>00060 
<a name="l00062"></a><a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fab75eff873d34264d84a55cb94b603fef">00062</a>         <a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fab75eff873d34264d84a55cb94b603fef" title="Cross (+)">Cross</a>,
<a name="l00063"></a>00063 
<a name="l00065"></a><a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2faa734e8b9433131230af5d8c319b5529e">00065</a>         <a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2faa734e8b9433131230af5d8c319b5529e" title="Diagonal cross (X)">XCross</a>,
<a name="l00066"></a>00066 
<a name="l00068"></a><a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fa3bc949e0e38ccaf908bb58c7c177f7f6">00068</a>         <a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fa3bc949e0e38ccaf908bb58c7c177f7f6" title="Horizontal line.">HLine</a>,
<a name="l00069"></a>00069 
<a name="l00071"></a><a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fa041fb14668884dd95527a34beab22fd8">00071</a>         <a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fa041fb14668884dd95527a34beab22fd8" title="Vertical line.">VLine</a>,
<a name="l00072"></a>00072 
<a name="l00074"></a><a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fa358acf734d29ba274e9f08fa555d8bf5">00074</a>         <a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fa358acf734d29ba274e9f08fa555d8bf5" title="X combined with +.">Star1</a>,
<a name="l00075"></a>00075 
<a name="l00077"></a><a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2faee962f0906b5571b20737d8aee796f80">00077</a>         <a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2faee962f0906b5571b20737d8aee796f80" title="Six-pointed star.">Star2</a>,
<a name="l00078"></a>00078 
<a name="l00080"></a><a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fa8bf81a46e1ee93ea3d8d8c8990b72f36">00080</a>         <a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2fa8bf81a46e1ee93ea3d8d8c8990b72f36" title="Hexagon.">Hexagon</a>,
<a name="l00081"></a>00081 
<a name="l00087"></a><a class="code" href="class_qwt_symbol.html#a62f457952470c2076962e83ef2c24d2faed4c49ccbda1c85bdc6ea399e8d8cca8">00087</a>         UserStyle = 1000
<a name="l00088"></a>00088     };
<a name="l00089"></a>00089 
<a name="l00090"></a>00090 <span class="keyword">public</span>:
<a name="l00091"></a>00091     <a class="code" href="class_qwt_symbol.html" title="A class for drawing symbols.">QwtSymbol</a>( Style = NoSymbol );
<a name="l00092"></a>00092     <a class="code" href="class_qwt_symbol.html" title="A class for drawing symbols.">QwtSymbol</a>( Style, <span class="keyword">const</span> QBrush &amp;, <span class="keyword">const</span> QPen &amp;, <span class="keyword">const</span> QSize &amp; );
<a name="l00093"></a>00093     <a class="code" href="class_qwt_symbol.html" title="A class for drawing symbols.">QwtSymbol</a>( <span class="keyword">const</span> <a class="code" href="class_qwt_symbol.html" title="A class for drawing symbols.">QwtSymbol</a> &amp; );
<a name="l00094"></a>00094     <span class="keyword">virtual</span> ~<a class="code" href="class_qwt_symbol.html" title="A class for drawing symbols.">QwtSymbol</a>();
<a name="l00095"></a>00095 
<a name="l00096"></a>00096     <a class="code" href="class_qwt_symbol.html" title="A class for drawing symbols.">QwtSymbol</a> &amp;operator=( <span class="keyword">const</span> <a class="code" href="class_qwt_symbol.html" title="A class for drawing symbols.">QwtSymbol</a> &amp; );
<a name="l00097"></a>00097     <span class="keywordtype">bool</span> operator==( <span class="keyword">const</span> <a class="code" href="class_qwt_symbol.html" title="A class for drawing symbols.">QwtSymbol</a> &amp; ) <span class="keyword">const</span>;
<a name="l00098"></a>00098     <span class="keywordtype">bool</span> operator!=( <span class="keyword">const</span> <a class="code" href="class_qwt_symbol.html" title="A class for drawing symbols.">QwtSymbol</a> &amp; ) <span class="keyword">const</span>;
<a name="l00099"></a>00099 
<a name="l00100"></a>00100     <span class="keywordtype">void</span> setSize( <span class="keyword">const</span> QSize &amp; );
<a name="l00101"></a>00101     <span class="keywordtype">void</span> setSize( <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height = -1 );
<a name="l00102"></a>00102     <span class="keyword">const</span> QSize&amp; size() <span class="keyword">const</span>;
<a name="l00103"></a>00103 
<a name="l00104"></a>00104     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setColor( <span class="keyword">const</span> QColor &amp; );
<a name="l00105"></a>00105 
<a name="l00106"></a>00106     <span class="keywordtype">void</span> setBrush( <span class="keyword">const</span> QBrush&amp; b );
<a name="l00107"></a>00107     <span class="keyword">const</span> QBrush&amp; brush() <span class="keyword">const</span>;
<a name="l00108"></a>00108 
<a name="l00109"></a>00109     <span class="keywordtype">void</span> setPen( <span class="keyword">const</span> QPen &amp; );
<a name="l00110"></a>00110     <span class="keyword">const</span> QPen&amp; pen() <span class="keyword">const</span>;
<a name="l00111"></a>00111 
<a name="l00112"></a>00112     <span class="keywordtype">void</span> setStyle( Style );
<a name="l00113"></a>00113     Style style() <span class="keyword">const</span>;
<a name="l00114"></a>00114 
<a name="l00115"></a>00115     <span class="keywordtype">void</span> drawSymbol( QPainter *, <span class="keyword">const</span> QPointF &amp; ) <span class="keyword">const</span>;
<a name="l00116"></a>00116     <span class="keywordtype">void</span> drawSymbols( QPainter *, <span class="keyword">const</span> QPolygonF &amp; ) <span class="keyword">const</span>;
<a name="l00117"></a>00117 
<a name="l00118"></a>00118     <span class="keyword">virtual</span> QSize boundingSize() <span class="keyword">const</span>;
<a name="l00119"></a>00119 
<a name="l00120"></a>00120 <span class="keyword">protected</span>:
<a name="l00121"></a>00121     <span class="keyword">virtual</span> <span class="keywordtype">void</span> drawSymbols( QPainter *,
<a name="l00122"></a>00122         <span class="keyword">const</span> QPointF *, <span class="keywordtype">int</span> numPoints ) <span class="keyword">const</span>;
<a name="l00123"></a>00123 
<a name="l00124"></a>00124 <span class="keyword">private</span>:
<a name="l00125"></a>00125     <span class="keyword">class </span>PrivateData;
<a name="l00126"></a>00126     PrivateData *d_data;
<a name="l00127"></a>00127 };
<a name="l00128"></a>00128 
<a name="l00135"></a><a class="code" href="class_qwt_symbol.html#a3403db40a12f2f79f79616cf858ecb1f">00135</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="class_qwt_symbol.html#a3403db40a12f2f79f79616cf858ecb1f" title="Draw the symbol at a specified position.">QwtSymbol::drawSymbol</a>(
<a name="l00136"></a>00136     QPainter *painter, <span class="keyword">const</span> QPointF &amp;pos )<span class="keyword"> const</span>
<a name="l00137"></a>00137 <span class="keyword"></span>{
<a name="l00138"></a>00138     <a class="code" href="class_qwt_symbol.html#a249740d6f7e6315e3de0ce6f7ad7020d" title="Draw symbols at the specified points.">drawSymbols</a>( painter, &amp;pos, 1 );
<a name="l00139"></a>00139 }
<a name="l00140"></a>00140 
<a name="l00148"></a><a class="code" href="class_qwt_symbol.html#a249740d6f7e6315e3de0ce6f7ad7020d">00148</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="class_qwt_symbol.html#a249740d6f7e6315e3de0ce6f7ad7020d" title="Draw symbols at the specified points.">QwtSymbol::drawSymbols</a>(
<a name="l00149"></a>00149     QPainter *painter, <span class="keyword">const</span> QPolygonF &amp;points )<span class="keyword"> const</span>
<a name="l00150"></a>00150 <span class="keyword"></span>{
<a name="l00151"></a>00151     <a class="code" href="class_qwt_symbol.html#a249740d6f7e6315e3de0ce6f7ad7020d" title="Draw symbols at the specified points.">drawSymbols</a>( painter, points.data(), points.size() );
<a name="l00152"></a>00152 }
<a name="l00153"></a>00153 
<a name="l00154"></a>00154 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>