<!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>OpenSceneGraph: osg::LineStipple Class Reference</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.4 --> <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">OpenSceneGraph <span id="projectnumber">2.8.4</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <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="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="a01628.html">osg</a> </li> <li class="navelem"><a class="el" href="a00446.html">LineStipple</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-methods">Protected Member Functions</a> | <a href="#pro-attribs">Protected Attributes</a> </div> <div class="headertitle"> <div class="title">osg::LineStipple Class Reference</div> </div> </div> <div class="contents"> <!-- doxytag: class="osg::LineStipple" --><!-- doxytag: inherits="osg::StateAttribute" --><div class="dynheader"> Inheritance diagram for osg::LineStipple:</div> <div class="dyncontent"> <div class="center"><img src="a01872.png" border="0" usemap="#osg_1_1LineStipple_inherit__map" alt="Inheritance graph"/></div> <map name="osg_1_1LineStipple_inherit__map" id="osg_1_1LineStipple_inherit__map"> <area shape="rect" id="node2" href="a00743.html" title="Base class for state attributes." alt="" coords="5,160,163,189"/><area shape="rect" id="node4" href="a00500.html" title="Base class/standard interface for objects which require IO support, cloning and reference counting..." alt="" coords="33,83,135,112"/><area shape="rect" id="node6" href="a00627.html" title="Base class from providing referencing counted objects." alt="" coords="17,5,151,35"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="a01873.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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00446.html#a25af97761113be76f59746019032c2e3">LineStipple</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00446.html#ac431a8c242e1943bcceb5a3501c370fe">LineStipple</a> (GLint factor, GLushort pattern)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00446.html#a48f05cce2ccdac2847e4eabeb470e7c1">LineStipple</a> (const <a class="el" href="a00446.html">LineStipple</a> &lw, const <a class="el" href="a00169.html">CopyOp</a> &copyop=CopyOp::SHALLOW_COPY)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor using <a class="el" href="a00169.html" title="Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...">CopyOp</a> to manage deep vs shallow copy. <a href="#a48f05cce2ccdac2847e4eabeb470e7c1"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00446.html#afefb0cadc8dc5d6349b656f98805f9f1">META_StateAttribute</a> (osg, <a class="el" href="a00446.html">LineStipple</a>, LINESTIPPLE)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00446.html#a5591ada1422f04ca5855fb6b678cbf8a">compare</a> (const <a class="el" href="a00743.html">StateAttribute</a> &sa) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. <a href="#a5591ada1422f04ca5855fb6b678cbf8a"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00446.html#a6ad63879ba90f4f1571c6761a91ed266">getModeUsage</a> (<a class="el" href="a00475.html">StateAttribute::ModeUsage</a> &usage) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return the modes associated with this <a class="el" href="a00743.html" title="Base class for state attributes.">StateAttribute</a>. <a href="#a6ad63879ba90f4f1571c6761a91ed266"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00446.html#ac68b3c03fc0a0c55f632a80afe2791e1">setFactor</a> (GLint factor)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">GLint </td><td class="memItemRight" valign="bottom"><a class="el" href="a00446.html#a4c25ff9ece6209cd7e661bf6d2954d3d">getFactor</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00446.html#a6e4caac02943a24b39923ba5c927e921">setPattern</a> (GLushort pattern)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">GLushort </td><td class="memItemRight" valign="bottom"><a class="el" href="a00446.html#a93d5c21fc899dd0ac150c0ae976b6980">getPattern</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00446.html#a8850bfd03cdd644368a9b05b7b9550ed">apply</a> (<a class="el" href="a00742.html">State</a> &state) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">apply the OpenGL state attributes. <a href="#a8850bfd03cdd644368a9b05b7b9550ed"></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">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="a00446.html#a6b4e721ee8b26cf4f0f2e6ea59e6796f">~LineStipple</a> ()</td></tr> <tr><td colspan="2"><h2><a name="pro-attribs"></a> Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">GLint </td><td class="memItemRight" valign="bottom"><a class="el" href="a00446.html#a1796ff12b5b0b8cdc509be691edb0246">_factor</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">GLushort </td><td class="memItemRight" valign="bottom"><a class="el" href="a00446.html#a070adb7e298a634a51e8eb1a124c7bab">_pattern</a></td></tr> </table> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a25af97761113be76f59746019032c2e3"></a><!-- doxytag: member="osg::LineStipple::LineStipple" ref="a25af97761113be76f59746019032c2e3" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">osg::LineStipple::LineStipple </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="ac431a8c242e1943bcceb5a3501c370fe"></a><!-- doxytag: member="osg::LineStipple::LineStipple" ref="ac431a8c242e1943bcceb5a3501c370fe" args="(GLint factor, GLushort pattern)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">osg::LineStipple::LineStipple </td> <td>(</td> <td class="paramtype">GLint </td> <td class="paramname"><em>factor</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">GLushort </td> <td class="paramname"><em>pattern</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a48f05cce2ccdac2847e4eabeb470e7c1"></a><!-- doxytag: member="osg::LineStipple::LineStipple" ref="a48f05cce2ccdac2847e4eabeb470e7c1" args="(const LineStipple &lw, const CopyOp &copyop=CopyOp::SHALLOW_COPY)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">osg::LineStipple::LineStipple </td> <td>(</td> <td class="paramtype">const <a class="el" href="a00446.html">LineStipple</a> & </td> <td class="paramname"><em>lw</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="a00169.html">CopyOp</a> & </td> <td class="paramname"><em>copyop</em> = <code>CopyOp::SHALLOW_COPY</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Copy constructor using <a class="el" href="a00169.html" title="Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...">CopyOp</a> to manage deep vs shallow copy. </p> </div> </div> <a class="anchor" id="a6b4e721ee8b26cf4f0f2e6ea59e6796f"></a><!-- doxytag: member="osg::LineStipple::~LineStipple" ref="a6b4e721ee8b26cf4f0f2e6ea59e6796f" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual osg::LineStipple::~LineStipple </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a8850bfd03cdd644368a9b05b7b9550ed"></a><!-- doxytag: member="osg::LineStipple::apply" ref="a8850bfd03cdd644368a9b05b7b9550ed" args="(State &state) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void osg::LineStipple::apply </td> <td>(</td> <td class="paramtype"><a class="el" href="a00742.html">State</a> & </td> <td class="paramname"></td><td>)</td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>apply the OpenGL state attributes. </p> <p>The render info for the current OpenGL context is passed in to allow the <a class="el" href="a00743.html" title="Base class for state attributes.">StateAttribute</a> to obtain details on the the current context and state. </p> <p>Reimplemented from <a class="el" href="a00743.html#a579c9e2646b207f66acb7dc8653e9d75">osg::StateAttribute</a>.</p> </div> </div> <a class="anchor" id="a5591ada1422f04ca5855fb6b678cbf8a"></a><!-- doxytag: member="osg::LineStipple::compare" ref="a5591ada1422f04ca5855fb6b678cbf8a" args="(const StateAttribute &sa) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual int osg::LineStipple::compare </td> <td>(</td> <td class="paramtype">const <a class="el" href="a00743.html">StateAttribute</a> & </td> <td class="paramname"><em>sa</em></td><td>)</td> <td> const<code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. </p> <p>Implements <a class="el" href="a00743.html#a0ff33c0a11fc2e9980805b4d0325e16f">osg::StateAttribute</a>.</p> <p>References <a class="el" href="a01248.html#a71201dd0137c66f15ce6742478c5b3e0">COMPARE_StateAttribute_Parameter</a>, and <a class="el" href="a01248.html#aac09eac41cba49d7203ecc64b7aec9a9">COMPARE_StateAttribute_Types</a>.</p> </div> </div> <a class="anchor" id="a4c25ff9ece6209cd7e661bf6d2954d3d"></a><!-- doxytag: member="osg::LineStipple::getFactor" ref="a4c25ff9ece6209cd7e661bf6d2954d3d" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GLint osg::LineStipple::getFactor </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a6ad63879ba90f4f1571c6761a91ed266"></a><!-- doxytag: member="osg::LineStipple::getModeUsage" ref="a6ad63879ba90f4f1571c6761a91ed266" args="(StateAttribute::ModeUsage &usage) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual bool osg::LineStipple::getModeUsage </td> <td>(</td> <td class="paramtype"><a class="el" href="a00475.html">StateAttribute::ModeUsage</a> & </td> <td class="paramname"></td><td>)</td> <td> const<code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Return the modes associated with this <a class="el" href="a00743.html" title="Base class for state attributes.">StateAttribute</a>. </p> <p>Reimplemented from <a class="el" href="a00743.html#a1d6ef6841d265e7ac4164e9128bd0338">osg::StateAttribute</a>.</p> <p>References <a class="el" href="a00475.html#ac1ae7f8c6abbd07eb355592f5bd2b65a">osg::StateAttribute::ModeUsage::usesMode()</a>.</p> </div> </div> <a class="anchor" id="a93d5c21fc899dd0ac150c0ae976b6980"></a><!-- doxytag: member="osg::LineStipple::getPattern" ref="a93d5c21fc899dd0ac150c0ae976b6980" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GLushort osg::LineStipple::getPattern </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="afefb0cadc8dc5d6349b656f98805f9f1"></a><!-- doxytag: member="osg::LineStipple::META_StateAttribute" ref="afefb0cadc8dc5d6349b656f98805f9f1" args="(osg, LineStipple, LINESTIPPLE)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">osg::LineStipple::META_StateAttribute </td> <td>(</td> <td class="paramtype">osg </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="a00446.html">LineStipple</a> </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">LINESTIPPLE </td> <td class="paramname"> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="ac68b3c03fc0a0c55f632a80afe2791e1"></a><!-- doxytag: member="osg::LineStipple::setFactor" ref="ac68b3c03fc0a0c55f632a80afe2791e1" args="(GLint factor)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void osg::LineStipple::setFactor </td> <td>(</td> <td class="paramtype">GLint </td> <td class="paramname"><em>factor</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a6e4caac02943a24b39923ba5c927e921"></a><!-- doxytag: member="osg::LineStipple::setPattern" ref="a6e4caac02943a24b39923ba5c927e921" args="(GLushort pattern)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void osg::LineStipple::setPattern </td> <td>(</td> <td class="paramtype">GLushort </td> <td class="paramname"><em>pattern</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="a1796ff12b5b0b8cdc509be691edb0246"></a><!-- doxytag: member="osg::LineStipple::_factor" ref="a1796ff12b5b0b8cdc509be691edb0246" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GLint <a class="el" href="a00446.html#a1796ff12b5b0b8cdc509be691edb0246">osg::LineStipple::_factor</a><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a070adb7e298a634a51e8eb1a124c7bab"></a><!-- doxytag: member="osg::LineStipple::_pattern" ref="a070adb7e298a634a51e8eb1a124c7bab" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GLushort <a class="el" href="a00446.html#a070adb7e298a634a51e8eb1a124c7bab">osg::LineStipple::_pattern</a><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>osg/<a class="el" href="a01200.html">LineStipple</a></li> </ul> </div> <hr> <table border="0"><tr><td> <img src="osg32-32.png" alt="osg logo" /> </td><td> <address><small>Generated at Tue May 31 2011 04:19:33 for the <a href="http://www.openscenegraph.org/">OpenSceneGraph</a> by <a href="http://www.doxygen.org">doxygen</a> 1.7.4.</small></address> <!-- Dimitri van Heesch's e-mail address removed, lest he get messages on the OpenSceneGraph --> </td></tr></table> </body> </html>