<!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::PolygonStipple 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="a00567.html">PolygonStipple</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::PolygonStipple Class Reference</div> </div> </div> <div class="contents"> <!-- doxytag: class="osg::PolygonStipple" --><!-- doxytag: inherits="osg::StateAttribute" --><div class="dynheader"> Inheritance diagram for osg::PolygonStipple:</div> <div class="dyncontent"> <div class="center"><img src="a01947.png" border="0" usemap="#osg_1_1PolygonStipple_inherit__map" alt="Inheritance graph"/></div> <map name="osg_1_1PolygonStipple_inherit__map" id="osg_1_1PolygonStipple_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="a01948.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="a00567.html#a6206570d195ca938b41d023bdfb2707b">PolygonStipple</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00567.html#a98f89a0847fdbd874f6edc7a1e371fba">PolygonStipple</a> (const GLubyte *mask)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00567.html#a85171d47a1a3d024feb820a815f087ac">PolygonStipple</a> (const <a class="el" href="a00567.html">PolygonStipple</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="#a85171d47a1a3d024feb820a815f087ac"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00567.html#a13654322135c4ac7addb78a6601abdfc">META_StateAttribute</a> (osg, <a class="el" href="a00567.html">PolygonStipple</a>, POLYGONSTIPPLE)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00567.html#a752cb21cff1dc15fea2fd2e9d3255a63">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="#a752cb21cff1dc15fea2fd2e9d3255a63"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00567.html#ae52535a3c94da3a0d59c5a3613006eb4">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="#ae52535a3c94da3a0d59c5a3613006eb4"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00567.html#a85b67119928093f8cd7e6fe0ea70addf">setMask</a> (const GLubyte *mask)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">set the mask up, copying 128 bytes (32x32 bitfield) from mask into the local _mask. <a href="#a85b67119928093f8cd7e6fe0ea70addf"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const GLubyte * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00567.html#a4b56a3f593ba7c22f7929d9480be5bde">getMask</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">get a pointer to the mask. <a href="#a4b56a3f593ba7c22f7929d9480be5bde"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00567.html#a600dd420ea5b8be8b0e4e75ace6d36d7">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="#a600dd420ea5b8be8b0e4e75ace6d36d7"></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="a00567.html#abf733f203e35a6b419a7a3732214c56d">~PolygonStipple</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">GLubyte </td><td class="memItemRight" valign="bottom"><a class="el" href="a00567.html#aa1d0dea218337d81252799f2b77e20ed">_mask</a> [128]</td></tr> </table> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a6206570d195ca938b41d023bdfb2707b"></a><!-- doxytag: member="osg::PolygonStipple::PolygonStipple" ref="a6206570d195ca938b41d023bdfb2707b" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">osg::PolygonStipple::PolygonStipple </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a98f89a0847fdbd874f6edc7a1e371fba"></a><!-- doxytag: member="osg::PolygonStipple::PolygonStipple" ref="a98f89a0847fdbd874f6edc7a1e371fba" args="(const GLubyte *mask)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">osg::PolygonStipple::PolygonStipple </td> <td>(</td> <td class="paramtype">const GLubyte * </td> <td class="paramname"><em>mask</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a85171d47a1a3d024feb820a815f087ac"></a><!-- doxytag: member="osg::PolygonStipple::PolygonStipple" ref="a85171d47a1a3d024feb820a815f087ac" args="(const PolygonStipple &lw, const CopyOp &copyop=CopyOp::SHALLOW_COPY)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">osg::PolygonStipple::PolygonStipple </td> <td>(</td> <td class="paramtype">const <a class="el" href="a00567.html">PolygonStipple</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></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="abf733f203e35a6b419a7a3732214c56d"></a><!-- doxytag: member="osg::PolygonStipple::~PolygonStipple" ref="abf733f203e35a6b419a7a3732214c56d" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual osg::PolygonStipple::~PolygonStipple </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="a600dd420ea5b8be8b0e4e75ace6d36d7"></a><!-- doxytag: member="osg::PolygonStipple::apply" ref="a600dd420ea5b8be8b0e4e75ace6d36d7" args="(State &state) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void osg::PolygonStipple::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="a752cb21cff1dc15fea2fd2e9d3255a63"></a><!-- doxytag: member="osg::PolygonStipple::compare" ref="a752cb21cff1dc15fea2fd2e9d3255a63" args="(const StateAttribute &sa) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual int osg::PolygonStipple::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> [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> </div> </div> <a class="anchor" id="a4b56a3f593ba7c22f7929d9480be5bde"></a><!-- doxytag: member="osg::PolygonStipple::getMask" ref="a4b56a3f593ba7c22f7929d9480be5bde" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const GLubyte* osg::PolygonStipple::getMask </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>get a pointer to the mask. </p> </div> </div> <a class="anchor" id="ae52535a3c94da3a0d59c5a3613006eb4"></a><!-- doxytag: member="osg::PolygonStipple::getModeUsage" ref="ae52535a3c94da3a0d59c5a3613006eb4" args="(StateAttribute::ModeUsage &usage) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual bool osg::PolygonStipple::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="a13654322135c4ac7addb78a6601abdfc"></a><!-- doxytag: member="osg::PolygonStipple::META_StateAttribute" ref="a13654322135c4ac7addb78a6601abdfc" args="(osg, PolygonStipple, POLYGONSTIPPLE)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">osg::PolygonStipple::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="a00567.html">PolygonStipple</a> </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">POLYGONSTIPPLE </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="a85b67119928093f8cd7e6fe0ea70addf"></a><!-- doxytag: member="osg::PolygonStipple::setMask" ref="a85b67119928093f8cd7e6fe0ea70addf" args="(const GLubyte *mask)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void osg::PolygonStipple::setMask </td> <td>(</td> <td class="paramtype">const GLubyte * </td> <td class="paramname"><em>mask</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>set the mask up, copying 128 bytes (32x32 bitfield) from mask into the local _mask. </p> </div> </div> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="aa1d0dea218337d81252799f2b77e20ed"></a><!-- doxytag: member="osg::PolygonStipple::_mask" ref="aa1d0dea218337d81252799f2b77e20ed" args="[128]" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GLubyte <a class="el" href="a00567.html#aa1d0dea218337d81252799f2b77e20ed">osg::PolygonStipple::_mask</a>[128]<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="a01228.html">PolygonStipple</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>