⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 spotlight.html

📁 JAVA多媒体开发类库说明
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</DL><HR><A NAME="SpotLight(javax.vecmath.Color3f, javax.vecmath.Point3f, javax.vecmath.Point3f, javax.vecmath.Vector3f, float, float)"><!-- --></A><H3>SpotLight</H3><PRE>public <B>SpotLight</B>(<A HREF="../../../javax/vecmath/Color3f.html" title="class in javax.vecmath">Color3f</A>&nbsp;color,                 <A HREF="../../../javax/vecmath/Point3f.html" title="class in javax.vecmath">Point3f</A>&nbsp;position,                 <A HREF="../../../javax/vecmath/Point3f.html" title="class in javax.vecmath">Point3f</A>&nbsp;attenuation,                 <A HREF="../../../javax/vecmath/Vector3f.html" title="class in javax.vecmath">Vector3f</A>&nbsp;direction,                 float&nbsp;spreadAngle,                 float&nbsp;concentration)</PRE><DL><DD>Constructs and initializes a SpotLight node using the specified parameters.<P><DL><DT><B>Parameters:</B><DD><CODE>color</CODE> - the color of the light source<DD><CODE>position</CODE> - the position of the light in three-space<DD><CODE>attenuation</CODE> - the attenuation (constant, linear, quadratic) of the light<DD><CODE>direction</CODE> - the direction of the light<DD><CODE>spreadAngle</CODE> - the spread angle of the light<DD><CODE>concentration</CODE> - the concentration of the light</DL></DL><HR><A NAME="SpotLight(boolean, javax.vecmath.Color3f, javax.vecmath.Point3f, javax.vecmath.Point3f, javax.vecmath.Vector3f, float, float)"><!-- --></A><H3>SpotLight</H3><PRE>public <B>SpotLight</B>(boolean&nbsp;lightOn,                 <A HREF="../../../javax/vecmath/Color3f.html" title="class in javax.vecmath">Color3f</A>&nbsp;color,                 <A HREF="../../../javax/vecmath/Point3f.html" title="class in javax.vecmath">Point3f</A>&nbsp;position,                 <A HREF="../../../javax/vecmath/Point3f.html" title="class in javax.vecmath">Point3f</A>&nbsp;attenuation,                 <A HREF="../../../javax/vecmath/Vector3f.html" title="class in javax.vecmath">Vector3f</A>&nbsp;direction,                 float&nbsp;spreadAngle,                 float&nbsp;concentration)</PRE><DL><DD>Constructs and initializes a SpotLight node using the specified parameters.<P><DL><DT><B>Parameters:</B><DD><CODE>lightOn</CODE> - flag indicating whether this light is on or off<DD><CODE>color</CODE> - the color of the light source<DD><CODE>position</CODE> - the position of the light in three-space<DD><CODE>attenuation</CODE> - the attenuation (constant, linear, quadratic) of the light<DD><CODE>direction</CODE> - the direction of the light<DD><CODE>spreadAngle</CODE> - the spread angle of the light<DD><CODE>concentration</CODE> - the concentration of the light</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="setSpreadAngle(float)"><!-- --></A><H3>setSpreadAngle</H3><PRE>public void <B>setSpreadAngle</B>(float&nbsp;spreadAngle)</PRE><DL><DD>Sets spot light spread angle.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>spreadAngle</CODE> - the new spread angle for spot light<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph.</DL></DD></DL><HR><A NAME="getSpreadAngle()"><!-- --></A><H3>getSpreadAngle</H3><PRE>public float <B>getSpreadAngle</B>()</PRE><DL><DD>Gets spot light spread angle.<P><DD><DL><DT><B>Returns:</B><DD>the new spread angle for spot light. The value returned is the clamped value.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph</DL></DD></DL><HR><A NAME="setConcentration(float)"><!-- --></A><H3>setConcentration</H3><PRE>public void <B>setConcentration</B>(float&nbsp;concentration)</PRE><DL><DD>Sets spot light concentration.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>concentration</CODE> - the new concentration for spot light<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph</DL></DD></DL><HR><A NAME="getConcentration()"><!-- --></A><H3>getConcentration</H3><PRE>public float <B>getConcentration</B>()</PRE><DL><DD>Gets spot light concentration.<P><DD><DL><DT><B>Returns:</B><DD>the new concentration for spot light<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph</DL></DD></DL><HR><A NAME="setDirection(float, float, float)"><!-- --></A><H3>setDirection</H3><PRE>public void <B>setDirection</B>(float&nbsp;x,                         float&nbsp;y,                         float&nbsp;z)</PRE><DL><DD>Sets light direction.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the new X direction<DD><CODE>y</CODE> - the new Y direction<DD><CODE>z</CODE> - the new Z direction<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph</DL></DD></DL><HR><A NAME="setDirection(javax.vecmath.Vector3f)"><!-- --></A><H3>setDirection</H3><PRE>public void <B>setDirection</B>(<A HREF="../../../javax/vecmath/Vector3f.html" title="class in javax.vecmath">Vector3f</A>&nbsp;direction)</PRE><DL><DD>Sets this Light's current direction and places it in the parameter specified.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>direction</CODE> - the vector that will receive this node's direction<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph</DL></DD></DL><HR><A NAME="getDirection(javax.vecmath.Vector3f)"><!-- --></A><H3>getDirection</H3><PRE>public void <B>getDirection</B>(<A HREF="../../../javax/vecmath/Vector3f.html" title="class in javax.vecmath">Vector3f</A>&nbsp;direction)</PRE><DL><DD>Gets this Light's current direction and places it in the parameter specified.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>direction</CODE> - the vector that will receive this node's direction<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph</DL></DD></DL><HR><A NAME="cloneNode(boolean)"><!-- --></A><H3>cloneNode</H3><PRE>public <A HREF="../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">Node</A> <B>cloneNode</B>(boolean&nbsp;forceDuplicate)</PRE><DL><DD>Used to create a new instance of the node.  This routine is called by <code>cloneTree</code> to duplicate the current node.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/media/j3d/PointLight.html#cloneNode(boolean)">cloneNode</A></CODE> in class <CODE><A HREF="../../../javax/media/j3d/PointLight.html" title="class in javax.media.j3d">PointLight</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>forceDuplicate</CODE> - when set to <code>true</code>, causes the  <code>duplicateOnCloneTree</code> flag to be ignored.  When  <code>false</code>, the value of each node's  <code>duplicateOnCloneTree</code> variable determines whether  NodeComponent data is duplicated or copied.<DT><B>See Also:</B><DD><A HREF="../../../javax/media/j3d/Node.html#cloneTree()"><CODE>Node.cloneTree()</CODE></A>, <A HREF="../../../javax/media/j3d/Node.html#cloneNode(boolean)"><CODE>Node.cloneNode(boolean)</CODE></A>, <A HREF="../../../javax/media/j3d/Node.html#duplicateNode(javax.media.j3d.Node, boolean)"><CODE>Node.duplicateNode(javax.media.j3d.Node, boolean)</CODE></A>, <A HREF="../../../javax/media/j3d/NodeComponent.html#setDuplicateOnCloneTree(boolean)"><CODE>NodeComponent.setDuplicateOnCloneTree(boolean)</CODE></A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../javax/media/j3d/SourceCodeShader.html" title="class in javax.media.j3d"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/media/j3d/Switch.html" title="class in javax.media.j3d"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html?javax/media/j3d/SpotLight.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="SpotLight.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1">Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="../../../LICENSE-SPEC.html">license terms</a>.</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -