OpenSceneGraph/doc/doc++/osg/ImpostorSprite.html

496 lines
24 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::ImpostorSprite</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.8">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class SG_EXPORT <A HREF="#DOC.DOCU">osg::ImpostorSprite</A></H2></H2><BLOCKQUOTE>An ImposterSprite is a textured quad which is rendered in place a 3D geometry.</BLOCKQUOTE>
<HR>
<H2>Inheritance:</H2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=125>
<param name=classes value="CReferenced,MReferenced.html,CObject,MObject.html,CDrawable,MDrawable.html,CImpostorSprite,MImpostorSprite.html">
<param name=before value="M,M,M,M">
<param name=after value="Md_SPSP,Md_SP,Md_,M">
<param name=indent value="0,1,2,3">
<param name=arrowdir value="down">
</APPLET>
<HR>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.51.1">ImpostorSprite</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <!1><A HREF="Object.html">Object</A>* <B><A HREF="#DOC.2.51.2">cloneType</A></B>() const
2002-02-09 18:54:18 +08:00
<DD><I>Clone an object of the same type as an ImpostorSprite</I>
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <!1><A HREF="Object.html">Object</A>* <B><A HREF="#DOC.2.51.3">clone</A></B>(const <!1><A HREF="CopyOp.html">CopyOp</A>&amp;) const
2002-02-09 18:54:18 +08:00
<DD><I>Clone on ImpostorSprite just returns a clone of type, since it is not appropriate to share data of an ImpostorSprite</I>
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual bool <B><A HREF="#DOC.2.51.4">isSameKindAs</A></B>(const <!1><A HREF="Object.html">Object</A>* obj) const
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual const char* <B><A HREF="#DOC.2.51.5">className</A></B>() const
2002-02-09 18:54:18 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.51.6">setParent</A></B>(<!1><A HREF="Impostor.html">Impostor</A>* parent)
2001-09-20 05:19:47 +08:00
<DD><I>Set the parent, which must be an Impostor.</I>
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Impostor.html">Impostor</A>* <B><A HREF="#DOC.2.51.7">getParent</A></B>()
2001-09-20 05:19:47 +08:00
<DD><I>Get the parent, which is an Impostor.</I>
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const <!1><A HREF="Impostor.html">Impostor</A>* <B><A HREF="#DOC.2.51.8">getParent</A></B>() const
2001-09-20 05:19:47 +08:00
<DD><I>Get the const parent, which is an Impostor.</I>
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.51.9">setStoredLocalEyePoint</A></B>(const <!1><A HREF="Vec3.html">Vec3</A>&amp; v)
2001-09-20 05:19:47 +08:00
<DD><I>Set the eye point for when the ImpsotorSprite was snapped</I>
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="Vec3.html">Vec3</A>&amp; <B><A HREF="#DOC.2.51.10">getStoredLocalEyePoint</A></B>() const
2001-09-20 05:19:47 +08:00
<DD><I>Get the eye point for when the ImpsotorSprite was snapped</I>
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.51.11">setLastFrameUsed</A></B>(const int frameNumber)
2001-09-20 05:19:47 +08:00
<DD><I>Set the frame number for when the ImpostorSprite was last used in rendering</I>
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline int <B><A HREF="#DOC.2.51.12">getLastFrameUsed</A></B>() const
2001-09-20 05:19:47 +08:00
<DD><I>Get the frame number for when the ImpostorSprite was last used in rendering</I>
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="Vec3.html">Vec3</A>* <B><A HREF="#DOC.2.51.13">getCoords</A></B>()
2001-09-20 05:19:47 +08:00
<DD><I>Get the coordinates of the corners of the quad.</I>
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="Vec3.html">Vec3</A>* <B><A HREF="#DOC.2.51.14">getCoords</A></B>() const
2001-09-20 05:19:47 +08:00
<DD><I>Get the const coordinates of the corners of the quad</I>
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="Vec2.html">Vec2</A>* <B><A HREF="#DOC.2.51.15">getTexCoords</A></B>()
2001-09-20 05:19:47 +08:00
<DD><I>Get the texture coordinates of the corners of the quad.</I>
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="Vec2.html">Vec2</A>* <B><A HREF="#DOC.2.51.16">getTexCoords</A></B>() const
2001-09-20 05:19:47 +08:00
<DD><I>Get the const texture coordinates of the corners of the quad</I>
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="Vec3.html">Vec3</A>* <B><A HREF="#DOC.2.51.17">getControlCoords</A></B>()
2001-09-20 05:19:47 +08:00
<DD><I>Get the control coordinates of the corners of the quad.</I>
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="Vec3.html">Vec3</A>* <B><A HREF="#DOC.2.51.18">getControlCoords</A></B>() const
2001-09-20 05:19:47 +08:00
<DD><I>Get the const control coordinates of the corners of the quad</I>
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const float <B><A HREF="#DOC.2.51.19">calcPixelError</A></B>(const <!1><A HREF="Matrix.html">Matrix</A>&amp; MVPW) const
<DD><I>calculate the pixel error value for passing in the ModelViewProjectionWindow transform, which transform local coords into screen space</I>
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.51.20">setTexture</A></B>(<!1><A HREF="Texture.html">Texture</A>* tex, int <!1><A HREF="ImpostorSprite.html#DOC.2.51.23">s</A>, int <!1><A HREF="ImpostorSprite.html#DOC.2.51.24">t</A>)
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Texture.html">Texture</A>* <B><A HREF="#DOC.2.51.21">getTexture</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const <!1><A HREF="Texture.html">Texture</A>* <B><A HREF="#DOC.2.51.22">getTexture</A></B>() const
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const int <B><A HREF="#DOC.2.51.23">s</A></B>() const
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const int <B><A HREF="#DOC.2.51.24">t</A></B>() const
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.51.25">drawImmediateMode</A></B>(<!1><A HREF="State.html">State</A>&amp; state)
2001-09-20 05:19:47 +08:00
<DD><I>draw ImpostorSprite directly.</I>
2001-12-25 05:56:22 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.51.26">getStats</A></B>(<!1><A HREF="Statistics.html">Statistics</A> &amp;stat)
2001-09-20 05:19:47 +08:00
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Impostor.html">Impostor</A>* <B><A HREF="#DOC.2.51.31">_parent</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="ImpostorSpriteManager.html">ImpostorSpriteManager</A>* <B><A HREF="#DOC.2.51.32">_ism</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="ImpostorSprite.html">ImpostorSprite</A>* <B><A HREF="#DOC.2.51.33">_previous</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="ImpostorSprite.html">ImpostorSprite</A>* <B><A HREF="#DOC.2.51.34">_next</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.51.35">_lastFrameUsed</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Vec3.html">Vec3</A> <B><A HREF="#DOC.2.51.36">_storedLocalEyePoint</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Vec3.html">Vec3</A> <B><A HREF="#DOC.2.51.37">_coords</A></B>[4]
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Vec2.html">Vec2</A> <B><A HREF="#DOC.2.51.38">_texcoords</A></B>[4]
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Vec3.html">Vec3</A> <B><A HREF="#DOC.2.51.39">_controlcoords</A></B>[4]
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Texture.html">Texture</A>* <B><A HREF="#DOC.2.51.40">_texture</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.51.41">_s</A></B>
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.51.42">_t</A></B>
2001-09-20 05:19:47 +08:00
</DL></P>
<P><DL>
<DT><H3>Protected Methods</H3><DD><DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.51.27">ImpostorSprite</A></B>(const <!1><A HREF="ImpostorSprite.html#DOC.2.51.27">ImpostorSprite</A>&amp;)
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="ImpostorSprite.html">ImpostorSprite</A>&amp; <B><A HREF="#DOC.2.51.28">operator = </A></B>(const <!1><A HREF="ImpostorSprite.html">ImpostorSprite</A>&amp;)
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <B><A HREF="#DOC.2.51.29">~ImpostorSprite</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual const bool <B><A HREF="#DOC.2.51.30">computeBound</A></B>() const
2001-09-20 05:19:47 +08:00
</DL></P>
</DL>
<HR><H3>Inherited from <A HREF="Drawable.html">Drawable</A>:</H3>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="o" SRC=icon2.gif>inline const <!1><A HREF="Drawable.html#DOC.2.34.5">ParentList</A>&amp; <B>getParents</B>() const
2002-02-09 18:54:18 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="o" SRC=icon2.gif>inline <!1><A HREF="Drawable.html#DOC.2.34.5">ParentList</A> <B>getParents</B>()
2002-02-09 18:54:18 +08:00
<DT>
<IMG ALT="o" SRC=icon2.gif>inline const unsigned int <B>getNumParents</B>() const
2002-02-09 18:54:18 +08:00
<DT>
2001-09-20 05:19:47 +08:00
<IMG ALT="o" SRC=icon2.gif>inline void <B>setStateSet</B>(<!1><A HREF="StateSet.html">StateSet</A>* state)
<DT>
<IMG ALT="o" SRC=icon2.gif>inline <!1><A HREF="StateSet.html">StateSet</A>* <B>getStateSet</B>()
<DT>
<IMG ALT="o" SRC=icon2.gif>inline const <!1><A HREF="StateSet.html">StateSet</A>* <B>getStateSet</B>() const
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>setSupportsDisplayList</B>(const bool flag)
<DT>
<IMG ALT="o" SRC=icon2.gif>inline const bool <B>getSupportsDisplayList</B>() const
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>setUseDisplayList</B>(const bool flag)
<DT>
<IMG ALT="o" SRC=icon2.gif>inline const bool <B>getUseDisplayList</B>() const
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>dirtyDisplayList</B>()
<DT>
2002-02-09 18:54:18 +08:00
<IMG ALT="o" SRC=icon2.gif>void <B>dirtyBound</B>()
2001-09-20 05:19:47 +08:00
<DT>
<IMG ALT="o" SRC=icon2.gif>inline const <!1><A HREF="BoundingBox.html">BoundingBox</A>&amp; <B>getBound</B>() const
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>compile</B>(<!1><A HREF="State.html">State</A>&amp; state)
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="o" SRC=icon2.gif>void <B>setDrawCallback</B>(<!1><A HREF="Drawable.html#DOC.2.34.22">DrawCallback</A>* dc)
2002-02-09 18:54:18 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="o" SRC=icon2.gif><!1><A HREF="Drawable.html#DOC.2.34.22">DrawCallback</A>* <B>getDrawCallback</B>()
2002-02-09 18:54:18 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="o" SRC=icon2.gif>const <!1><A HREF="Drawable.html#DOC.2.34.22">DrawCallback</A>* <B>getDrawCallback</B>() const
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="o" SRC=icon2.gif>void <B>setCullCallback</B>(<!1><A HREF="Drawable.html#DOC.2.34.26">CullCallback</A>* cc)
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="o" SRC=icon2.gif><!1><A HREF="Drawable.html#DOC.2.34.26">CullCallback</A>* <B>getCullCallback</B>()
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="o" SRC=icon2.gif>const <!1><A HREF="Drawable.html#DOC.2.34.26">CullCallback</A>* <B>getCullCallback</B>() const
2002-02-09 18:54:18 +08:00
<DT>
2001-09-20 05:19:47 +08:00
<IMG ALT="o" SRC=icon2.gif>static void <B>deleteDisplayList</B>(uint contextID, uint globj)
<DT>
<IMG ALT="o" SRC=icon2.gif>static void <B>flushDeletedDisplayLists</B>(uint contextID)
2001-12-25 05:56:22 +08:00
<DT>
<IMG ALT="o" SRC=icon2.gif>virtual AttributeBitMask <B>suppportsAttributeOperation</B>() const
<DT>
<IMG ALT="o" SRC=icon2.gif>virtual AttributeBitMask <B>applyAttributeOperation</B>(<!1><A HREF="AttributeFunctor.html">AttributeFunctor</A>&amp;)
<DT>
<IMG ALT="o" SRC=icon2.gif>inline void <B>draw</B>(<!1><A HREF="State.html">State</A>&amp; state)
</DL></P>
<P><DL>
<DT><H3>Public Members</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif>typedef std::vector&lt;Node*&gt; <B>ParentList</B>
2002-02-09 18:54:18 +08:00
<DT>
<IMG ALT="o" SRC=icon2.gif>struct <B>DrawCallback</B>: public <!1><A HREF="Referenced.html">osg::Referenced</A>
<DT>
<IMG ALT="o" SRC=icon2.gif>struct <B>CullCallback</B>: public <!1><A HREF="Referenced.html">osg::Referenced</A>
<DT>
2001-12-25 05:56:22 +08:00
<IMG ALT="o" SRC=icon2.gif>typedef uint AttributeBitMaskenum <B>AttributeBitMaskValues</B>
<DT>
class <B><A HREF="AttributeFunctor.html">AttributeFunctor</A></B>
2001-09-20 05:19:47 +08:00
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="o" SRC=icon2.gif><!1><A HREF="Drawable.html#DOC.2.34.5">ParentList</A> <B>_parents</B>
2002-02-09 18:54:18 +08:00
<DT>
2001-09-20 05:19:47 +08:00
<IMG ALT="o" SRC=icon2.gif><!1><A HREF="ref_ptr.html">ref_ptr</A>&lt;<!1><A HREF="StateSet.html">StateSet</A>&gt; <B>_dstate</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>bool <B>_supportsDisplayList</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>bool <B>_useDisplayList</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>mutable <!1><A HREF="BoundingBox.html">BoundingBox</A> <B>_bbox</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>mutable bool <B>_bbox_computed</B>
2002-02-09 18:54:18 +08:00
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="o" SRC=icon2.gif><!1><A HREF="ref_ptr.html">ref_ptr</A>&lt;<!1><A HREF="Drawable.html#DOC.2.34.22">DrawCallback</A>&gt; <B>_drawCallback</B>
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="o" SRC=icon2.gif><!1><A HREF="ref_ptr.html">ref_ptr</A>&lt;<!1><A HREF="Drawable.html#DOC.2.34.26">CullCallback</A>&gt; <B>_cullCallback</B>
2002-02-09 18:54:18 +08:00
</DL></P>
<P><DL>
<DT><H3>Protected Methods</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif>void <B>addParent</B>(osg::Node* node)
2002-02-09 18:54:18 +08:00
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>removeParent</B>(osg::Node* node)
2001-09-20 05:19:47 +08:00
</DL></P>
<P><DL>
<DT><H3>Protected Members</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif>typedef std::vector&lt;uint&gt; GLObjectList mutable GLObjectList <B>_globjList</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>typedef std::map&lt;uint,std::set&lt;uint&gt; &gt;static DeletedDisplayListCache DeletedDisplayListCache <B>s_deletedDisplayListCache</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>
2002-06-05 20:35:59 +08:00
<IMG ALT="o" SRC=icon2.gif>inline void <B>setDataVariance</B>(const <!1><A HREF="Object.html#DOC.2.78.7">DataVariance</A> dv)
<DT>
2002-06-05 20:35:59 +08:00
<IMG ALT="o" SRC=icon2.gif>inline const <!1><A HREF="Object.html#DOC.2.78.7">DataVariance</A> <B>getDataVariance</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-06-05 20:35:59 +08:00
<IMG ALT="o" SRC=icon2.gif><!1><A HREF="Object.html#DOC.2.78.7">DataVariance</A> <B>_dataVariance</B>
</DL></P>
2001-09-20 05:19:47 +08:00
</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>
<BLOCKQUOTE>An ImposterSprite is a textured quad which is rendered in place a
3D geometry. The ImposterSprite is generated by rendering the original
3D geometry to a texture as an image cache. The ImpostorSprite is
2001-12-25 05:56:22 +08:00
automatically generated by the osgUtil::CullVisitor so it not
2001-09-20 05:19:47 +08:00
necessary to deal with it directly.</BLOCKQUOTE>
<DL>
<A NAME="ImpostorSprite"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.1"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> ImpostorSprite()</B></TT>
<DL><DT><DD></DL><P>
2002-02-09 18:54:18 +08:00
<A NAME="cloneType"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.2"></A>
2002-02-09 18:54:18 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual <!1><A HREF="Object.html">Object</A>* cloneType() const </B></TT>
<DD>Clone an object of the same type as an ImpostorSprite
<DL><DT><DD></DL><P>
2001-09-20 05:19:47 +08:00
<A NAME="clone"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.3"></A>
2002-02-09 18:54:18 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual <!1><A HREF="Object.html">Object</A>* clone(const <!1><A HREF="CopyOp.html">CopyOp</A>&amp;) const </B></TT>
<DD>Clone on ImpostorSprite just returns a clone of type,
since it is not appropriate to share data of an ImpostorSprite
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="isSameKindAs"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.4"></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>
<A NAME="className"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.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>
<A NAME="setParent"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.6"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setParent(<!1><A HREF="Impostor.html">Impostor</A>* parent)</B></TT>
<DD>Set the parent, which must be an Impostor.
Unlike conventional Drawables, ImpostorSprite's can only ever have
one parent.
<DL><DT><DD></DL><P>
<A NAME="getParent"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.7"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Impostor.html">Impostor</A>* getParent()</B></TT>
<DD>Get the parent, which is an Impostor.
<DL><DT><DD></DL><P>
<A NAME="getParent"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.8"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const <!1><A HREF="Impostor.html">Impostor</A>* getParent() const </B></TT>
<DD>Get the const parent, which is an Impostor.
<DL><DT><DD></DL><P>
<A NAME="setStoredLocalEyePoint"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.9"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setStoredLocalEyePoint(const <!1><A HREF="Vec3.html">Vec3</A>&amp; v)</B></TT>
<DD>Set the eye point for when the ImpsotorSprite was snapped
<DL><DT><DD></DL><P>
<A NAME="getStoredLocalEyePoint"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.10"></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="Vec3.html">Vec3</A>&amp; getStoredLocalEyePoint() const </B></TT>
<DD>Get the eye point for when the ImpsotorSprite was snapped
<DL><DT><DD></DL><P>
<A NAME="setLastFrameUsed"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.11"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setLastFrameUsed(const int frameNumber)</B></TT>
<DD>Set the frame number for when the ImpostorSprite was last used in rendering
<DL><DT><DD></DL><P>
<A NAME="getLastFrameUsed"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.12"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline int getLastFrameUsed() const </B></TT>
<DD>Get the frame number for when the ImpostorSprite was last used in rendering
<DL><DT><DD></DL><P>
<A NAME="getCoords"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.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="Vec3.html">Vec3</A>* getCoords()</B></TT>
<DD>Get the coordinates of the corners of the quad.
Stored in the order, [0] - top_left, [1] - bottom_left, [2] - bottom_right, [3] - top_left.
<DL><DT><DD></DL><P>
<A NAME="getCoords"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.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="Vec3.html">Vec3</A>* getCoords() const </B></TT>
<DD>Get the const coordinates of the corners of the quad
<DL><DT><DD></DL><P>
<A NAME="getTexCoords"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.15"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="Vec2.html">Vec2</A>* getTexCoords()</B></TT>
<DD>Get the texture coordinates of the corners of the quad.
Stored in the order, [0] - top_left, [1] - bottom_left, [2] - bottom_right, [3] - top_left.
<DL><DT><DD></DL><P>
<A NAME="getTexCoords"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.16"></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="Vec2.html">Vec2</A>* getTexCoords() const </B></TT>
<DD>Get the const texture coordinates of the corners of the quad
<DL><DT><DD></DL><P>
<A NAME="getControlCoords"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.17"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="Vec3.html">Vec3</A>* getControlCoords()</B></TT>
<DD>Get the control coordinates of the corners of the quad.
2001-12-25 05:56:22 +08:00
The control coordinates are the corners of the quad projected
2001-09-20 05:19:47 +08:00
out onto the front face of bounding box which enclosed the impostor
geometry when it was pre-rendered into the impostor sprite's texture.
At the point of creation/or update of the impostor sprite the control
2001-12-25 05:56:22 +08:00
coords will lie on top of the corners of the quad in screen space - with a pixel error
2001-09-20 05:19:47 +08:00
or zero. Once the camera moves relative to the impostor sprite the
2001-12-25 05:56:22 +08:00
control coords will no longer lie on top of the corners of the quad in
2001-09-20 05:19:47 +08:00
screen space - a pixel error will have accumulated. This pixel error
2001-12-25 05:56:22 +08:00
can then be used to determine whether the impostor needs to be updated.
2001-09-20 05:19:47 +08:00
Stored in the order, [0] - top_left, [1] - bottom_left, [2] - bottom_right, [3] - top_left.
<DL><DT><DD></DL><P>
<A NAME="getControlCoords"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.18"></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="Vec3.html">Vec3</A>* getControlCoords() const </B></TT>
<DD>Get the const control coordinates of the corners of the quad
<DL><DT><DD></DL><P>
<A NAME="calcPixelError"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.19"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const float calcPixelError(const <!1><A HREF="Matrix.html">Matrix</A>&amp; MVPW) const </B></TT>
<DD>calculate the pixel error value for passing in the ModelViewProjectionWindow transform,
which transform local coords into screen space
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="setTexture"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.20"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setTexture(<!1><A HREF="Texture.html">Texture</A>* tex, int <!1><A HREF="ImpostorSprite.html#DOC.2.51.23">s</A>, int <!1><A HREF="ImpostorSprite.html#DOC.2.51.24">t</A>)</B></TT>
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="getTexture"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.21"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Texture.html">Texture</A>* getTexture()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getTexture"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.22"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const <!1><A HREF="Texture.html">Texture</A>* getTexture() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="s"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.23"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const int s() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="t"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.24"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const int t() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="drawImmediateMode"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.25"></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)</B></TT>
<DD>draw ImpostorSprite directly.
<DL><DT><DD></DL><P>
2001-12-25 05:56:22 +08:00
<A NAME="getStats"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.26"></A>
2001-12-25 05:56:22 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool getStats(<!1><A HREF="Statistics.html">Statistics</A> &amp;stat)</B></TT>
<DL><DT><DD></DL><P>
2001-09-20 05:19:47 +08:00
<A NAME="ImpostorSprite"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.27"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> ImpostorSprite(const <!1><A HREF="ImpostorSprite.html#DOC.2.51.27">ImpostorSprite</A>&amp;)</B></TT>
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="operator = "></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.28"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="ImpostorSprite.html">ImpostorSprite</A>&amp; operator = (const <!1><A HREF="ImpostorSprite.html">ImpostorSprite</A>&amp;)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="~ImpostorSprite"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.29"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~ImpostorSprite()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="computeBound"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.30"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual const bool computeBound() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="_parent"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.31"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Impostor.html">Impostor</A>* _parent</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_ism"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.32"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="ImpostorSpriteManager.html">ImpostorSpriteManager</A>* _ism</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_previous"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.33"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="ImpostorSprite.html">ImpostorSprite</A>* _previous</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_next"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.34"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="ImpostorSprite.html">ImpostorSprite</A>* _next</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_lastFrameUsed"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.35"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _lastFrameUsed</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_storedLocalEyePoint"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.36"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Vec3.html">Vec3</A> _storedLocalEyePoint</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_coords"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.37"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Vec3.html">Vec3</A> _coords[4]</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_texcoords"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.38"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Vec2.html">Vec2</A> _texcoords[4]</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_controlcoords"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.39"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Vec3.html">Vec3</A> _controlcoords[4]</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_texture"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.40"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Texture.html">Texture</A>* _texture</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_s"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.41"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _s</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_t"></A>
2002-06-05 20:35:59 +08:00
<A NAME="DOC.2.51.42"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _t</B></TT>
<DL><DT><DD></DL><P></DL>
<HR><DL><DT><B>This class has no child classes.</B></DL>
2002-02-09 18:54:18 +08:00
<DL><DT><DT><B>Friends:</B><DD> class <!1><A HREF="ImpostorSpriteManager.html">osg::ImpostorSpriteManager</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>