📄 transparencyattributes.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TransparencyAttributes.html#getDstBlendFunction()">getDstBlendFunction</A></B>()</CODE><BR> Gets the destination blend function for this TransparencyAttributes object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TransparencyAttributes.html#getSrcBlendFunction()">getSrcBlendFunction</A></B>()</CODE><BR> Gets the source blend function for this TransparencyAttributes object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TransparencyAttributes.html#getTransparency()">getTransparency</A></B>()</CODE><BR> Retrieves this appearance's transparency.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TransparencyAttributes.html#getTransparencyMode()">getTransparencyMode</A></B>()</CODE><BR> Gets the transparency mode for this appearance component object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TransparencyAttributes.html#setDstBlendFunction(int)">setDstBlendFunction</A></B>(int blendFunction)</CODE><BR> Sets the destination blend function used in blended transparency and antialiasing operations.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TransparencyAttributes.html#setSrcBlendFunction(int)">setSrcBlendFunction</A></B>(int blendFunction)</CODE><BR> Sets the source blend function used in blended transparency and antialiasing operations.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TransparencyAttributes.html#setTransparency(float)">setTransparency</A></B>(float transparency)</CODE><BR> Sets this appearance's transparency.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TransparencyAttributes.html#setTransparencyMode(int)">setTransparencyMode</A></B>(int transparencyMode)</CODE><BR> Sets the transparency mode for this appearance component object.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.media.j3d.NodeComponent"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.media.j3d.<A HREF="../../../javax/media/j3d/NodeComponent.html">NodeComponent</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/media/j3d/NodeComponent.html#cloneNodeComponent(boolean)">cloneNodeComponent</A>, <A HREF="../../../javax/media/j3d/NodeComponent.html#duplicateNodeComponent(javax.media.j3d.NodeComponent)">duplicateNodeComponent</A>, <A HREF="../../../javax/media/j3d/NodeComponent.html#duplicateNodeComponent(javax.media.j3d.NodeComponent, boolean)">duplicateNodeComponent</A>, <A HREF="../../../javax/media/j3d/NodeComponent.html#getDuplicateOnCloneTree()">getDuplicateOnCloneTree</A>, <A HREF="../../../javax/media/j3d/NodeComponent.html#setDuplicateOnCloneTree(boolean)">setDuplicateOnCloneTree</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.media.j3d.SceneGraphObject"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.media.j3d.<A HREF="../../../javax/media/j3d/SceneGraphObject.html">SceneGraphObject</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/media/j3d/SceneGraphObject.html#clearCapability(int)">clearCapability</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#clearCapabilityIsFrequent(int)">clearCapabilityIsFrequent</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#duplicateSceneGraphObject(javax.media.j3d.SceneGraphObject)">duplicateSceneGraphObject</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#getCapability(int)">getCapability</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#getCapabilityIsFrequent(int)">getCapabilityIsFrequent</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#getUserData()">getUserData</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#isCompiled()">isCompiled</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#isLive()">isLive</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#setCapability(int)">setCapability</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#setCapabilityIsFrequent(int)">setCapabilityIsFrequent</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#setUserData(java.lang.Object)">setUserData</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#updateNodeReferences(javax.media.j3d.NodeReferenceTable)">updateNodeReferences</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="ALLOW_MODE_READ"><!-- --></A><H3>ALLOW_MODE_READ</H3><PRE>public static final int <B>ALLOW_MODE_READ</B></PRE><DL><DD>Specifies that this TransparencyAttributes object allows reading its transparency mode component information.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.media.j3d.TransparencyAttributes.ALLOW_MODE_READ">Constant Field Values</A></DL></DL><HR><A NAME="ALLOW_MODE_WRITE"><!-- --></A><H3>ALLOW_MODE_WRITE</H3><PRE>public static final int <B>ALLOW_MODE_WRITE</B></PRE><DL><DD>Specifies that this TransparencyAttributes object allows writing its transparency mode component information.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.media.j3d.TransparencyAttributes.ALLOW_MODE_WRITE">Constant Field Values</A></DL></DL><HR><A NAME="ALLOW_VALUE_READ"><!-- --></A><H3>ALLOW_VALUE_READ</H3><PRE>public static final int <B>ALLOW_VALUE_READ</B></PRE><DL><DD>Specifies that this TransparencyAttributes object allows reading its transparency value.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.media.j3d.TransparencyAttributes.ALLOW_VALUE_READ">Constant Field Values</A></DL></DL><HR><A NAME="ALLOW_VALUE_WRITE"><!-- --></A><H3>ALLOW_VALUE_WRITE</H3><PRE>public static final int <B>ALLOW_VALUE_WRITE</B></PRE><DL><DD>Specifies that this TransparencyAttributes object allows writing its transparency value.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.media.j3d.TransparencyAttributes.ALLOW_VALUE_WRITE">Constant Field Values</A></DL></DL><HR><A NAME="ALLOW_BLEND_FUNCTION_READ"><!-- --></A><H3>ALLOW_BLEND_FUNCTION_READ</H3><PRE>public static final int <B>ALLOW_BLEND_FUNCTION_READ</B></PRE><DL><DD>Specifies that this TransparencyAttributes object allows reading its blend function.<P><DL><DT><B>Since:</B><DD>Java 3D 1.2</DD></DD><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.media.j3d.TransparencyAttributes.ALLOW_BLEND_FUNCTION_READ">Constant Field Values</A></DL></DL><HR><A NAME="ALLOW_BLEND_FUNCTION_WRITE"><!-- --></A><H3>ALLOW_BLEND_FUNCTION_WRITE</H3><PRE>public static final int <B>ALLOW_BLEND_FUNCTION_WRITE</B></PRE><DL><DD>Specifies that this TransparencyAttributes object allows writing its blend function.<P><DL><DT><B>Since:</B><DD>Java 3D 1.2</DD></DD><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.media.j3d.TransparencyAttributes.ALLOW_BLEND_FUNCTION_WRITE">Constant Field Values</A></DL></DL><HR><A NAME="FASTEST"><!-- --></A><H3>FASTEST</H3><PRE>public static final int <B>FASTEST</B></PRE><DL><DD>Use the fastest available method for transparency.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../javax/media/j3d/TransparencyAttributes.html#setTransparencyMode(int)"><CODE>setTransparencyMode(int)</CODE></A>, <A HREF="../../../constant-values.html#javax.media.j3d.TransparencyAttributes.FASTEST">Constant Field Values</A></DL></DL><HR><A NAME="NICEST"><!-- --></A><H3>NICEST</H3><PRE>public static final int <B>NICEST</B></PRE><DL><DD>Use the nicest available method for transparency.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../javax/media/j3d/TransparencyAttributes.html#setTransparencyMode(int)"><CODE>setTransparencyMode(int)</CODE></A>, <A HREF="../../../constant-values.html#javax.media.j3d.TransparencyAttributes.NICEST">Constant Field Values</A></DL></DL><HR><A NAME="BLENDED"><!-- --></A><H3>BLENDED</H3><PRE>public static final int <B>BLENDED</B></PRE><DL><DD>Use alpha blended transparency. The blend equation is specified by the srcBlendFunction and dstBlendFunction attributes. The default equation is: <ul> <code>alpha<sub><font size=-1>src</font></sub>*src + (1-alpha<sub><font size=-1>src</font></sub>)*dst</code> </ul> where <code>alpha<sub><font size=-1>src</font></sub></code> is <code>1-transparency</code>. When this mode is used with a Raster object or with a Geometry that contains per-vertex colors with alpha, the alpha values in the Raster's image or in the Geometry's per-vertex colors are combined with the transparency value in this TransparencyAttributes object to perform blending. In this case, the alpha value used for blending at each pixel is: <ul> <code>alpha<sub><font size=-1>src</font></sub> = alpha<sub><font size=-1>pix</font></sub> * (1-transparency)</code>. </ul><P><DL><DT><B>See Also:</B><DD><A HREF="../../../javax/media/j3d/TransparencyAttributes.html#setTransparencyMode(int)"><CODE>setTransparencyMode(int)</CODE></A>, <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.BLENDED">Constant Field Values</A></DL></DL><HR><A NAME="SCREEN_DOOR"><!-- --></A><H3>SCREEN_DOOR</H3><PRE>public static final int <B>SCREEN_DOOR</B></PRE><DL><DD>Use screen-door transparency. This is done using an on/off stipple pattern where the percentage of pixels that are transparent is approximately equal to the value specified by the transparency parameter.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../javax/media/j3d/TransparencyAttributes.html#setTransparencyMode(int)"><CODE>setTransparencyMode(int)</CODE></A>, <A HREF="../../../constant-values.html#javax.media.j3d.TransparencyAttributes.SCREEN_DOOR">Constant Field Values</A></DL></DL><HR><A NAME="NONE"><!-- --></A><H3>NONE</H3><PRE>public static final int <B>NONE</B></PRE><DL><DD>No transparency, opaque object.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../javax/media/j3d/TransparencyAttributes.html#setTransparencyMode(int)"><CODE>setTransparencyMode(int)</CODE></A>, <A HREF="../../../constant-values.html#javax.media.j3d.TransparencyAttributes.NONE">Constant Field Values</A></DL></DL><HR><A NAME="BLEND_ZERO"><!-- --></A><H3>BLEND_ZERO</H3><PRE>public static final int <B>BLEND_ZERO</B></PRE><DL><DD>Blend function: <code>f = 0</code>.<P><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_ZERO">Constant Field Values</A></DL></DL><HR><A NAME="BLEND_ONE"><!-- --></A><H3>BLEND_ONE</H3><PRE>public static final int <B>BLEND_ONE</B></PRE><DL><DD>Blend function: <code>f = 1</code>.<P><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">Constant Field Values</A></DL></DL><HR><A NAME="BLEND_SRC_ALPHA"><!-- --></A><H3>BLEND_SRC_ALPHA</H3><PRE>public static final int <B>BLEND_SRC_ALPHA</B></PRE><DL><DD>Blend function: <code>f = alpha<sub><font size=-1>src</font></sub></code>.<P><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_SRC_ALPHA">Constant Field Values</A></DL></DL><HR><A NAME="BLEND_ONE_MINUS_SRC_ALPHA"><!-- --></A><H3>BLEND_ONE_MINUS_SRC_ALPHA</H3><PRE>public static final int <B>BLEND_ONE_MINUS_SRC_ALPHA</B></PRE><DL><DD>Blend function: <code>f = 1-alpha<sub><font size=-1>src</font></sub></code>.<P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -