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

217 lines
11 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>class OSGUTIL_EXPORT osgUtil::Optimizer</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.6">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class OSGUTIL_EXPORT <A HREF="#DOC.DOCU">osgUtil::Optimizer</A></H2></H2><BLOCKQUOTE>Insert impostor nodes into scene graph.</BLOCKQUOTE>
<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.11.3">OptimizationOptions</A></B>
<DT>
class OSGUTIL_EXPORT <B><A HREF="FlattenStaticTransformsVisitor.html">FlattenStaticTransformsVisitor</A></B>: public osg::NodeVisitor
<DD><I>Flatten Static Trasform nodes by applying their transform to the geometry on the leaves of the scene graph, then removing the now redundant transforms</I>
<DT>
class OSGUTIL_EXPORT <B><A HREF="CombineStaticTransformsVisitor.html">CombineStaticTransformsVisitor</A></B>: public osg::NodeVisitor
<DD><I>Combine Static Trasform nodes that sit above on another</I>
<DT>
class OSGUTIL_EXPORT <B><A HREF="RemoveEmptyNodesVisitor.html">RemoveEmptyNodesVisitor</A></B>: public osg::NodeVisitor
<DD><I>Remove rendundant nodes, such as groups with one single child</I>
<DT>
class OSGUTIL_EXPORT <B><A HREF="RemoveRedundantNodesVisitor.html">RemoveRedundantNodesVisitor</A></B>: public osg::NodeVisitor
<DD><I>Remove rendundant nodes, such as groups with one single child</I>
<DT>
class OSGUTIL_EXPORT <B><A HREF="TesselateVisitor.html">TesselateVisitor</A></B>: public osg::NodeVisitor
<DD><I>Tesselate all geodes, to remove POLYGONS complementary ranges</I>
<DT>
class OSGUTIL_EXPORT <B><A HREF="CombineLODsVisitor.html">CombineLODsVisitor</A></B>: public osg::NodeVisitor
<DD><I>Optimize the LOD groups, by combining adjacent LOD's which have complementary ranges</I>
<DT>
class OSGUTIL_EXPORT <B><A HREF="StateVisitor.html">StateVisitor</A></B>: public osg::NodeVisitor
<DD><I>Optimize State in the scene graph by removing duplicate state, replacing it with shared instances, both for StateAttributes, and whole StateSets</I>
<DT>
class OSGUTIL_EXPORT <B><A HREF="CheckGeometryVisitor.html">CheckGeometryVisitor</A></B>: public osg::NodeVisitor
<DT>
class OSGUTIL_EXPORT <B><A HREF="MergeGeometryVisitor.html">MergeGeometryVisitor</A></B>: public osg::NodeVisitor
<DT>
class OSGUTIL_EXPORT <B><A HREF="SpatializeGroupsVisitor.html">SpatializeGroupsVisitor</A></B>: public osg::NodeVisitor
<DD><I>Spatialize scene into a balanced quad/oct tree</I>
<DT>
class OSGUTIL_EXPORT <B><A HREF="CopySharedSubgraphsVisitor.html">CopySharedSubgraphsVisitor</A></B>: public osg::NodeVisitor
<DD><I>Copy any shared subgraphs, enabling flattening of static transforms</I>
<DT>
class OSGUTIL_EXPORT <B><A HREF="TextureVisitor.html">TextureVisitor</A></B>: public osg::NodeVisitor
<DD><I>For all textures apply settings</I>
</DL></P>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.11.1">Optimizer</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <B><A HREF="#DOC.2.11.2">~Optimizer</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.11.4">reset</A></B>()
<DD><I>reset internal data to initial state - the getPrimissableOptionsMap is cleared</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.11.5">optimize</A></B>(osg::Node* node)
<DD><I>traverse the node and its subgraph with a series of optimization visitors, specificied by the OptizationOptions</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.11.6">optimize</A></B>(osg::Node* node, unsigned int options)
<DD><I>traverse the node and its subgraph with a series of optimization visitors, specificied by the OptizationOptions</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.11.7">setPermissableOptimizationsForObject</A></B>(const osg::Object* object, unsigned int options)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline unsigned int <B><A HREF="#DOC.2.11.8">getPermissableOptimizationsForObject</A></B>(const osg::Object* object) const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline bool <B><A HREF="#DOC.2.11.9">isOperationPermissableForObject</A></B>(const osg::Object* object, unsigned int option) const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Optimizer.html#DOC.2.11.10">PermissableOptimizationsMap</A>&amp; <B><A HREF="#DOC.2.11.11">getPrimissableOptionsMap</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const <!1><A HREF="Optimizer.html#DOC.2.11.10">PermissableOptimizationsMap</A>&amp; <B><A HREF="#DOC.2.11.12">getPrimissableOptionsMap</A></B>() const
</DL></P>
<P><DL>
<DT><H3>Public</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::map&lt;const osg::Object*,unsigned int&gt; <B><A HREF="#DOC.2.11.10">PermissableOptimizationsMap</A></B>
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Optimizer.html#DOC.2.11.10">PermissableOptimizationsMap</A> <B><A HREF="#DOC.2.11.13">_permissableOptimizationsMap</A></B>
</DL></P>
</DL>
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>Insert impostor nodes into scene graph.
For example of usage see src/Demos/osgimpostor.</BLOCKQUOTE>
<DL>
<A NAME="Optimizer"></A>
<A NAME="DOC.2.11.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> Optimizer()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="~Optimizer"></A>
<A NAME="DOC.2.11.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~Optimizer()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="OptimizationOptions"></A>
<A NAME="DOC.2.11.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>enum OptimizationOptions</B></TT>
<DL><DT><DD></DL><P><DL>
<A NAME="FLATTEN_STATIC_TRANSFORMS"></A>
<A NAME="DOC.2.11.3.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> FLATTEN_STATIC_TRANSFORMS</B></TT>
<DL><DT><DD></DL><P>
<A NAME="REMOVE_REDUNDANT_NODES"></A>
<A NAME="DOC.2.11.3.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> REMOVE_REDUNDANT_NODES</B></TT>
<DL><DT><DD></DL><P>
<A NAME="COMBINE_ADJACENT_LODS"></A>
<A NAME="DOC.2.11.3.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> COMBINE_ADJACENT_LODS</B></TT>
<DL><DT><DD></DL><P>
<A NAME="SHARE_DUPLICATE_STATE"></A>
<A NAME="DOC.2.11.3.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> SHARE_DUPLICATE_STATE</B></TT>
<DL><DT><DD></DL><P>
<A NAME="MERGE_GEOMETRY"></A>
<A NAME="DOC.2.11.3.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> MERGE_GEOMETRY</B></TT>
<DL><DT><DD></DL><P>
<A NAME="CHECK_GEOMETRY"></A>
<A NAME="DOC.2.11.3.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> CHECK_GEOMETRY</B></TT>
<DL><DT><DD></DL><P>
<A NAME="SPATIALIZE_GROUPS"></A>
<A NAME="DOC.2.11.3.7"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> SPATIALIZE_GROUPS</B></TT>
<DL><DT><DD></DL><P>
<A NAME="COPY_SHARED_NODES"></A>
<A NAME="DOC.2.11.3.8"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> COPY_SHARED_NODES</B></TT>
<DL><DT><DD></DL><P>
<A NAME="TRISTRIP_GEOMETRY"></A>
<A NAME="DOC.2.11.3.9"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> TRISTRIP_GEOMETRY</B></TT>
<DL><DT><DD></DL><P>
<A NAME="TESSELATE_GEOMETRY"></A>
<A NAME="DOC.2.11.3.10"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> TESSELATE_GEOMETRY</B></TT>
<DL><DT><DD></DL><P>
<A NAME="OPTIMIZE_TEXTURE_SETTINGS"></A>
<A NAME="DOC.2.11.3.11"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> OPTIMIZE_TEXTURE_SETTINGS</B></TT>
<DL><DT><DD></DL><P>
<A NAME="DEFAULT_OPTIMIZATIONS"></A>
<A NAME="DOC.2.11.3.12"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> DEFAULT_OPTIMIZATIONS</B></TT>
<DL><DT><DD></DL><P>
<A NAME="ALL_OPTIMIZATIONS"></A>
<A NAME="DOC.2.11.3.13"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> ALL_OPTIMIZATIONS</B></TT>
<DL><DT><DD></DL><P></DL>
<A NAME="reset"></A>
<A NAME="DOC.2.11.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void reset()</B></TT>
<DD>reset internal data to initial state - the getPrimissableOptionsMap is cleared
<DL><DT><DD></DL><P>
<A NAME="optimize"></A>
<A NAME="DOC.2.11.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void optimize(osg::Node* node)</B></TT>
<DD>traverse the node and its subgraph with a series of optimization
visitors, specificied by the OptizationOptions
<DL><DT><DD></DL><P>
<A NAME="optimize"></A>
<A NAME="DOC.2.11.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void optimize(osg::Node* node, unsigned int options)</B></TT>
<DD>traverse the node and its subgraph with a series of optimization
visitors, specificied by the OptizationOptions
<DL><DT><DD></DL><P>
<A NAME="setPermissableOptimizationsForObject"></A>
<A NAME="DOC.2.11.7"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setPermissableOptimizationsForObject(const osg::Object* object, unsigned int options)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getPermissableOptimizationsForObject"></A>
<A NAME="DOC.2.11.8"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline unsigned int getPermissableOptimizationsForObject(const osg::Object* object) const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="isOperationPermissableForObject"></A>
<A NAME="DOC.2.11.9"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline bool isOperationPermissableForObject(const osg::Object* object, unsigned int option) const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="PermissableOptimizationsMap"></A>
<A NAME="DOC.2.11.10"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::map&lt;const osg::Object*,unsigned int&gt; PermissableOptimizationsMap</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getPrimissableOptionsMap"></A>
<A NAME="DOC.2.11.11"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Optimizer.html#DOC.2.11.10">PermissableOptimizationsMap</A>&amp; getPrimissableOptionsMap()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getPrimissableOptionsMap"></A>
<A NAME="DOC.2.11.12"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const <!1><A HREF="Optimizer.html#DOC.2.11.10">PermissableOptimizationsMap</A>&amp; getPrimissableOptionsMap() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="_permissableOptimizationsMap"></A>
<A NAME="DOC.2.11.13"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Optimizer.html#DOC.2.11.10">PermissableOptimizationsMap</A> _permissableOptimizationsMap</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>