OpenSceneGraph/doc/doc++/osg/Drawable.html

641 lines
33 KiB
HTML
Raw Normal View History

2001-09-20 05:19:47 +08:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>class SG_EXPORT osg::Drawable</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.8">
</HEAD>
<BODY BGCOLOR="#ffffff">
2001-12-25 05:56:22 +08:00
<H2>class SG_EXPORT <A HREF="#DOC.DOCU">osg::Drawable</A></H2></H2><BLOCKQUOTE>Pure virtual base class for drawable Geometry.</BLOCKQUOTE>
2001-09-20 05:19:47 +08:00
<HR>
<H2>Inheritance:</H2>
2002-07-17 04:07:32 +08:00
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=215>
<param name=classes value="CReferenced,MReferenced.html,CObject,MObject.html,CDrawable,MDrawable.html,CImpostorSprite,MImpostorSprite.html,CGeometry,MGeometry.html,CGeoSet,MGeoSet.html,CDrawPixels,MDrawPixels.html">
<param name=before value="M,M,M,M|_,MR_,MR_,Mr_">
<param name=after value="Md_SP,Md_,M,M,M,M,M">
<param name=indent value="0,1,2,2,2,2,2">
2001-09-20 05:19:47 +08:00
<param name=arrowdir value="down">
</APPLET>
<HR>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.42.1">Drawable</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.42.2">Drawable</A></B>(const <!1><A HREF="Drawable.html#DOC.2.42.2">Drawable</A>&amp; drawable, const <!1><A HREF="CopyOp.html">CopyOp</A>&amp; copyop=CopyOp::SHALLOW_COPY)
2002-02-09 18:54:18 +08:00
<DD><I>Copy constructor using CopyOp to manage deep vs shallow copy</I>
2001-09-20 05:19:47 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual bool <B><A HREF="#DOC.2.42.3">isSameKindAs</A></B>(const <!1><A HREF="Object.html">Object</A>* obj) const
2001-09-20 05:19:47 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual const char* <B><A HREF="#DOC.2.42.4">libraryName</A></B>() const
2002-02-09 18:54:18 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual const char* <B><A HREF="#DOC.2.42.5">className</A></B>() const
2002-07-17 04:07:32 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="Drawable.html#DOC.2.42.6">ParentList</A>&amp; <B><A HREF="#DOC.2.42.7">getParents</A></B>() const
2002-02-09 18:54:18 +08:00
<DD><I>Get the parent list of drawable.</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="Drawable.html#DOC.2.42.6">ParentList</A> <B><A HREF="#DOC.2.42.8">getParents</A></B>()
2002-02-09 18:54:18 +08:00
<DD><I>Get the a copy of parent list of node.</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline Node* <B><A HREF="#DOC.2.42.9">getParent</A></B>(const unsigned int i)
2002-02-09 18:54:18 +08:00
<DD><I>Get a single parent of Drawable.</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const Node* <B><A HREF="#DOC.2.42.10">getParent</A></B>(const unsigned int i) const
2002-02-09 18:54:18 +08:00
<DD><I>Get a single const parent of Drawable.</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const unsigned int <B><A HREF="#DOC.2.42.11">getNumParents</A></B>() const
2002-02-09 18:54:18 +08:00
<DD><I> Get the number of parents of node.</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.42.12">setStateSet</A></B>(<!1><A HREF="StateSet.html">StateSet</A>* state)
2001-09-20 05:19:47 +08:00
<DD><I>Set the StateSet attached to the Drawable.</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="StateSet.html">StateSet</A>* <B><A HREF="#DOC.2.42.13">getStateSet</A></B>()
2001-09-20 05:19:47 +08:00
<DD><I>Get the attached StateSet</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="StateSet.html">StateSet</A>* <B><A HREF="#DOC.2.42.14">getStateSet</A></B>() const
2001-09-20 05:19:47 +08:00
<DD><I>Get the attached const StateSet</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.42.15">setSupportsDisplayList</A></B>(const bool flag)
2001-12-25 05:56:22 +08:00
<DD><I>Set the drawable to it can or cannot be used in conjunction with OpenGL display lists.</I>
2001-09-20 05:19:47 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const bool <B><A HREF="#DOC.2.42.16">getSupportsDisplayList</A></B>() const
2001-12-25 05:56:22 +08:00
<DD><I>Get whether display lists are supported for this drawable instance</I>
2001-09-20 05:19:47 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.42.17">setUseDisplayList</A></B>(const bool flag)
2001-09-20 05:19:47 +08:00
<DD><I>When set to true, force the draw method to use OpenGL Display List for rendering.</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const bool <B><A HREF="#DOC.2.42.18">getUseDisplayList</A></B>() const
2001-09-20 05:19:47 +08:00
<DD><I>Return whether OpenGL display lists are being used for rendering</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.42.19">dirtyDisplayList</A></B>()
2001-09-20 05:19:47 +08:00
<DD><I>Force a recompile on next draw() of any OpenGL display list associated with this geoset</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.42.20">dirtyBound</A></B>()
2001-12-25 05:56:22 +08:00
<DD><I>Dirty the bounding box, forcing a computeBound() on the next call to getBound().</I>
2001-09-20 05:19:47 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="BoundingBox.html">BoundingBox</A>&amp; <B><A HREF="#DOC.2.42.21">getBound</A></B>() const
2001-09-20 05:19:47 +08:00
<DD><I>get bounding box of geoset.</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.42.22">compile</A></B>(<!1><A HREF="State.html">State</A>&amp; state)
2001-09-20 05:19:47 +08:00
<DD><I>Immediately compile this drawable into an OpenGL Display List.</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.42.24">setAppCallback</A></B>(<!1><A HREF="Drawable.html#DOC.2.42.23">AppCallback</A>* ac)
2002-07-17 04:07:32 +08:00
<DD><I>Set the AppCallback which allows users to attach customize the undating of an object during the app traversal</I>
2002-02-09 18:54:18 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Drawable.html#DOC.2.42.23">AppCallback</A>* <B><A HREF="#DOC.2.42.25">getAppCallback</A></B>()
2002-07-17 04:07:32 +08:00
<DD><I>Get the non const AppCallback</I>
2002-02-09 18:54:18 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const <!1><A HREF="Drawable.html#DOC.2.42.23">AppCallback</A>* <B><A HREF="#DOC.2.42.26">getAppCallback</A></B>() const
2002-07-17 04:07:32 +08:00
<DD><I>Get the const AppCallback</I>
2002-02-09 18:54:18 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.42.28">setCullCallback</A></B>(<!1><A HREF="Drawable.html#DOC.2.42.27">CullCallback</A>* cc)
2002-07-17 04:07:32 +08:00
<DD><I>Set the CullCallback which allows users to attach customize the culling of Drawable during the cull traversal</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Drawable.html#DOC.2.42.27">CullCallback</A>* <B><A HREF="#DOC.2.42.29">getCullCallback</A></B>()
<DD><I>Get the non const CullCallback</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const <!1><A HREF="Drawable.html#DOC.2.42.27">CullCallback</A>* <B><A HREF="#DOC.2.42.30">getCullCallback</A></B>() const
2002-07-17 04:07:32 +08:00
<DD><I>Get the const CullCallback</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.42.32">setDrawCallback</A></B>(<!1><A HREF="Drawable.html#DOC.2.42.31">DrawCallback</A>* dc)
2002-07-17 04:07:32 +08:00
<DD><I>Set the DrawCallback which allows users to attach customize the drawing of existing Drawable object</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Drawable.html#DOC.2.42.31">DrawCallback</A>* <B><A HREF="#DOC.2.42.33">getDrawCallback</A></B>()
2002-07-17 04:07:32 +08:00
<DD><I>Get the non const DrawCallback</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const <!1><A HREF="Drawable.html#DOC.2.42.31">DrawCallback</A>* <B><A HREF="#DOC.2.42.34">getDrawCallback</A></B>() const
2002-07-17 04:07:32 +08:00
<DD><I>Get the const DrawCallback</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.42.35">drawImmediateMode</A></B>(<!1><A HREF="State.html">State</A>&amp; state) = 0
2001-09-20 05:19:47 +08:00
<DD><I>draw directly ignoring an OpenGL display list which could be attached.</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>static void <B><A HREF="#DOC.2.42.36">deleteDisplayList</A></B>(uint contextID, uint globj)
2001-09-20 05:19:47 +08:00
<DD><I>use deleteDisplayList instead of glDeleteList to allow OpenGL display list to cached until they can be deleted by the OpenGL context in which they were created, specified by contextID</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>static void <B><A HREF="#DOC.2.42.37">flushDeletedDisplayLists</A></B>(uint contextID)
2001-09-20 05:19:47 +08:00
<DD><I>flush all the cached display list which need to be deleted in the OpenGL context related to contextID</I>
2001-12-25 05:56:22 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.42.40">accept</A></B>(<!1><A HREF="AttributeFunctor.html">AttributeFunctor</A>&amp;)
2002-07-19 03:54:11 +08:00
<DD><I>accept an AttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has</I>
2001-12-25 05:56:22 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.42.42">accept</A></B>(<!1><A HREF="PrimitiveFunctor.html">PrimitiveFunctor</A>&amp;)
2002-07-19 03:54:11 +08:00
<DD><I>accept a PrimtiveFunctor and call its methods to tell it about the interal primtives that this Drawable has</I>
2001-12-25 05:56:22 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.42.59">draw</A></B>(<!1><A HREF="State.html">State</A>&amp; state)
2001-12-25 05:56:22 +08:00
<DD><I>draw OpenGL primitives.</I>
</DL></P>
<P><DL>
<DT><H3>Public Members</H3><DD><DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::vector&lt;Node*&gt; <B><A HREF="#DOC.2.42.6">ParentList</A></B>
2002-02-09 18:54:18 +08:00
<DD><I>A vector of osg::Node pointers which is used to store the parent(s) of drawable</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>struct <B><A HREF="#DOC.2.42.23">AppCallback</A></B>: public <!1><A HREF="Referenced.html">osg::Referenced</A>
2002-07-17 04:07:32 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>struct <B><A HREF="#DOC.2.42.27">CullCallback</A></B>: public <!1><A HREF="Referenced.html">osg::Referenced</A>
2002-02-09 18:54:18 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>struct <B><A HREF="#DOC.2.42.31">DrawCallback</A></B>: public <!1><A HREF="Referenced.html">osg::Referenced</A>
2002-07-17 04:07:32 +08:00
<DD><I>Callback attached to an Drawable which allows the users to customize the drawing of an exist Drawable object.</I>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>enum <B><A HREF="#DOC.2.42.38">AttributeType</A></B>
2001-12-25 05:56:22 +08:00
<DT>
class <B><A HREF="AttributeFunctor.html">AttributeFunctor</A></B>
2002-07-17 04:07:32 +08:00
<DT>
class <B><A HREF="PrimitiveFunctor.html">PrimitiveFunctor</A></B>
2001-09-20 05:19:47 +08:00
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Drawable.html#DOC.2.42.6">ParentList</A> <B><A HREF="#DOC.2.42.48">_parents</A></B>
2002-07-17 04:07:32 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="ref_ptr.html">ref_ptr</A>&lt;<!1><A HREF="StateSet.html">StateSet</A>&gt; <B><A HREF="#DOC.2.42.49">_dstate</A></B>
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.42.50">_supportsDisplayList</A></B>
2002-02-09 18:54:18 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.42.51">_useDisplayList</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>mutable <!1><A HREF="BoundingBox.html">BoundingBox</A> <B><A HREF="#DOC.2.42.53">_bbox</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>mutable bool <B><A HREF="#DOC.2.42.54">_bbox_computed</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="ref_ptr.html">ref_ptr</A>&lt;<!1><A HREF="Drawable.html#DOC.2.42.23">AppCallback</A>&gt; <B><A HREF="#DOC.2.42.55">_appCallback</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="ref_ptr.html">ref_ptr</A>&lt;<!1><A HREF="Drawable.html#DOC.2.42.31">DrawCallback</A>&gt; <B><A HREF="#DOC.2.42.56">_drawCallback</A></B>
2002-02-09 18:54:18 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="ref_ptr.html">ref_ptr</A>&lt;<!1><A HREF="Drawable.html#DOC.2.42.27">CullCallback</A>&gt; <B><A HREF="#DOC.2.42.57">_cullCallback</A></B>
2001-09-20 05:19:47 +08:00
</DL></P>
<P><DL>
<DT><H3>Protected Methods</H3><DD><DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Drawable.html">Drawable</A>&amp; <B><A HREF="#DOC.2.42.43">operator = </A></B>(const <!1><A HREF="Drawable.html">Drawable</A>&amp;)
2001-09-20 05:19:47 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <B><A HREF="#DOC.2.42.44">~Drawable</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual const bool <B><A HREF="#DOC.2.42.45">computeBound</A></B>() const
2001-09-20 05:19:47 +08:00
<DD><I>compute the bounding box of the drawable.</I>
2002-02-09 18:54:18 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.42.46">addParent</A></B>(osg::Node* node)
2002-02-09 18:54:18 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.42.47">removeParent</A></B>(osg::Node* node)
2001-09-20 05:19:47 +08:00
</DL></P>
<P><DL>
<DT><H3>Protected Members</H3><DD><DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::vector&lt;uint&gt; GLObjectList mutable GLObjectList <B><A HREF="#DOC.2.42.52">_globjList</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::map&lt;uint,std::set&lt;uint&gt; &gt;static DeletedDisplayListCache DeletedDisplayListCache <B><A HREF="#DOC.2.42.58">s_deletedDisplayListCache</A></B>
2001-09-20 05:19:47 +08:00
</DL></P>
</DL>
<HR><H3>Inherited from <A HREF="Object.html">Object</A>:</H3>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
2002-02-09 18:54:18 +08:00
<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>
2002-08-29 22:29:49 +08:00
<IMG ALT="o" SRC=icon2.gif>inline void <B>setDataVariance</B>(const <!1><A HREF="Object.html#DOC.2.90.8">DataVariance</A> dv)
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="o" SRC=icon2.gif>inline const <!1><A HREF="Object.html#DOC.2.90.8">DataVariance</A> <B>getDataVariance</B>() const
2002-07-19 03:54:11 +08:00
<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>
2002-08-29 22:29:49 +08:00
<IMG ALT="o" SRC=icon2.gif><!1><A HREF="Object.html#DOC.2.90.8">DataVariance</A> <B>_dataVariance</B>
2002-07-19 03:54:11 +08:00
<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>
2001-09-20 05:19:47 +08:00
</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 void <B>ref</B>() const
<DT>
<IMG ALT="o" SRC=icon2.gif>inline void <B>unref</B>() const
<DT>
<IMG ALT="o" SRC=icon2.gif>inline void <B>unref_nodelete</B>() const
<DT>
2001-09-20 05:19:47 +08:00
<IMG ALT="o" SRC=icon2.gif>inline const int <B>referenceCount</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>
2001-12-25 05:56:22 +08:00
<BLOCKQUOTE>Pure virtual base class for drawable Geometry. Contains no drawing primitives
2002-07-17 04:07:32 +08:00
directly, these are provided by subclasses such as osg::Geometry. State attributes
2001-09-20 05:19:47 +08:00
for a Drawable are maintained in StateSet which the Drawable maintains
a referenced counted pointer to. Both Drawable's and StateSet's can
2002-07-19 03:54:11 +08:00
be shared for optimal memory usage and graphics performance.</BLOCKQUOTE>
2001-09-20 05:19:47 +08:00
<DL>
<A NAME="Drawable"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.1"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> Drawable()</B></TT>
<DL><DT><DD></DL><P>
2002-02-09 18:54:18 +08:00
<A NAME="Drawable"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> Drawable(const <!1><A HREF="Drawable.html#DOC.2.42.2">Drawable</A>&amp; drawable, const <!1><A HREF="CopyOp.html">CopyOp</A>&amp; copyop=CopyOp::SHALLOW_COPY)</B></TT>
2002-02-09 18:54:18 +08:00
<DD>Copy constructor using CopyOp to manage deep vs shallow copy
<DL><DT><DD></DL><P>
2001-09-20 05:19:47 +08:00
<A NAME="isSameKindAs"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.3"></A>
2001-09-20 05:19:47 +08:00
<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>
2002-07-17 04:07:32 +08:00
<A NAME="libraryName"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.4"></A>
2002-07-17 04:07:32 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual const char* libraryName() const </B></TT>
<DL><DT><DD></DL><P>
2001-09-20 05:19:47 +08:00
<A NAME="className"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.5"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual const char* className() const </B></TT>
<DL><DT><DD></DL><P>
2002-02-09 18:54:18 +08:00
<A NAME="ParentList"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::vector&lt;Node*&gt; ParentList</B></TT>
2002-02-09 18:54:18 +08:00
<DD>A vector of osg::Node pointers which is used to store the parent(s) of drawable
<DL><DT><DD></DL><P>
<A NAME="getParents"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.7"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="Drawable.html#DOC.2.42.6">ParentList</A>&amp; getParents() const </B></TT>
2002-02-09 18:54:18 +08:00
<DD>Get the parent list of drawable.
<DL><DT><DD></DL><P>
<A NAME="getParents"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.8"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="Drawable.html#DOC.2.42.6">ParentList</A> getParents()</B></TT>
2002-02-09 18:54:18 +08:00
<DD>Get the a copy of parent list of node. A copy is returned to
prevent modification of the parent list.
<DL><DT><DD></DL><P>
<A NAME="getParent"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.9"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline Node* getParent(const unsigned int i)</B></TT>
2002-02-09 18:54:18 +08:00
<DD>Get a single parent of Drawable.
<DL><DT><DT><B>Parameters:</B><DD><B>i</B> - index of the parent to get.
<BR><DT><B>Returns:</B><DD> the parent i.<BR><DD></DL><P>
<A NAME="getParent"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.10"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const Node* getParent(const unsigned int i) const </B></TT>
2002-02-09 18:54:18 +08:00
<DD>Get a single const parent of Drawable.
<DL><DT><DT><B>Parameters:</B><DD><B>i</B> - index of the parent to get.
<BR><DT><B>Returns:</B><DD> the parent i.<BR><DD></DL><P>
<A NAME="getNumParents"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.11"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const unsigned int getNumParents() const </B></TT>
2002-02-09 18:54:18 +08:00
<DD>
Get the number of parents of node.
<DL><DT><DT><B>Returns:</B><DD> the number of parents of this node.<BR><DD></DL><P>
2001-09-20 05:19:47 +08:00
<A NAME="setStateSet"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.12"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setStateSet(<!1><A HREF="StateSet.html">StateSet</A>* state)</B></TT>
<DD>Set the StateSet attached to the Drawable.
Previously attached StateSet are automatically unreferenced on
assignment of a new drawstate.
<DL><DT><DD></DL><P>
<A NAME="getStateSet"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.13"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="StateSet.html">StateSet</A>* getStateSet()</B></TT>
<DD>Get the attached StateSet
<DL><DT><DD></DL><P>
<A NAME="getStateSet"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.14"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="StateSet.html">StateSet</A>* getStateSet() const </B></TT>
<DD>Get the attached const StateSet
<DL><DT><DD></DL><P>
<A NAME="setSupportsDisplayList"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.15"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setSupportsDisplayList(const bool flag)</B></TT>
2001-12-25 05:56:22 +08:00
<DD>Set the drawable to it can or cannot be used in conjunction with OpenGL
2001-09-20 05:19:47 +08:00
display lists. With set to true, calls to Drawable::setUseDisplayList,
whereas when set to false, no display lists can be created and calls
to setUseDisplayList are ignored, and a warning is produced. The later
is typically used to guard against the switching on of display lists
on objects with dynamic internal data such as continuous Level of Detail
algorithms.
<DL><DT><DD></DL><P>
<A NAME="getSupportsDisplayList"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.16"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const bool getSupportsDisplayList() const </B></TT>
2001-12-25 05:56:22 +08:00
<DD>Get whether display lists are supported for this drawable instance
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="setUseDisplayList"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.17"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setUseDisplayList(const bool flag)</B></TT>
<DD>When set to true, force the draw method to use OpenGL Display List for rendering.
If false rendering directly. If the display list has not been already
compile the next call to draw will automatically create the display list.
<DL><DT><DD></DL><P>
<A NAME="getUseDisplayList"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.18"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const bool getUseDisplayList() const </B></TT>
<DD>Return whether OpenGL display lists are being used for rendering
<DL><DT><DD></DL><P>
<A NAME="dirtyDisplayList"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.19"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void dirtyDisplayList()</B></TT>
<DD>Force a recompile on next draw() of any OpenGL display list associated with this geoset
<DL><DT><DD></DL><P>
<A NAME="dirtyBound"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.20"></A>
2002-02-09 18:54:18 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void dirtyBound()</B></TT>
2001-12-25 05:56:22 +08:00
<DD>Dirty the bounding box, forcing a computeBound() on the next call
to getBound(). Should be called in the internal geometry of the Drawable
is modified.
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="getBound"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.21"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="BoundingBox.html">BoundingBox</A>&amp; getBound() const </B></TT>
<DD>get bounding box of geoset.
Note, now made virtual to make it possible to implement user-drawn
objects albeit so what crudely, to be improved later.
<DL><DT><DD></DL><P>
<A NAME="compile"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.22"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void compile(<!1><A HREF="State.html">State</A>&amp; state)</B></TT>
<DD>Immediately compile this drawable into an OpenGL Display List.
2001-12-25 05:56:22 +08:00
Note I, operation is ignored if _useDisplayList to false.
Note II, compile is not intended to be overridden in subclasses.
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
2002-07-17 04:07:32 +08:00
<A NAME="AppCallback"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.23"></A>
2002-07-17 04:07:32 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>struct AppCallback: public <!1><A HREF="Referenced.html">osg::Referenced</A></B></TT>
<DL><DT><DD></DL><P><DL>
<A NAME="app"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.23.1"></A>
2002-07-17 04:07:32 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void app(<!1><A HREF="NodeVisitor.html">osg::NodeVisitor</A>* visitor, <!1><A HREF="Drawable.html">osg::Drawable</A>* drawable) = 0</B></TT>
<DD>do customized app code
<DL><DT><DD></DL><P></DL>
<A NAME="setAppCallback"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.24"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setAppCallback(<!1><A HREF="Drawable.html#DOC.2.42.23">AppCallback</A>* ac)</B></TT>
2002-07-17 04:07:32 +08:00
<DD>Set the AppCallback which allows users to attach customize the undating of an object during the app traversal
<DL><DT><DD></DL><P>
<A NAME="getAppCallback"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.25"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Drawable.html#DOC.2.42.23">AppCallback</A>* getAppCallback()</B></TT>
2002-07-17 04:07:32 +08:00
<DD>Get the non const AppCallback
<DL><DT><DD></DL><P>
<A NAME="getAppCallback"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.26"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const <!1><A HREF="Drawable.html#DOC.2.42.23">AppCallback</A>* getAppCallback() const </B></TT>
2002-07-17 04:07:32 +08:00
<DD>Get the const AppCallback
<DL><DT><DD></DL><P>
<A NAME="CullCallback"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.27"></A>
2002-07-17 04:07:32 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>struct CullCallback: public <!1><A HREF="Referenced.html">osg::Referenced</A></B></TT>
<DL><DT><DD></DL><P><DL>
<A NAME="cull"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.27.1"></A>
2002-07-17 04:07:32 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual bool cull(<!1><A HREF="NodeVisitor.html">osg::NodeVisitor</A>* visitor, <!1><A HREF="Drawable.html">osg::Drawable</A>* drawable, <!1><A HREF="State.html">osg::State</A>* state=NULL) const = 0</B></TT>
<DD>do customized cull code
<DL><DT><DD></DL><P></DL>
<A NAME="setCullCallback"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.28"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setCullCallback(<!1><A HREF="Drawable.html#DOC.2.42.27">CullCallback</A>* cc)</B></TT>
2002-07-17 04:07:32 +08:00
<DD>Set the CullCallback which allows users to attach customize the culling of Drawable during the cull traversal
<DL><DT><DD></DL><P>
<A NAME="getCullCallback"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.29"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Drawable.html#DOC.2.42.27">CullCallback</A>* getCullCallback()</B></TT>
2002-07-17 04:07:32 +08:00
<DD>Get the non const CullCallback
<DL><DT><DD></DL><P>
<A NAME="getCullCallback"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.30"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const <!1><A HREF="Drawable.html#DOC.2.42.27">CullCallback</A>* getCullCallback() const </B></TT>
2002-07-17 04:07:32 +08:00
<DD>Get the const CullCallback
<DL><DT><DD></DL><P>
2002-02-09 18:54:18 +08:00
<A NAME="DrawCallback"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.31"></A>
2002-02-09 18:54:18 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>struct DrawCallback: public <!1><A HREF="Referenced.html">osg::Referenced</A></B></TT>
<DD>Callback attached to an Drawable which allows the users to customize the drawing of an exist Drawable object.
The draw callback is implement as a replacement to the Drawable's own drawImmediateMode() method, if the
the user intends to decorate the exist draw code then simple call the drawable->drawImmediateMode() from
with the callbacks drawImmediateMode() method. This allows the users to do both pre and post callbacks
without fuss and can even diable the inner draw in required.
<DL><DT><DD></DL><P><DL>
<A NAME="drawImmediateMode"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.31.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void drawImmediateMode(<!1><A HREF="State.html">State</A>&amp; state, <!1><A HREF="Drawable.html">osg::Drawable</A>* drawable) const = 0</B></TT>
2002-02-09 18:54:18 +08:00
<DD>do customized draw code
<DL><DT><DD></DL><P></DL>
<A NAME="setDrawCallback"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.32"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setDrawCallback(<!1><A HREF="Drawable.html#DOC.2.42.31">DrawCallback</A>* dc)</B></TT>
2002-02-09 18:54:18 +08:00
<DD>Set the DrawCallback which allows users to attach customize the drawing of existing Drawable object
<DL><DT><DD></DL><P>
<A NAME="getDrawCallback"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.33"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Drawable.html#DOC.2.42.31">DrawCallback</A>* getDrawCallback()</B></TT>
<DD>Get the non const DrawCallback
2002-02-09 18:54:18 +08:00
<DL><DT><DD></DL><P>
<A NAME="getDrawCallback"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.34"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const <!1><A HREF="Drawable.html#DOC.2.42.31">DrawCallback</A>* getDrawCallback() const </B></TT>
<DD>Get the const DrawCallback
<DL><DT><DD></DL><P>
2001-09-20 05:19:47 +08:00
<A NAME="drawImmediateMode"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.35"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void drawImmediateMode(<!1><A HREF="State.html">State</A>&amp; state) = 0</B></TT>
<DD>draw directly ignoring an OpenGL display list which could be attached.
This is the internal draw method which does the drawing itself,
and is the method to override when deriving from Drawable.
<DL><DT><DD></DL><P>
<A NAME="deleteDisplayList"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.36"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static void deleteDisplayList(uint contextID, uint globj)</B></TT>
<DD>use deleteDisplayList instead of glDeleteList to allow
OpenGL display list to cached until they can be deleted
by the OpenGL context in which they were created, specified
by contextID
<DL><DT><DD></DL><P>
<A NAME="flushDeletedDisplayLists"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.37"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static void flushDeletedDisplayLists(uint contextID)</B></TT>
<DD>flush all the cached display list which need to be deleted
in the OpenGL context related to contextID
<DL><DT><DD></DL><P>
2002-07-19 03:54:11 +08:00
<A NAME="AttributeType"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.38"></A>
2002-07-19 03:54:11 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>enum AttributeType</B></TT>
2001-12-25 05:56:22 +08:00
<DL><DT><DD></DL><P><DL>
2002-07-19 03:54:11 +08:00
<A NAME="VERTICES"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.38.1"></A>
2002-07-19 03:54:11 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> VERTICES</B></TT>
2001-12-25 05:56:22 +08:00
<DL><DT><DD></DL><P>
<A NAME="NORMALS"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.38.2"></A>
2001-12-25 05:56:22 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> NORMALS</B></TT>
<DL><DT><DD></DL><P>
<A NAME="COLORS"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.38.3"></A>
2001-12-25 05:56:22 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> COLORS</B></TT>
<DL><DT><DD></DL><P>
<A NAME="TEXTURE_COORDS"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.38.4"></A>
2001-12-25 05:56:22 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> TEXTURE_COORDS</B></TT>
<DL><DT><DD></DL><P>
<A NAME="TEXTURE_COORDS_0"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.38.5"></A>
2001-12-25 05:56:22 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> TEXTURE_COORDS_0</B></TT>
<DL><DT><DD></DL><P>
<A NAME="TEXTURE_COORDS_1"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.38.6"></A>
2001-12-25 05:56:22 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> TEXTURE_COORDS_1</B></TT>
<DL><DT><DD></DL><P>
<A NAME="TEXTURE_COORDS_2"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.38.7"></A>
2001-12-25 05:56:22 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> TEXTURE_COORDS_2</B></TT>
<DL><DT><DD></DL><P>
<A NAME="TEXTURE_COORDS_3"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.38.8"></A>
2001-12-25 05:56:22 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> TEXTURE_COORDS_3</B></TT>
2002-07-19 03:54:11 +08:00
<DL><DT><DD></DL><P>
<A NAME="TEXTURE_COORDS_4"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.38.9"></A>
2002-07-19 03:54:11 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> TEXTURE_COORDS_4</B></TT>
<DL><DT><DD></DL><P>
<A NAME="TEXTURE_COORDS_5"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.38.10"></A>
2002-07-19 03:54:11 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> TEXTURE_COORDS_5</B></TT>
<DL><DT><DD></DL><P>
<A NAME="TEXTURE_COORDS_6"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.38.11"></A>
2002-07-19 03:54:11 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> TEXTURE_COORDS_6</B></TT>
<DL><DT><DD></DL><P>
<A NAME="TEXTURE_COORDS_7"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.38.12"></A>
2002-07-19 03:54:11 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> TEXTURE_COORDS_7</B></TT>
2001-12-25 05:56:22 +08:00
<DL><DT><DD></DL><P></DL>
2002-07-19 03:54:11 +08:00
<A NAME="accept"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.40"></A>
2002-07-19 03:54:11 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void accept(<!1><A HREF="AttributeFunctor.html">AttributeFunctor</A>&amp;)</B></TT>
<DD>accept an AttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has
2001-12-25 05:56:22 +08:00
<DL><DT><DD></DL><P>
2002-07-19 03:54:11 +08:00
<A NAME="accept"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.42"></A>
2002-07-19 03:54:11 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void accept(<!1><A HREF="PrimitiveFunctor.html">PrimitiveFunctor</A>&amp;)</B></TT>
<DD>accept a PrimtiveFunctor and call its methods to tell it about the interal primtives that this Drawable has
2002-07-17 04:07:32 +08:00
<DL><DT><DD></DL><P>
2001-09-20 05:19:47 +08:00
<A NAME="operator = "></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.43"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Drawable.html">Drawable</A>&amp; operator = (const <!1><A HREF="Drawable.html">Drawable</A>&amp;)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="~Drawable"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.44"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~Drawable()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="computeBound"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.45"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual const bool computeBound() const </B></TT>
2001-09-20 05:19:47 +08:00
<DD>compute the bounding box of the drawable. Method must be
2001-12-25 05:56:22 +08:00
implemented by subclasses.
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
2002-02-09 18:54:18 +08:00
<A NAME="addParent"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.46"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void addParent(osg::Node* node)</B></TT>
2002-02-09 18:54:18 +08:00
<DL><DT><DD></DL><P>
<A NAME="removeParent"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.47"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void removeParent(osg::Node* node)</B></TT>
2002-02-09 18:54:18 +08:00
<DL><DT><DD></DL><P>
<A NAME="_parents"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.48"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Drawable.html#DOC.2.42.6">ParentList</A> _parents</B></TT>
2002-02-09 18:54:18 +08:00
<DL><DT><DD></DL><P>
2001-09-20 05:19:47 +08:00
<A NAME="_dstate"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.49"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="ref_ptr.html">ref_ptr</A>&lt;<!1><A HREF="StateSet.html">StateSet</A>&gt; _dstate</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_supportsDisplayList"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.50"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool _supportsDisplayList</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_useDisplayList"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.51"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool _useDisplayList</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_globjList"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.52"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::vector&lt;uint&gt; GLObjectList mutable GLObjectList _globjList</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_bbox"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.53"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>mutable <!1><A HREF="BoundingBox.html">BoundingBox</A> _bbox</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_bbox_computed"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.54"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>mutable bool _bbox_computed</B></TT>
<DL><DT><DD></DL><P>
2002-07-17 04:07:32 +08:00
<A NAME="_appCallback"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.55"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="ref_ptr.html">ref_ptr</A>&lt;<!1><A HREF="Drawable.html#DOC.2.42.23">AppCallback</A>&gt; _appCallback</B></TT>
2002-07-17 04:07:32 +08:00
<DL><DT><DD></DL><P>
2002-02-09 18:54:18 +08:00
<A NAME="_drawCallback"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.56"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="ref_ptr.html">ref_ptr</A>&lt;<!1><A HREF="Drawable.html#DOC.2.42.31">DrawCallback</A>&gt; _drawCallback</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_cullCallback"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.57"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="ref_ptr.html">ref_ptr</A>&lt;<!1><A HREF="Drawable.html#DOC.2.42.27">CullCallback</A>&gt; _cullCallback</B></TT>
2002-02-09 18:54:18 +08:00
<DL><DT><DD></DL><P>
2001-09-20 05:19:47 +08:00
<A NAME="s_deletedDisplayListCache"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.58"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::map&lt;uint,std::set&lt;uint&gt; &gt;static DeletedDisplayListCache DeletedDisplayListCache s_deletedDisplayListCache</B></TT>
2001-12-25 05:56:22 +08:00
<DL><DT><DD></DL><P>
<A NAME="draw"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.42.59"></A>
2001-12-25 05:56:22 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void draw(<!1><A HREF="State.html">State</A>&amp; state)</B></TT>
<DD>draw OpenGL primitives.
If the drawable has _useDisplayList set to true then use an OpenGL display
list, automatically compiling one if required.
Otherwise call drawImmediateMode().
Note, draw method should *not* be overridden in subclasses as it
manages the optional display list.
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P></DL>
<HR>
<DL><DT><B>Direct child classes:
</B><DD><A HREF="ImpostorSprite.html">ImpostorSprite</A><BR>
2002-07-17 04:07:32 +08:00
<A HREF="Geometry.html">Geometry</A><BR>
2001-09-20 05:19:47 +08:00
<A HREF="GeoSet.html">GeoSet</A><BR>
<A HREF="DrawPixels.html">DrawPixels</A><BR>
2001-09-20 05:19:47 +08:00
</DL>
2002-06-05 20:35:59 +08:00
<DL><DT><DT><B>Friends:</B><DD> class Node<BR> class <!1><A HREF="Geode.html">Geode</A><BR><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>
2001-09-20 05:19:47 +08:00
<BR>
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
</BODY>
</HTML>