106 lines
4.8 KiB
HTML
106 lines
4.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>class OSGUTIL_EXPORT osgUtil::HighlightMapGenerator</TITLE>
|
|
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.10">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
|
|
<H2>class OSGUTIL_EXPORT <A HREF="#DOC.DOCU">osgUtil::HighlightMapGenerator</A></H2></H2><BLOCKQUOTE>This cube map generator produces a specular highlight map.</BLOCKQUOTE>
|
|
<HR>
|
|
|
|
<H2>Inheritance:</H2>
|
|
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=95>
|
|
<param name=classes value="Mosg::Referenced,M,CCubeMapGenerator,MCubeMapGenerator.html,CHighlightMapGenerator,MHighlightMapGenerator.html">
|
|
<param name=before value="M,M,M">
|
|
<param name=after value="Md_SP,Md_,M">
|
|
<param name=indent value="0,1,2">
|
|
<param name=arrowdir value="down">
|
|
</APPLET>
|
|
<HR>
|
|
|
|
<DL>
|
|
<P><DL>
|
|
<DT><H3>Public Methods</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.6.1">HighlightMapGenerator</A></B>( const osg::Vec3 &light_direction, const osg::Vec4 &light_color, float specular_exponent, int texture_size = 64)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.6.2">HighlightMapGenerator</A></B>(const <!1><A HREF="HighlightMapGenerator.html#DOC.2.6.2">HighlightMapGenerator</A> &copy, const osg::CopyOp &copyop = osg::CopyOp::SHALLOW_COPY)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline osg::Vec4 <B><A HREF="#DOC.2.6.9">compute_color</A></B>(const osg::Vec3 &R) const
|
|
</DL></P>
|
|
|
|
<P><DL>
|
|
<DT><H3>Protected Methods</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <B><A HREF="#DOC.2.6.3">~HighlightMapGenerator</A></B>()
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="HighlightMapGenerator.html">HighlightMapGenerator</A>& <B><A HREF="#DOC.2.6.4">operator=</A></B>(const <!1><A HREF="HighlightMapGenerator.html">HighlightMapGenerator</A> &)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline virtual osg::Vec4 <B><A HREF="#DOC.2.6.5">compute_color</A></B>(const osg::Vec3 &R) const
|
|
</DL></P>
|
|
|
|
</DL>
|
|
<HR><H3>Inherited from <A HREF="CubeMapGenerator.html">CubeMapGenerator</A>:</H3>
|
|
<DL>
|
|
<P><DL>
|
|
<DT><H3>Public Methods</H3><DD><DT>
|
|
<IMG ALT="o" SRC=icon2.gif>void <B>generateMap</B>(bool use_osg_system = true)
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline osg::Image* <B>getImage</B>(osg::TextureCubeMap::Face face)
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline const osg::Image* <B>getImage</B>(osg::TextureCubeMap::Face face) const
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline void <B>set_pixel</B>(int index, int c, int r, const osg::Vec4 &color)
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline osg::Vec4 <B>vector_to_color</B>(const osg::Vec3 &vec)
|
|
</DL></P>
|
|
|
|
<P><DL>
|
|
<DT><H3>Protected Methods</H3><DD><DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline static osg::Vec4 <B>vector_to_color</B>(const osg::Vec3 &vec)
|
|
</DL></P>
|
|
|
|
</DL>
|
|
|
|
<A NAME="DOC.DOCU"></A>
|
|
<HR>
|
|
<H2>Documentation</H2>
|
|
<BLOCKQUOTE>This cube map generator produces a specular highlight map.
|
|
The vector-color association is: C = (R dot (-L)) ^ n, where C is the
|
|
resulting color, R is the reflection vector, L is the light direction
|
|
and n is the specular exponent.</BLOCKQUOTE>
|
|
<DL>
|
|
|
|
<A NAME="HighlightMapGenerator"></A>
|
|
<A NAME="DOC.2.6.1"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> HighlightMapGenerator( const osg::Vec3 &light_direction, const osg::Vec4 &light_color, float specular_exponent, int texture_size = 64)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="HighlightMapGenerator"></A>
|
|
<A NAME="DOC.2.6.2"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> HighlightMapGenerator(const <!1><A HREF="HighlightMapGenerator.html#DOC.2.6.2">HighlightMapGenerator</A> &copy, const osg::CopyOp &copyop = osg::CopyOp::SHALLOW_COPY)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="~HighlightMapGenerator"></A>
|
|
<A NAME="DOC.2.6.3"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~HighlightMapGenerator()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="operator="></A>
|
|
<A NAME="DOC.2.6.4"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="HighlightMapGenerator.html">HighlightMapGenerator</A>& operator=(const <!1><A HREF="HighlightMapGenerator.html">HighlightMapGenerator</A> &)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="compute_color"></A>
|
|
<A NAME="DOC.2.6.5"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline virtual osg::Vec4 compute_color(const osg::Vec3 &R) const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="compute_color"></A>
|
|
<A NAME="DOC.2.6.9"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline osg::Vec4 compute_color(const osg::Vec3 &R) const </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://docpp.sourceforge.net">DOC++</A>.
|
|
</BODY>
|
|
</HTML>
|