📄 transparencyattributes.html
字号:
<DL><DT><B>Since:</B><DD>Java 3D 1.2</DD></DD><DT><B>See Also:</B><DD><A HREF="../../../javax/media/j3d/TransparencyAttributes.html#setSrcBlendFunction(int)"><CODE>setSrcBlendFunction(int)</CODE></A>, <A HREF="../../../javax/media/j3d/TransparencyAttributes.html#setDstBlendFunction(int)"><CODE>setDstBlendFunction(int)</CODE></A>, <A HREF="../../../constant-values.html#javax.media.j3d.TransparencyAttributes.BLEND_ONE_MINUS_SRC_ALPHA">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="TransparencyAttributes()"><!-- --></A><H3>TransparencyAttributes</H3><PRE>public <B>TransparencyAttributes</B>()</PRE><DL><DD>Constructs a TransparencyAttributes object with default parameters. The default values are as follows: <ul> transparency mode : <code>NONE</code><br> transparency value : 0.0<br> source blend function : <code>BLEND_SRC_ALPHA</code><br> destination blend function : <code>BLEND_ONE_MINUS_SRC_ALPHA</code><br> </ul><P></DL><HR><A NAME="TransparencyAttributes(int, float)"><!-- --></A><H3>TransparencyAttributes</H3><PRE>public <B>TransparencyAttributes</B>(int tMode, float tVal)</PRE><DL><DD>Construct TransparencyAttributes object with specified values.<P><DT><B>Parameters:</B><DD><CODE>tMode</CODE> - the transparency mode<DD><CODE>tVal</CODE> - the transparency value<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>tMode</code> is a value other than <code>NONE</code>, <code>FASTEST</code>, <code>NICEST</code>, <code>SCREEN_DOOR</code>, or <code>BLENDED</code></DL><HR><A NAME="TransparencyAttributes(int, float, int, int)"><!-- --></A><H3>TransparencyAttributes</H3><PRE>public <B>TransparencyAttributes</B>(int tMode, float tVal, int srcBlendFunction, int dstBlendFunction)</PRE><DL><DD>Construct TransparencyAttributes object with specified values.<P><DT><B>Parameters:</B><DD><CODE>tMode</CODE> - the transparency mode<DD><CODE>tVal</CODE> - the transparency value<DD><CODE>srcBlendFunction</CODE> - the blend function to be used for the source color, one of <code>BLEND_ZERO</code>, <code>BLEND_ONE</code>, <code>BLEND_SRC_ALPHA</code>, or <code>BLEND_ONE_MINUS_SRC_ALPHA</code>.<DD><CODE>dstBlendFunction</CODE> - the blend function to be used for the destination color, one of <code>BLEND_ZERO</code>, <code>BLEND_ONE</code>, <code>BLEND_SRC_ALPHA</code>, or <code>BLEND_ONE_MINUS_SRC_ALPHA</code>.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>tMode</code> is a value other than <code>NONE</code>, <code>FASTEST</code>, <code>NICEST</code>, <code>SCREEN_DOOR</code>, or <code>BLENDED</code><DT><B>Since:</B><DD>Java 3D 1.2</DD></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="setTransparencyMode(int)"><!-- --></A><H3>setTransparencyMode</H3><PRE>public void <B>setTransparencyMode</B>(int transparencyMode)</PRE><DL><DD>Sets the transparency mode for this appearance component object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>transparencyMode</CODE> - the transparency mode to be used, one of <code>NONE</code>, <code>FASTEST</code>, <code>NICEST</code>, <code>SCREEN_DOOR</code>, or <code>BLENDED</code><DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>transparencyMode</code> is a value other than <code>NONE</code>, <code>FASTEST</code>, <code>NICEST</code>, <code>SCREEN_DOOR</code>, or <code>BLENDED</code></DL></DD></DL><HR><A NAME="getTransparencyMode()"><!-- --></A><H3>getTransparencyMode</H3><PRE>public int <B>getTransparencyMode</B>()</PRE><DL><DD>Gets the transparency mode for this appearance component object.<P><DD><DL><DT><B>Returns:</B><DD>transparencyMode the transparency mode<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html">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="setTransparency(float)"><!-- --></A><H3>setTransparency</H3><PRE>public void <B>setTransparency</B>(float transparency)</PRE><DL><DD>Sets this appearance's transparency.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>transparency</CODE> - the appearance's transparency in the range [0.0, 1.0] with 0.0 being fully opaque and 1.0 being fully transparent<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html">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="getTransparency()"><!-- --></A><H3>getTransparency</H3><PRE>public float <B>getTransparency</B>()</PRE><DL><DD>Retrieves this appearance's transparency.<P><DD><DL><DT><B>Returns:</B><DD>the appearance's transparency<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html">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="setSrcBlendFunction(int)"><!-- --></A><H3>setSrcBlendFunction</H3><PRE>public void <B>setSrcBlendFunction</B>(int blendFunction)</PRE><DL><DD>Sets the source blend function used in blended transparency and antialiasing operations. The source function specifies the factor that is multiplied by the source color; this value is added to the product of the destination factor and the destination color. The default source blend function is <code>BLEND_SRC_ALPHA</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>blendFunction</CODE> - the blend function to be used for the source color, one of <code>BLEND_ZERO</code>, <code>BLEND_ONE</code>, <code>BLEND_SRC_ALPHA</code>, or <code>BLEND_ONE_MINUS_SRC_ALPHA</code>.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>blendFunction</code> is a value other than <code>BLEND_ZERO</code>, <code>BLEND_ONE</code>, <code>BLEND_SRC_ALPHA</code>, or <code>BLEND_ONE_MINUS_SRC_ALPHA</code>.<DT><B>Since:</B><DD>Java 3D 1.2</DD></DD></DL></DD></DL><HR><A NAME="getSrcBlendFunction()"><!-- --></A><H3>getSrcBlendFunction</H3><PRE>public int <B>getSrcBlendFunction</B>()</PRE><DL><DD>Gets the source blend function for this TransparencyAttributes object.<P><DD><DL><DT><B>Returns:</B><DD>the source blend function.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DT><B>Since:</B><DD>Java 3D 1.2</DD></DD></DL></DD></DL><HR><A NAME="setDstBlendFunction(int)"><!-- --></A><H3>setDstBlendFunction</H3><PRE>public void <B>setDstBlendFunction</B>(int blendFunction)</PRE><DL><DD>Sets the destination blend function used in blended transparency and antialiasing operations. The destination function specifies the factor that is multiplied by the destination color; this value is added to the product of the source factor and the source color. The default destination blend function is <code>BLEND_ONE_MINUS_SRC_ALPHA</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>blendFunction</CODE> - the blend function to be used for the destination color, one of <code>BLEND_ZERO</code>, <code>BLEND_ONE</code>, <code>BLEND_SRC_ALPHA</code>, or <code>BLEND_ONE_MINUS_SRC_ALPHA</code>.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>blendFunction</code> is a value other than <code>BLEND_ZERO</code>, <code>BLEND_ONE</code>, <code>BLEND_SRC_ALPHA</code>, or <code>BLEND_ONE_MINUS_SRC_ALPHA</code>.<DT><B>Since:</B><DD>Java 3D 1.2</DD></DD></DL></DD></DL><HR><A NAME="getDstBlendFunction()"><!-- --></A><H3>getDstBlendFunction</H3><PRE>public int <B>getDstBlendFunction</B>()</PRE><DL><DD>Gets the destination blend function for this TransparencyAttributes object.<P><DD><DL><DT><B>Returns:</B><DD>the destination blend function.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DT><B>Since:</B><DD>Java 3D 1.2</DD></DD></DL></DD></DL><HR><A NAME="cloneNodeComponent()"><!-- --></A><H3>cloneNodeComponent</H3><PRE>public <A HREF="../../../javax/media/j3d/NodeComponent.html">NodeComponent</A> <B>cloneNodeComponent</B>()</PRE><DL><DD><B>Deprecated.</B> <I>replaced with cloneNodeComponent(boolean forceDuplicate)</I><P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/media/j3d/NodeComponent.html#cloneNodeComponent()">cloneNodeComponent</A></CODE> in class <CODE><A HREF="../../../javax/media/j3d/NodeComponent.html">NodeComponent</A></CODE></DL></DD><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/media/j3d/TransformInterpolator.html"><B>PREV CLASS</B></A> <A HREF="../../../javax/media/j3d/TransparencyInterpolator.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="TransparencyAttributes.html" TARGET="_top"><B>NO FRAMES</B></A> <SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -