OpenSceneGraph/doc/doc++/osg/PrimitiveSet.html
2003-10-02 14:28:30 +00:00

295 lines
12 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>class osg::PrimitiveSet</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.10">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class <A HREF="#DOC.DOCU">osg::PrimitiveSet</A></H2></H2><HR>
<H2>Inheritance:</H2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=245>
<param name=classes value="CReferenced,MReferenced.html,CObject,MObject.html,CPrimitiveSet,MPrimitiveSet.html,CDrawElementsUShort,MDrawElementsUShort.html,CDrawElementsUInt,MDrawElementsUInt.html,CDrawElementsUByte,MDrawElementsUByte.html,CDrawArrays,MDrawArrays.html,CDrawArrayLengths,MDrawArrayLengths.html">
<param name=before value="M,M,M,M|_,MR_,MR_,MR_,Mr_">
<param name=after value="Md_SP,Md_,M,M,M,M,M,M">
<param name=indent value="0,1,2,2,2,2,2,2">
<param name=arrowdir value="down">
</APPLET>
<HR>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.155.3">PrimitiveSet</A></B>(<!1><A HREF="PrimitiveSet.html#DOC.2.155.1">Type</A> primType=<!1><A HREF="PrimitiveSet.html#DOC.2.155.1.1">PrimitiveType</A>, GLenum mode=0)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.155.4">PrimitiveSet</A></B>(const <!1><A HREF="PrimitiveSet.html#DOC.2.155.4">PrimitiveSet</A>&amp; prim, const <!1><A HREF="CopyOp.html">CopyOp</A>&amp; copyop=CopyOp::SHALLOW_COPY)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual bool <B><A HREF="#DOC.2.155.5">isSameKindAs</A></B>(const <!1><A HREF="Object.html">Object</A>* obj) const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual const char* <B><A HREF="#DOC.2.155.6">libraryName</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual const char* <B><A HREF="#DOC.2.155.7">className</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="PrimitiveSet.html#DOC.2.155.1">Type</A> <B><A HREF="#DOC.2.155.8">getType</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.155.9">setMode</A></B>(GLenum mode)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>GLenum <B><A HREF="#DOC.2.155.10">getMode</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.155.11">draw</A></B>() const = 0
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.155.12">accept</A></B>(Drawable::PrimitiveFunctor&amp; functor) const = 0
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual unsigned int <B><A HREF="#DOC.2.155.13">index</A></B>(unsigned int pos) const = 0
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual unsigned int <B><A HREF="#DOC.2.155.14">getNumIndices</A></B>() const = 0
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.155.15">offsetIndices</A></B>(int <!1><A HREF="Geometry.html#DOC.2.84.12.9">offset</A>) = 0
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual unsigned int <B><A HREF="#DOC.2.155.16">getNumPrimitives</A></B>() const
</DL></P>
<P><DL>
<DT><H3>Public Members</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>enum <B><A HREF="#DOC.2.155.1">Type</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>enum <B><A HREF="#DOC.2.155.2">Mode</A></B>
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="PrimitiveSet.html#DOC.2.155.1">Type</A> <B><A HREF="#DOC.2.155.18">_primitiveType</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>GLenum <B><A HREF="#DOC.2.155.19">_mode</A></B>
</DL></P>
<P><DL>
<DT><H3>Protected Methods</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <B><A HREF="#DOC.2.155.17">~PrimitiveSet</A></B>()
</DL></P>
</DL>
<HR><H3>Inherited from <A HREF="Object.html">Object</A>:</H3>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif>virtual <!1><A HREF="Object.html">Object</A>* <B>cloneType</B>() const
<DT>
<IMG ALT="o" SRC=icon2.gif>virtual <!1><A HREF="Object.html">Object</A>* <B>clone</B>(const <!1><A HREF="CopyOp.html">CopyOp</A>&amp;) const
<DT>
<IMG ALT="o" SRC=icon2.gif>inline void <B>setDataVariance</B>(<!1><A HREF="Object.html#DOC.2.136.8">DataVariance</A> dv)
<DT>
<IMG ALT="o" SRC=icon2.gif>inline <!1><A HREF="Object.html#DOC.2.136.8">DataVariance</A> <B>getDataVariance</B>() const
<DT>
<IMG ALT="o" SRC=icon2.gif>inline void <B>setUserData</B>(<!1><A HREF="Referenced.html">Referenced</A>* obj)
<DT>
<IMG ALT="o" SRC=icon2.gif>inline <!1><A HREF="Referenced.html">Referenced</A>* <B>getUserData</B>()
<DT>
<IMG ALT="o" SRC=icon2.gif>inline const <!1><A HREF="Referenced.html">Referenced</A>* <B>getUserData</B>() const
</DL></P>
<P><DL>
<DT><H3>Public Members</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif>enum <B>DataVariance</B>
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif><!1><A HREF="Object.html#DOC.2.136.8">DataVariance</A> <B>_dataVariance</B>
<DT>
<IMG ALT="o" SRC=icon2.gif><!1><A HREF="ref_ptr.html">ref_ptr</A>&lt;<!1><A HREF="Referenced.html">Referenced</A>&gt; <B>_userData</B>
</DL></P>
</DL>
<HR><H3>Inherited from <A HREF="Referenced.html">Referenced</A>:</H3>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif>inline <!1><A HREF="Referenced.html">Referenced</A>&amp; <B>operator = </B>(<!1><A HREF="Referenced.html">Referenced</A>&amp;)
<DT>
<IMG ALT="o" SRC=icon2.gif>static void <B>setDeleteHandler</B>(<!1><A HREF="DeleteHandler.html">DeleteHandler</A>* handler)
<DT>
<IMG ALT="o" SRC=icon2.gif>static <!1><A HREF="DeleteHandler.html">DeleteHandler</A>* <B>getDeleteHandler</B>()
<DT>
<IMG ALT="o" SRC=icon2.gif>inline void <B>ref</B>() const
<DT>
<IMG ALT="o" SRC=icon2.gif>inline void <B>unref_nodelete</B>() const
<DT>
<IMG ALT="o" SRC=icon2.gif>inline int <B>referenceCount</B>() const
<DT>
<IMG ALT="o" SRC=icon2.gif>inline void <B>unref</B>() const
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif>mutable int <B>_refCount</B>
</DL></P>
</DL>
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<DL>
<A NAME="Type"></A>
<A NAME="DOC.2.155.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>enum Type</B></TT>
<DL><DT><DD></DL><P><DL>
<A NAME="PrimitiveType"></A>
<A NAME="DOC.2.155.1.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> PrimitiveType</B></TT>
<DL><DT><DD></DL><P>
<A NAME="DrawArraysPrimitiveType"></A>
<A NAME="DOC.2.155.1.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> DrawArraysPrimitiveType</B></TT>
<DL><DT><DD></DL><P>
<A NAME="DrawArrayLengthsPrimitiveType"></A>
<A NAME="DOC.2.155.1.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> DrawArrayLengthsPrimitiveType</B></TT>
<DL><DT><DD></DL><P>
<A NAME="DrawElementsUBytePrimitiveType"></A>
<A NAME="DOC.2.155.1.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> DrawElementsUBytePrimitiveType</B></TT>
<DL><DT><DD></DL><P>
<A NAME="DrawElementsUShortPrimitiveType"></A>
<A NAME="DOC.2.155.1.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> DrawElementsUShortPrimitiveType</B></TT>
<DL><DT><DD></DL><P>
<A NAME="DrawElementsUIntPrimitiveType"></A>
<A NAME="DOC.2.155.1.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> DrawElementsUIntPrimitiveType</B></TT>
<DL><DT><DD></DL><P></DL>
<A NAME="Mode"></A>
<A NAME="DOC.2.155.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>enum Mode</B></TT>
<DL><DT><DD></DL><P><DL>
<A NAME="POINTS"></A>
<A NAME="DOC.2.155.2.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> POINTS</B></TT>
<DL><DT><DD></DL><P>
<A NAME="LINES"></A>
<A NAME="DOC.2.155.2.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> LINES</B></TT>
<DL><DT><DD></DL><P>
<A NAME="LINE_STRIP"></A>
<A NAME="DOC.2.155.2.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> LINE_STRIP</B></TT>
<DL><DT><DD></DL><P>
<A NAME="LINE_LOOP"></A>
<A NAME="DOC.2.155.2.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> LINE_LOOP</B></TT>
<DL><DT><DD></DL><P>
<A NAME="TRIANGLES"></A>
<A NAME="DOC.2.155.2.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> TRIANGLES</B></TT>
<DL><DT><DD></DL><P>
<A NAME="TRIANGLE_STRIP"></A>
<A NAME="DOC.2.155.2.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> TRIANGLE_STRIP</B></TT>
<DL><DT><DD></DL><P>
<A NAME="TRIANGLE_FAN"></A>
<A NAME="DOC.2.155.2.7"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> TRIANGLE_FAN</B></TT>
<DL><DT><DD></DL><P>
<A NAME="QUADS"></A>
<A NAME="DOC.2.155.2.8"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> QUADS</B></TT>
<DL><DT><DD></DL><P>
<A NAME="QUAD_STRIP"></A>
<A NAME="DOC.2.155.2.9"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> QUAD_STRIP</B></TT>
<DL><DT><DD></DL><P>
<A NAME="POLYGON"></A>
<A NAME="DOC.2.155.2.10"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> POLYGON</B></TT>
<DL><DT><DD></DL><P></DL>
<A NAME="PrimitiveSet"></A>
<A NAME="DOC.2.155.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> PrimitiveSet(<!1><A HREF="PrimitiveSet.html#DOC.2.155.1">Type</A> primType=<!1><A HREF="PrimitiveSet.html#DOC.2.155.1.1">PrimitiveType</A>, GLenum mode=0)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="PrimitiveSet"></A>
<A NAME="DOC.2.155.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> PrimitiveSet(const <!1><A HREF="PrimitiveSet.html#DOC.2.155.4">PrimitiveSet</A>&amp; prim, const <!1><A HREF="CopyOp.html">CopyOp</A>&amp; copyop=CopyOp::SHALLOW_COPY)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="isSameKindAs"></A>
<A NAME="DOC.2.155.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual bool isSameKindAs(const <!1><A HREF="Object.html">Object</A>* obj) const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="libraryName"></A>
<A NAME="DOC.2.155.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual const char* libraryName() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="className"></A>
<A NAME="DOC.2.155.7"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual const char* className() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="getType"></A>
<A NAME="DOC.2.155.8"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="PrimitiveSet.html#DOC.2.155.1">Type</A> getType() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setMode"></A>
<A NAME="DOC.2.155.9"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setMode(GLenum mode)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getMode"></A>
<A NAME="DOC.2.155.10"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>GLenum getMode() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="draw"></A>
<A NAME="DOC.2.155.11"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void draw() const = 0</B></TT>
<DL><DT><DD></DL><P>
<A NAME="accept"></A>
<A NAME="DOC.2.155.12"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void accept(Drawable::PrimitiveFunctor&amp; functor) const = 0</B></TT>
<DL><DT><DD></DL><P>
<A NAME="index"></A>
<A NAME="DOC.2.155.13"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual unsigned int index(unsigned int pos) const = 0</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getNumIndices"></A>
<A NAME="DOC.2.155.14"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual unsigned int getNumIndices() const = 0</B></TT>
<DL><DT><DD></DL><P>
<A NAME="offsetIndices"></A>
<A NAME="DOC.2.155.15"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void offsetIndices(int <!1><A HREF="Geometry.html#DOC.2.84.12.9">offset</A>) = 0</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getNumPrimitives"></A>
<A NAME="DOC.2.155.16"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual unsigned int getNumPrimitives() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="~PrimitiveSet"></A>
<A NAME="DOC.2.155.17"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~PrimitiveSet()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_primitiveType"></A>
<A NAME="DOC.2.155.18"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="PrimitiveSet.html#DOC.2.155.1">Type</A> _primitiveType</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_mode"></A>
<A NAME="DOC.2.155.19"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>GLenum _mode</B></TT>
<DL><DT><DD></DL><P></DL>
<HR>
<DL><DT><B>Direct child classes:
</B><DD><A HREF="DrawElementsUShort.html">DrawElementsUShort</A><BR>
<A HREF="DrawElementsUInt.html">DrawElementsUInt</A><BR>
<A HREF="DrawElementsUByte.html">DrawElementsUByte</A><BR>
<A HREF="DrawArrays.html">DrawArrays</A><BR>
<A HREF="DrawArrayLengths.html">DrawArrayLengths</A><BR>
</DL>
<DL><DT><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I> <I><A HREF="HIER.html">HTML hierarchy of classes</A> or <A HREF="HIERjava.html">Java</A></I></P><HR>
<BR>
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
</BODY>
</HTML>