📄 fog.html
字号:
<PRE>public static final int <B>ALLOW_SCOPE_WRITE</B></PRE><DL><DD>Specifies that this Fog node allows write access to its scope information at runtime.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.media.j3d.Fog.ALLOW_SCOPE_WRITE">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_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>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="Fog()"><!-- --></A><H3>Fog</H3><PRE>public <B>Fog</B>()</PRE><DL><DD>Constructs a Fog node with default parameters. The default values are as follows: <ul> color : black (0,0,0)<br> scope : empty (universe scope)<br> influencing bounds : null<br> influencing bounding leaf : null<br> </ul><P></DL><HR><A NAME="Fog(javax.vecmath.Color3f)"><!-- --></A><H3>Fog</H3><PRE>public <B>Fog</B>(<A HREF="../../../javax/vecmath/Color3f.html" title="class in javax.vecmath">Color3f</A> color)</PRE><DL><DD>Constructs a Fog node with the specified fog color.<P><DL><DT><B>Parameters:</B><DD><CODE>color</CODE> - the fog color</DL></DL><HR><A NAME="Fog(float, float, float)"><!-- --></A><H3>Fog</H3><PRE>public <B>Fog</B>(float r, float g, float b)</PRE><DL><DD>Constructs a Fog node with the specified fog color.<P><DL><DT><B>Parameters:</B><DD><CODE>r</CODE> - the red component of the fog color<DD><CODE>g</CODE> - the green component of the fog color<DD><CODE>b</CODE> - the blue component of the fog color</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="setColor(javax.vecmath.Color3f)"><!-- --></A><H3>setColor</H3><PRE>public void <B>setColor</B>(<A HREF="../../../javax/vecmath/Color3f.html" title="class in javax.vecmath">Color3f</A> color)</PRE><DL><DD>Sets the fog color to the specified color.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>color</CODE> - the new fog color<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="setColor(float, float, float)"><!-- --></A><H3>setColor</H3><PRE>public void <B>setColor</B>(float r, float g, float b)</PRE><DL><DD>Sets the fog color to the specified color.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>r</CODE> - the red component of the fog color<DD><CODE>g</CODE> - the green component of the fog color<DD><CODE>b</CODE> - the blue component of the fog color<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="getColor(javax.vecmath.Color3f)"><!-- --></A><H3>getColor</H3><PRE>public void <B>getColor</B>(<A HREF="../../../javax/vecmath/Color3f.html" title="class in javax.vecmath">Color3f</A> color)</PRE><DL><DD>Retrieves the fog color.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>color</CODE> - the vector that will receive the current fog color<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="setInfluencingBounds(javax.media.j3d.Bounds)"><!-- --></A><H3>setInfluencingBounds</H3><PRE>public void <B>setInfluencingBounds</B>(<A HREF="../../../javax/media/j3d/Bounds.html" title="class in javax.media.j3d">Bounds</A> region)</PRE><DL><DD>Sets the Fog's influencing region to the specified bounds. This is used when the influencing bounding leaf is set to null.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>region</CODE> - the bounds that contains the Fog's new influencing region.<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="getInfluencingBounds()"><!-- --></A><H3>getInfluencingBounds</H3><PRE>public <A HREF="../../../javax/media/j3d/Bounds.html" title="class in javax.media.j3d">Bounds</A> <B>getInfluencingBounds</B>()</PRE><DL><DD>Retrieves the Fog node's influencing bounds.<P><DD><DL><DT><B>Returns:</B><DD>this Fog's influencing bounds information<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="setInfluencingBoundingLeaf(javax.media.j3d.BoundingLeaf)"><!-- --></A><H3>setInfluencingBoundingLeaf</H3><PRE>public void <B>setInfluencingBoundingLeaf</B>(<A HREF="../../../javax/media/j3d/BoundingLeaf.html" title="class in javax.media.j3d">BoundingLeaf</A> region)</PRE><DL><DD>Sets the Fog's influencing region to the specified bounding leaf. When set to a value other than null, this overrides the influencing bounds object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>region</CODE> - the bounding leaf node used to specify the Fog node's new influencing region.<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="getInfluencingBoundingLeaf()"><!-- --></A><H3>getInfluencingBoundingLeaf</H3><PRE>public <A HREF="../../../javax/media/j3d/BoundingLeaf.html" title="class in javax.media.j3d">BoundingLeaf</A> <B>getInfluencingBoundingLeaf</B>()</PRE><DL><DD>Retrieves the Fog node's influencing bounding leaf.<P><DD><DL><DT><B>Returns:</B><DD>this Fog's influencing bounding leaf information<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="setScope(javax.media.j3d.Group, int)"><!-- --></A><H3>setScope</H3><PRE>public void <B>setScope</B>(<A HREF="../../../javax/media/j3d/Group.html" title="class in javax.media.j3d">Group</A> scope, int index)</PRE><DL><DD>Replaces the node at the specified index in this Fog node's list of scopes with the specified Group node. By default, Fog nodes are scoped only by their influencing bounds. This allows them to be further scoped by a list of nodes in the hierarchy.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>scope</CODE> - the Group node to be stored at the specified index.<DD><CODE>index</CODE> - the index of the Group node to be replaced.<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<DD><CODE><A HREF="../../../javax/media/j3d/RestrictedAccessException.html" title="class in javax.media.j3d">RestrictedAccessException</A></CODE> - if the specified group node is part of a compiled scene graph</DL></DD></DL><HR><A NAME="getScope(int)"><!-- --></A><H3>getScope</H3><PRE>public <A HREF="../../../javax/media/j3d/Group.html" title="class in javax.media.j3d">Group</A> <B>getScope</B>(int index)</PRE><DL><DD>Retrieves the Group node at the specified index from this Fog node's list of scopes.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the Group node to be returned.<DT><B>Returns:</B><DD>the Group node at the specified index.<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="insertScope(javax.media.j3d.Group, int)"><!-- --></A><H3>insertScope</H3><PRE>public void <B>insertScope</B>(<A HREF="../../../javax/media/j3d/Group.html" title="class in javax.media.j3d">Group</A> scope, int index)</PRE><DL><DD>Inserts the specified Group node into this Fog node's list of scopes at the specified index. By default, Fog nodes are scoped only by their influencing bounds. This allows them to be further scoped by a list of nodes in the hierarchy.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>scope</CODE> - the Group node to be inserted at the specified index.<DD><CODE>index</CODE> - the index at which the Group node is inserted.<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<DD><CODE><A HREF="../../../javax/media/j3d/RestrictedAccessException.html" title="class in javax.media.j3d">RestrictedAccessException</A></CODE> - if the specified group node
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -