303 lines
13 KiB
HTML
303 lines
13 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.6">
|
|
</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 Classes</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>enum <B><A HREF="#DOC.2.187.1">Type</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>enum <B><A HREF="#DOC.2.187.2">Mode</A></B>
|
|
</DL></P>
|
|
|
|
<P><DL>
|
|
<DT><H3>Public Methods</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.187.3">PrimitiveSet</A></B>(<!1><A HREF="PrimitiveSet.html#DOC.2.187.1">Type</A> primType=<!1><A HREF="PrimitiveSet.html#DOC.2.187.1.1">PrimitiveType</A>, GLenum mode=0)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.187.4">PrimitiveSet</A></B>(const <!1><A HREF="PrimitiveSet.html#DOC.2.187.4">PrimitiveSet</A>& prim, const <!1><A HREF="CopyOp.html">CopyOp</A>& copyop=CopyOp::SHALLOW_COPY)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual bool <B><A HREF="#DOC.2.187.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.187.6">libraryName</A></B>() const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual const char* <B><A HREF="#DOC.2.187.7">className</A></B>() const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="PrimitiveSet.html#DOC.2.187.1">Type</A> <B><A HREF="#DOC.2.187.8">getType</A></B>() const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.187.9">setMode</A></B>(GLenum mode)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>GLenum <B><A HREF="#DOC.2.187.10">getMode</A></B>() const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.187.11">draw</A></B>(<!1><A HREF="State.html">State</A>& state, bool useVertexBufferObjects) const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.187.12">accept</A></B>(Drawable::PrimitiveFunctor& functor) const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.187.13">accept</A></B>(Drawable::PrimitiveIndexFunctor& functor) const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual unsigned int <B><A HREF="#DOC.2.187.14">index</A></B>(unsigned int pos) const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual unsigned int <B><A HREF="#DOC.2.187.15">getNumIndices</A></B>() const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.187.16">offsetIndices</A></B>(int <!1><A HREF="Geometry.html#DOC.2.108.13.11">offset</A>)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual unsigned int <B><A HREF="#DOC.2.187.17">getNumPrimitives</A></B>() const
|
|
</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.187.1">Type</A> <B><A HREF="#DOC.2.187.19">_primitiveType</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>GLenum <B><A HREF="#DOC.2.187.20">_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.187.18">~PrimitiveSet</A></B>()
|
|
</DL></P>
|
|
|
|
</DL>
|
|
<HR><H3>Inherited from <A HREF="Object.html">Object</A>:</H3>
|
|
<DL>
|
|
<P><DL>
|
|
<DT><H3>Public Classes</H3><DD><DT>
|
|
<IMG ALT="o" SRC=icon2.gif>enum <B>DataVariance</B>
|
|
</DL></P>
|
|
|
|
<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>&) const
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline void <B>setDataVariance</B>(<!1><A HREF="Object.html#DOC.2.167.8">DataVariance</A> dv)
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline <!1><A HREF="Object.html#DOC.2.167.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>Protected Fields</H3><DD><DT>
|
|
<IMG ALT="o" SRC=icon2.gif><!1><A HREF="Object.html#DOC.2.167.8">DataVariance</A> <B>_dataVariance</B>
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif><!1><A HREF="ref_ptr.html">ref_ptr</A><<!1><A HREF="Referenced.html">Referenced</A>> <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>& <B>operator = </B>(const <!1><A HREF="Referenced.html">Referenced</A>&)
|
|
<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 OpenThreads::Mutex <B>_refMutex</B>
|
|
<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.187.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.187.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.187.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.187.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.187.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.187.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.187.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.187.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.187.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.187.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.187.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.187.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.187.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.187.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.187.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.187.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.187.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.187.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.187.3"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> PrimitiveSet(<!1><A HREF="PrimitiveSet.html#DOC.2.187.1">Type</A> primType=<!1><A HREF="PrimitiveSet.html#DOC.2.187.1.1">PrimitiveType</A>, GLenum mode=0)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="PrimitiveSet"></A>
|
|
<A NAME="DOC.2.187.4"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> PrimitiveSet(const <!1><A HREF="PrimitiveSet.html#DOC.2.187.4">PrimitiveSet</A>& prim, const <!1><A HREF="CopyOp.html">CopyOp</A>& copyop=CopyOp::SHALLOW_COPY)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="isSameKindAs"></A>
|
|
<A NAME="DOC.2.187.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.187.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.187.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.187.8"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="PrimitiveSet.html#DOC.2.187.1">Type</A> getType() const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setMode"></A>
|
|
<A NAME="DOC.2.187.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.187.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.187.11"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void draw(<!1><A HREF="State.html">State</A>& state, bool useVertexBufferObjects) const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="accept"></A>
|
|
<A NAME="DOC.2.187.12"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void accept(Drawable::PrimitiveFunctor& functor) const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="accept"></A>
|
|
<A NAME="DOC.2.187.13"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void accept(Drawable::PrimitiveIndexFunctor& functor) const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="index"></A>
|
|
<A NAME="DOC.2.187.14"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual unsigned int index(unsigned int pos) const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getNumIndices"></A>
|
|
<A NAME="DOC.2.187.15"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual unsigned int getNumIndices() const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="offsetIndices"></A>
|
|
<A NAME="DOC.2.187.16"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void offsetIndices(int <!1><A HREF="Geometry.html#DOC.2.108.13.11">offset</A>)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getNumPrimitives"></A>
|
|
<A NAME="DOC.2.187.17"></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.187.18"></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.187.19"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="PrimitiveSet.html#DOC.2.187.1">Type</A> _primitiveType</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_mode"></A>
|
|
<A NAME="DOC.2.187.20"></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://www.linuxsupportline.com/~doc++">DOC++</A>.
|
|
</BODY>
|
|
</HTML>
|