OpenSceneGraph/doc/doc++/osgUtil/Simplifier.html
Robert Osfield ed10594139 Updated docs
2004-08-06 06:53:36 +00:00

167 lines
8.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>class OSGUTIL_EXPORT osgUtil::Simplifier</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.6">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class OSGUTIL_EXPORT <A HREF="#DOC.DOCU">osgUtil::Simplifier</A></H2></H2><BLOCKQUOTE>A simplifier for reducing the number of traingles in osg::Geometry</BLOCKQUOTE>
<HR>
<H2>Inheritance:</H2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=65>
<param name=classes value="Mosg::NodeVisitor,M,CSimplifier,MSimplifier.html">
<param name=before value="M,M">
<param name=after value="Md_,M">
<param name=indent value="0,1">
<param name=arrowdir value="down">
</APPLET>
<HR>
<DL>
<P><DL>
<DT><H3>Public Classes</H3><DD><DT>
class <B><A HREF="ContinueSimplificationCallback.html">ContinueSimplificationCallback</A></B>: public osg::Referenced
</DL></P>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.22.1">Simplifier</A></B>(float sampleRatio=1.0f, float maximumError=0.0f)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.22.2">setSampleRatio</A></B>(float sampleRatio)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>float <B><A HREF="#DOC.2.22.3">getSampleRatio</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.22.4">setMaximumError</A></B>(float <!1><A HREF="Tesselator.html#DOC.2.26.32">error</A>)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>float <B><A HREF="#DOC.2.22.5">getMaximumError</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.22.7">setContinueSimplificationCallback</A></B>(<!1><A HREF="ContinueSimplificationCallback.html">ContinueSimplificationCallback</A>* cb)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="ContinueSimplificationCallback.html">ContinueSimplificationCallback</A>* <B><A HREF="#DOC.2.22.8">getContinueSimplificationCallback</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const <!1><A HREF="ContinueSimplificationCallback.html">ContinueSimplificationCallback</A>* <B><A HREF="#DOC.2.22.9">getContinueSimplificationCallback</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.22.10">continueSimplification</A></B>(float nextError, unsigned int numOriginalPrimitives, unsigned int numRemainingPrimitives) const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual bool <B><A HREF="#DOC.2.22.11">continueSimplificationImplementation</A></B>(float nextError, unsigned int numOriginalPrimitives, unsigned int numRemainingPrimitives) const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.22.12">apply</A></B>(osg::Geode&amp; geode)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.22.13">simplify</A></B>(osg::Geometry&amp; geometry)
<DD><I>simply the geometry</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.22.16">simplify</A></B>(osg::Geometry&amp; geometry, const <!1><A HREF="Simplifier.html#DOC.2.22.14">IndexList</A>&amp; protectedPoints)
<DD><I>simply the geometry, whilst protecting key points from being modified</I>
</DL></P>
<P><DL>
<DT><H3>Public</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::vector&lt;unsigned int&gt; <B><A HREF="#DOC.2.22.14">IndexList</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.22.15">a list of point indices</A></B>
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>float <B><A HREF="#DOC.2.22.17">_sampleRatio</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>float <B><A HREF="#DOC.2.22.18">_maximumError</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;<!1><A HREF="ContinueSimplificationCallback.html">ContinueSimplificationCallback</A>&gt; <B><A HREF="#DOC.2.22.19">_continueSimplificationCallback</A></B>
</DL></P>
</DL>
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>A simplifier for reducing the number of traingles in osg::Geometry</BLOCKQUOTE>
<DL>
<A NAME="Simplifier"></A>
<A NAME="DOC.2.22.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> Simplifier(float sampleRatio=1.0f, float maximumError=0.0f)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="setSampleRatio"></A>
<A NAME="DOC.2.22.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setSampleRatio(float sampleRatio)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getSampleRatio"></A>
<A NAME="DOC.2.22.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>float getSampleRatio() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setMaximumError"></A>
<A NAME="DOC.2.22.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setMaximumError(float <!1><A HREF="Tesselator.html#DOC.2.26.32">error</A>)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getMaximumError"></A>
<A NAME="DOC.2.22.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>float getMaximumError() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setContinueSimplificationCallback"></A>
<A NAME="DOC.2.22.7"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setContinueSimplificationCallback(<!1><A HREF="ContinueSimplificationCallback.html">ContinueSimplificationCallback</A>* cb)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getContinueSimplificationCallback"></A>
<A NAME="DOC.2.22.8"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="ContinueSimplificationCallback.html">ContinueSimplificationCallback</A>* getContinueSimplificationCallback()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getContinueSimplificationCallback"></A>
<A NAME="DOC.2.22.9"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const <!1><A HREF="ContinueSimplificationCallback.html">ContinueSimplificationCallback</A>* getContinueSimplificationCallback() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="continueSimplification"></A>
<A NAME="DOC.2.22.10"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool continueSimplification(float nextError, unsigned int numOriginalPrimitives, unsigned int numRemainingPrimitives) const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="continueSimplificationImplementation"></A>
<A NAME="DOC.2.22.11"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual bool continueSimplificationImplementation(float nextError, unsigned int numOriginalPrimitives, unsigned int numRemainingPrimitives) const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="apply"></A>
<A NAME="DOC.2.22.12"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void apply(osg::Geode&amp; geode)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="simplify"></A>
<A NAME="DOC.2.22.13"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void simplify(osg::Geometry&amp; geometry)</B></TT>
<DD>simply the geometry
<DL><DT><DD></DL><P>
<A NAME="IndexList"></A>
<A NAME="DOC.2.22.14"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::vector&lt;unsigned int&gt; IndexList</B></TT>
<DL><DT><DD></DL><P>
<A NAME="a list of point indices"></A>
<A NAME="DOC.2.22.15"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> a list of point indices</B></TT>
<DD>a list of point indices
<DL><DT><DD></DL><P>
<A NAME="simplify"></A>
<A NAME="DOC.2.22.16"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void simplify(osg::Geometry&amp; geometry, const <!1><A HREF="Simplifier.html#DOC.2.22.14">IndexList</A>&amp; protectedPoints)</B></TT>
<DD>simply the geometry, whilst protecting key points from being modified
<DL><DT><DD></DL><P>
<A NAME="_sampleRatio"></A>
<A NAME="DOC.2.22.17"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>float _sampleRatio</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_maximumError"></A>
<A NAME="DOC.2.22.18"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>float _maximumError</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_continueSimplificationCallback"></A>
<A NAME="DOC.2.22.19"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;<!1><A HREF="ContinueSimplificationCallback.html">ContinueSimplificationCallback</A>&gt; _continueSimplificationCallback</B></TT>
<DL><DT><DD></DL><P></DL>
<HR><DL><DT><B>This class has no child classes.</B></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>