📄 classvtskydome.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>vtlib library: vtSkyDome Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.5 --><div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li id="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul></div><div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul></div><h1>vtSkyDome Class Reference<br><small>[<a class="el" href="group__terrain.html">Terrain</a>]</small></h1><!-- doxytag: class="vtSkyDome" --><!-- doxytag: inherits="vtTransform" -->Inheritance diagram for vtSkyDome:<p><center><img src="classvtSkyDome__inherit__graph.png" border="0" usemap="#vtSkyDome__inherit__map" alt="Inheritance graph"></center><map name="vtSkyDome__inherit__map"><area href="classvtTransform.html" shape="rect" coords="119,305,212,332" alt=""><area href="classvtGroup.html" shape="rect" coords="71,231,140,257" alt=""><area href="classvtNode.html" shape="rect" coords="21,156,85,183" alt=""><area href="classvtNodeBase.html" shape="rect" coords="7,81,100,108" alt=""><area href="classvtTarget.html" shape="rect" coords="19,7,88,33" alt=""><area href="classvtGroupBase.html" shape="rect" coords="109,156,208,183" alt=""><area href="classvtTransformBase.html" shape="rect" coords="164,231,287,257" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classvtSkyDome-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>A SkyDome is a hemisphere which is colored according to the time of day: shades of blue, plus yellow-orange at dawn and dusk. The intended use is to make it large and far away from the camera, so that it is always behind all the terrain and objects in the world. It also contains an image of the Sun (as a texture billboard). The Sun is moved and sky is colored appropriately for the time of day (set with SetTime). It also supplies a real Light (<a class="el" href="classvtLight.html">vtLight</a>) which approximates the actual color, direction and intensity of sunlight. <p><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classvtSkyDome.html#ec10223de676b595a235037c67e9d99e">Create</a> (const char *starfile, int depth, float radius, const char *sun_texture=<a class="elRef" doxygen="vtdata.tag:../vtdata/" href="../vtdata/MathTypes_8h.html#6c3e226b4d4795d518ab341b0824ec29">NULL</a>, const char *moon_texture=<a class="elRef" doxygen="vtdata.tag:../vtdata/" href="../vtdata/MathTypes_8h.html#6c3e226b4d4795d518ab341b0824ec29">NULL</a>)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classvtSkyDome.html#f9315604a2d55bf133d15a90fafef759">SetTime</a> (const <a class="elRef" doxygen="vtdata.tag:../vtdata/" href="../vtdata/classvtTime.html">vtTime</a> &time)</td></tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="ec10223de676b595a235037c67e9d99e"></a><!-- doxytag: member="vtSkyDome::Create" ref="ec10223de676b595a235037c67e9d99e" args="(const char *starfile, int depth, float radius, const char *sun_texture=NULL, const char *moon_texture=NULL)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void vtSkyDome::Create </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char * </td> <td class="mdname" nowrap> <em>starfile</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>depth</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>float </td> <td class="mdname" nowrap> <em>radius</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>sun_texture</em> = <code><a class="elRef" doxygen="vtdata.tag:../vtdata/" href="../vtdata/MathTypes_8h.html#6c3e226b4d4795d518ab341b0824ec29">NULL</a></code>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>moon_texture</em> = <code><a class="elRef" doxygen="vtdata.tag:../vtdata/" href="../vtdata/MathTypes_8h.html#6c3e226b4d4795d518ab341b0824ec29">NULL</a></code></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Creates a complete SkyDome, which includes a StarDome. </td> </tr></table><a class="anchor" name="f9315604a2d55bf133d15a90fafef759"></a><!-- doxytag: member="vtSkyDome::SetTime" ref="f9315604a2d55bf133d15a90fafef759" args="(const vtTime &time)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void vtSkyDome::SetTime </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="elRef" doxygen="vtdata.tag:../vtdata/" href="../vtdata/classvtTime.html">vtTime</a> & </td> <td class="mdname1" valign="top" nowrap> <em>time</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the time of day (or night). <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>time</em> </td><td>Time in seconds since midnight. </td></tr> </table></dl> </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Jan 14 14:41:01 2008 for vtlib library by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.5 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -