<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>VTK: vtkQtChartColorStyleGenerator Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.6 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>vtkQtChartColorStyleGenerator Class Reference</h1><!-- doxytag: class="vtkQtChartColorStyleGenerator" --><!-- doxytag: inherits="vtkQtChartStyleGenerator" --><code>#include <<a class="el" href="a04520.html">vtkQtChartColorStyleGenerator.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for vtkQtChartColorStyleGenerator:</div> <div class="dynsection"> <p><center><img src="a13600.png" border="0" usemap="#a13601" alt="Inheritance graph"></center> <map name="a13601"> <area shape="rect" href="a01387.html" title="The vtkQtChartStyleGenerator class is the base class for all series options generators..." alt="" coords="23,5,201,32"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <div class="dynheader"> Collaboration diagram for vtkQtChartColorStyleGenerator:</div> <div class="dynsection"> <p><center><img src="a13602.png" border="0" usemap="#a13603" alt="Collaboration graph"></center> <map name="a13603"> <area shape="rect" href="a01387.html" title="The vtkQtChartStyleGenerator class is the base class for all series options generators..." alt="" coords="5,5,184,32"><area shape="rect" href="a01346.html" title="The vtkQtChartColors class stores a list of colors." alt="" coords="208,5,336,32"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="a13604.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> The <a class="el" href="a01347.html" title="The vtkQtChartColorStyleGenerator class generates series drawing options using color...">vtkQtChartColorStyleGenerator</a> class generates series drawing options using color and pen style. <p> <p>Definition at line <a class="el" href="a04520.html#l00038">38</a> of file <a class="el" href="a04520.html">vtkQtChartColorStyleGenerator.h</a>.</p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a01347.html#420159e068782175773dbf26de661e01">vtkQtChartColorStyleGenerator</a> (QObject *parent=0, <a class="el" href="a01346.html#fde0e75f17c0354c614cbc123b719440">vtkQtChartColors::ColorScheme</a> scheme=vtkQtChartColors::Spectrum)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a color/style generator. <a href="#420159e068782175773dbf26de661e01"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="a01347.html#cd43a83a0339eda9e1d69f9dc60c2f45">~vtkQtChartColorStyleGenerator</a> ()</td></tr> <tr><td colspan="2"><div class="groupHeader">vtkQtChartStyleGenerator Methods</div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QBrush </td><td class="memItemRight" valign="bottom"><a class="el" href="a01347.html#ccfc754d7562fac4634db5b63e06751b">getSeriesBrush</a> (int index) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the brush for the specified series index. <a href="#ccfc754d7562fac4634db5b63e06751b"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QPen </td><td class="memItemRight" valign="bottom"><a class="el" href="a01347.html#1f6301d891fa6dfd5feb7e044004b3b6">getSeriesPen</a> (int index) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the pen for the specified series index. <a href="#1f6301d891fa6dfd5feb7e044004b3b6"></a><br></td></tr> <tr><td colspan="2"><div class="groupHeader">Color Methods</div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="a01346.html">vtkQtChartColors</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a01347.html#0d44f9a2885a11c07fa8f9e1e5838c87">getColors</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the list of colors. <a href="#0d44f9a2885a11c07fa8f9e1e5838c87"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="a01346.html">vtkQtChartColors</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a01347.html#ce419cb5b1227589e5921e95bc9cad16">getColors</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the list of colors. <a href="#ce419cb5b1227589e5921e95bc9cad16"></a><br></td></tr> <tr><td colspan="2"><div class="groupHeader">Pen Style Methods</div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="a01347.html#8a3d84ae3994fa71005825a84fe499e6">getNumberOfStyles</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the number of pen styles in the style list. <a href="#8a3d84ae3994fa71005825a84fe499e6"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">Qt::PenStyle </td><td class="memItemRight" valign="bottom"><a class="el" href="a01347.html#5be647f67445f283966999e0bed67b4a">getPenStyle</a> (int index) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets a pen style from the pen styles list. <a href="#5be647f67445f283966999e0bed67b4a"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a01347.html#5ba6ac8ed501157b7dd68dbbbca41c5e">setPenStyle</a> (int index, Qt::PenStyle style)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the pen style for the given index. <a href="#5ba6ac8ed501157b7dd68dbbbca41c5e"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a01347.html#d444b1b2fc25cd023d493250c894fe8f">clearPenStyles</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Clears the list of pen styles. <a href="#d444b1b2fc25cd023d493250c894fe8f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a01347.html#5da3f45ab5287acec3a7a06ce6384e56">addPenStyle</a> (Qt::PenStyle style)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a pen style to the list of pen styles. <a href="#5da3f45ab5287acec3a7a06ce6384e56"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a01347.html#bef9bd57b29e7b04927724f165c86348">insertPenStyle</a> (int index, Qt::PenStyle style)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Inserts a new pen style into the list of pen styles. <a href="#bef9bd57b29e7b04927724f165c86348"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a01347.html#112f868e8e5fa7d90385f145947a9a78">removePenStyle</a> (int index)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Removes the pen style for the given index. <a href="#112f868e8e5fa7d90385f145947a9a78"></a><br></td></tr> </table> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="420159e068782175773dbf26de661e01"></a><!-- doxytag: member="vtkQtChartColorStyleGenerator::vtkQtChartColorStyleGenerator" ref="420159e068782175773dbf26de661e01" args="(QObject *parent=0, vtkQtChartColors::ColorScheme scheme=vtkQtChartColors::Spectrum)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">vtkQtChartColorStyleGenerator::vtkQtChartColorStyleGenerator </td> <td>(</td> <td class="paramtype">QObject * </td> <td class="paramname"> <em>parent</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="a01346.html#fde0e75f17c0354c614cbc123b719440">vtkQtChartColors::ColorScheme</a> </td> <td class="paramname"> <em>scheme</em> = <code>vtkQtChartColors::Spectrum</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Creates a color/style generator. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>parent</em> </td><td>The parent object. </td></tr> <tr><td valign="top"></td><td valign="top"><em>scheme</em> </td><td>The initial color scheme. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="cd43a83a0339eda9e1d69f9dc60c2f45"></a><!-- doxytag: member="vtkQtChartColorStyleGenerator::~vtkQtChartColorStyleGenerator" ref="cd43a83a0339eda9e1d69f9dc60c2f45" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual vtkQtChartColorStyleGenerator::~vtkQtChartColorStyleGenerator </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="ccfc754d7562fac4634db5b63e06751b"></a><!-- doxytag: member="vtkQtChartColorStyleGenerator::getSeriesBrush" ref="ccfc754d7562fac4634db5b63e06751b" args="(int index) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual QBrush vtkQtChartColorStyleGenerator::getSeriesBrush </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>index</em> </td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Gets the brush for the specified series index. <p> If the index is greater than the internal color list, the index will be wrapped around repeating the colors.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>index</em> </td><td>The series index. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The brush for the specified series index. </dd></dl> <p>Implements <a class="el" href="a01387.html#d224e593d0e365c9202b5f48813e5dfe">vtkQtChartStyleGenerator</a>.</p> </div> </div><p> <a class="anchor" name="1f6301d891fa6dfd5feb7e044004b3b6"></a><!-- doxytag: member="vtkQtChartColorStyleGenerator::getSeriesPen" ref="1f6301d891fa6dfd5feb7e044004b3b6" args="(int index) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual QPen vtkQtChartColorStyleGenerator::getSeriesPen </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>index</em> </td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Gets the pen for the specified series index. <p> If the index is greater than the internal color list, the index will be wrapped around repeating the colors. The repeated colors will have the next pen style in the list.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>index</em> </td><td>The series index. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The pen for the specified series index. </dd></dl> <p>Implements <a class="el" href="a01387.html#9d63c638f35a6865be949b9afe6b8a00">vtkQtChartStyleGenerator</a>.</p> </div> </div><p> <a class="anchor" name="0d44f9a2885a11c07fa8f9e1e5838c87"></a><!-- doxytag: member="vtkQtChartColorStyleGenerator::getColors" ref="0d44f9a2885a11c07fa8f9e1e5838c87" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="a01346.html">vtkQtChartColors</a>* vtkQtChartColorStyleGenerator::getColors </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Gets the list of colors. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>A pointer to the list of colors. </dd></dl> <p>Definition at line <a class="el" href="a04520.html#l00084">84</a> of file <a class="el" href="a04520.html">vtkQtChartColorStyleGenerator.h</a>.</p> </div> </div><p> <a class="anchor" name="ce419cb5b1227589e5921e95bc9cad16"></a><!-- doxytag: member="vtkQtChartColorStyleGenerator::getColors" ref="ce419cb5b1227589e5921e95bc9cad16" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="a01346.html">vtkQtChartColors</a>* vtkQtChartColorStyleGenerator::getColors </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Gets the list of colors. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>A pointer to the list of colors. </dd></dl> <p>Definition at line <a class="el" href="a04520.html#l00090">90</a> of file <a class="el" href="a04520.html">vtkQtChartColorStyleGenerator.h</a>.</p> </div> </div><p> <a class="anchor" name="8a3d84ae3994fa71005825a84fe499e6"></a><!-- doxytag: member="vtkQtChartColorStyleGenerator::getNumberOfStyles" ref="8a3d84ae3994fa71005825a84fe499e6" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int vtkQtChartColorStyleGenerator::getNumberOfStyles </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p> Gets the number of pen styles in the style list. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The number of pen styles in the style list. </dd></dl> </div> </div><p> <a class="anchor" name="5be647f67445f283966999e0bed67b4a"></a><!-- doxytag: member="vtkQtChartColorStyleGenerator::getPenStyle" ref="5be647f67445f283966999e0bed67b4a" args="(int index) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Qt::PenStyle vtkQtChartColorStyleGenerator::getPenStyle </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>index</em> </td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p> Gets a pen style from the pen styles list. <p> This method provides access to the list of styles. If the index is out of range, a default style will be returned.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>index</em> </td><td>The list index for the style. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The pen style for the given index. </dd></dl> <dl class="see" compact><dt><b>See also:</b></dt><dd>vtkQtChartStyleGenerator::getSeriesPen(int) </dd></dl> </div> </div><p> <a class="anchor" name="5ba6ac8ed501157b7dd68dbbbca41c5e"></a><!-- doxytag: member="vtkQtChartColorStyleGenerator::setPenStyle" ref="5ba6ac8ed501157b7dd68dbbbca41c5e" args="(int index, Qt::PenStyle style)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void vtkQtChartColorStyleGenerator::setPenStyle </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>index</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">Qt::PenStyle </td> <td class="paramname"> <em>style</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Sets the pen style for the given index. <p> This method does nothing if the index is out of range.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>index</em> </td><td>Which pen style to modify. </td></tr> <tr><td valign="top"></td><td valign="top"><em>style</em> </td><td>The new pen style. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="d444b1b2fc25cd023d493250c894fe8f"></a><!-- doxytag: member="vtkQtChartColorStyleGenerator::clearPenStyles" ref="d444b1b2fc25cd023d493250c894fe8f" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void vtkQtChartColorStyleGenerator::clearPenStyles </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Clears the list of pen styles. <p> </div> </div><p> <a class="anchor" name="5da3f45ab5287acec3a7a06ce6384e56"></a><!-- doxytag: member="vtkQtChartColorStyleGenerator::addPenStyle" ref="5da3f45ab5287acec3a7a06ce6384e56" args="(Qt::PenStyle style)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void vtkQtChartColorStyleGenerator::addPenStyle </td> <td>(</td> <td class="paramtype">Qt::PenStyle </td> <td class="paramname"> <em>style</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Adds a pen style to the list of pen styles. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>style</em> </td><td>The new pen style to add. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="bef9bd57b29e7b04927724f165c86348"></a><!-- doxytag: member="vtkQtChartColorStyleGenerator::insertPenStyle" ref="bef9bd57b29e7b04927724f165c86348" args="(int index, Qt::PenStyle style)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void vtkQtChartColorStyleGenerator::insertPenStyle </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>index</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">Qt::PenStyle </td> <td class="paramname"> <em>style</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Inserts a new pen style into the list of pen styles. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>index</em> </td><td>Where to insert the new pen style. </td></tr> <tr><td valign="top"></td><td valign="top"><em>style</em> </td><td>The new pen style to insert. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="112f868e8e5fa7d90385f145947a9a78"></a><!-- doxytag: member="vtkQtChartColorStyleGenerator::removePenStyle" ref="112f868e8e5fa7d90385f145947a9a78" args="(int index)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void vtkQtChartColorStyleGenerator::removePenStyle </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>index</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Removes the pen style for the given index. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>index</em> </td><td>Which pen style to remove from the list. </td></tr> </table> </dl> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li>dox/GUISupport/Qt/Chart/<a class="el" href="a04520.html">vtkQtChartColorStyleGenerator.h</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 19:28:12 2009 for VTK by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> </body> </html>