📄 renderingattributes.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Sun Jun 23 01:50:37 PDT 2002 --><TITLE>RenderingAttributes (Java 3D API)</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><SCRIPT>function asd(){parent.document.title="RenderingAttributes (Java 3D API)";}</SCRIPT><BODY BGCOLOR="white" onload="asd();"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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/Raster.html"><B>PREV CLASS</B></A> <A HREF="../../../javax/media/j3d/RotationInterpolator.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="RenderingAttributes.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><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">javax.media.j3d</FONT><BR>Class RenderingAttributes</H2><PRE>java.lang.Object | +--<A HREF="../../../javax/media/j3d/SceneGraphObject.html">javax.media.j3d.SceneGraphObject</A> | +--<A HREF="../../../javax/media/j3d/NodeComponent.html">javax.media.j3d.NodeComponent</A> | +--<B>javax.media.j3d.RenderingAttributes</B></PRE><HR><DL><DT>public class <B>RenderingAttributes</B><DT>extends <A HREF="../../../javax/media/j3d/NodeComponent.html">NodeComponent</A></DL><P>The RenderingAttributes object defines common rendering attributes for all primitive types. The rendering attributes are:<p> <ul> <li>Alpha test function - used to compare the alpha test value with each per-pixel alpha value. If the test passes, the pixel is written, otherwise the pixel is not written. The alpha test function is set with the <code>setAlphaTestFunction</code> method. The alpha test function is one of the following:</li><p> <ul> <li>ALWAYS - pixels are always drawn, irrespective of the alpha value. This effectively disables alpha testing. This is the default setting.</li><p> <li>NEVER - pixels are never drawn, irrespective of the alpha value.</li><p> <li>EQUAL - pixels are drawn if the pixel alpha value is equal to the alpha test value.</li><p> <li>NOT_EQUAL - pixels are drawn if the pixel alpha value is not equal to the alpha test value.</li><p> <li>LESS - pixels are drawn if the pixel alpha value is less than the alpha test value.</li><p> <li>LESS_OR_EQUAL - pixels are drawn if the pixel alpha value is less than or equal to the alpha test value.</li><p> <li>GREATER - pixels are drawn if the pixel alpha value is greater than the alpha test value.</li><p> <li>GREATER_OR_EQUAL - pixels are drawn if the pixel alpha value is greater than or equal to the alpha test value.</li><p> </ul> <li>Alpha test value - the test value used by the alpha test function. This value is compared to the alpha value of each rendered pixel. The alpha test value is set with the <code>setAlphaTestValue</code> method. The default alpha test value is 0.0.</li><p> <li>Raster operation - the raster operation function for this RenderingAttributes component object. The raster operation is set with the <code>setRasterOp</code> method. The raster operation is enabled or disabled with the <code>setRasterOpEnable</code> method. The raster operation is one of the following:</li><p> <ul> <li>ROP_COPY - DST = SRC. This is the default operation.</li> <li>ROP_XOR - DST = SRC ^ DST.</li><p> </ul> <li>Vertex colors - vertex colors can be ignored for this RenderingAttributes object. This capability is set with the <code>setIgnoreVertexColors</code> method. If ignoreVertexColors is false, per-vertex colors are used, when present in the associated geometry objects, taking precedence over the ColoringAttributes color and the specified Material color(s). If ignoreVertexColors is true, per-vertex colors are ignored. In this case, if lighting is enabled, the Material diffuse color will be used as the object color. if lighting is disabled, the ColoringAttributes color is used. The default value is false.</li><p> <li>Visibility flag - when set, invisible objects are not rendered (subject to the visibility policy for the current view), but they can be picked or collided with. This flag is set with the <code>setVisible</code> method. By default, the visibility flag is true.</li><p> <li>Depth buffer - can be enabled or disabled for this RenderingAttributes component object. The <code>setDepthBufferEnable</code> method enables or disabled the depth buffer. The <code>setDepthBufferWriteEnable</code> method enables or disables writing the depth buffer for this object. During the transparent rendering pass, this attribute can be overridden by the depthBufferFreezeTransparent attribute in the View object. Transparent objects include BLENDED transparent and antialiased lines and points. Transparent objects do not include opaque objects or primitives rendered with SCREEN_DOOR transparency. By default, the depth buffer is enabled and the depth buffer write is enabled.</li><p> </ul><P><P><DL><DT><B>See Also:</B><DD><A HREF="../../../javax/media/j3d/Appearance.html"><CODE>Appearance</CODE></A></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/RenderingAttributes.html#ALLOW_ALPHA_TEST_FUNCTION_READ">ALLOW_ALPHA_TEST_FUNCTION_READ</A></B></CODE><BR> Specifies that this RenderingAttributes object allows reading its alpha test function component information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/RenderingAttributes.html#ALLOW_ALPHA_TEST_FUNCTION_WRITE">ALLOW_ALPHA_TEST_FUNCTION_WRITE</A></B></CODE><BR> Specifies that this RenderingAttributes object allows writing its alpha test function component information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/RenderingAttributes.html#ALLOW_ALPHA_TEST_VALUE_READ">ALLOW_ALPHA_TEST_VALUE_READ</A></B></CODE><BR> Specifies that this RenderingAttributes object allows reading its alpha test value component information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/RenderingAttributes.html#ALLOW_ALPHA_TEST_VALUE_WRITE">ALLOW_ALPHA_TEST_VALUE_WRITE</A></B></CODE><BR> Specifies that this RenderingAttributes object allows writing its alpha test value component information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/RenderingAttributes.html#ALLOW_DEPTH_ENABLE_READ">ALLOW_DEPTH_ENABLE_READ</A></B></CODE><BR> Specifies that this RenderingAttributes object allows reading its depth buffer enable and depth buffer write enable component information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/RenderingAttributes.html#ALLOW_DEPTH_ENABLE_WRITE">ALLOW_DEPTH_ENABLE_WRITE</A></B></CODE><BR> Specifies that this RenderingAttributes object allows writing its depth buffer enable and depth buffer write enable component information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/RenderingAttributes.html#ALLOW_IGNORE_VERTEX_COLORS_READ">ALLOW_IGNORE_VERTEX_COLORS_READ</A></B></CODE><BR> Specifies that this RenderingAttributes object allows reading its ignore vertex colors information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/RenderingAttributes.html#ALLOW_IGNORE_VERTEX_COLORS_WRITE">ALLOW_IGNORE_VERTEX_COLORS_WRITE</A></B></CODE><BR> Specifies that this RenderingAttributes object allows writing its ignore vertex colors information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/RenderingAttributes.html#ALLOW_RASTER_OP_READ">ALLOW_RASTER_OP_READ</A></B></CODE><BR> Specifies that this RenderingAttributes object allows reading its raster operation information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/RenderingAttributes.html#ALLOW_RASTER_OP_WRITE">ALLOW_RASTER_OP_WRITE</A></B></CODE><BR> Specifies that this RenderingAttributes object allows writing its raster operation information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/RenderingAttributes.html#ALLOW_VISIBLE_READ">ALLOW_VISIBLE_READ</A></B></CODE><BR> Specifies that this RenderingAttributes object allows reading its visibility information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/RenderingAttributes.html#ALLOW_VISIBLE_WRITE">ALLOW_VISIBLE_WRITE</A></B></CODE><BR> Specifies that this RenderingAttributes object allows writing its visibility information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/RenderingAttributes.html#ALWAYS">ALWAYS</A></B></CODE><BR> Indicates pixels are always drawn irrespective of alpha value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/RenderingAttributes.html#EQUAL">EQUAL</A></B></CODE><BR> Indicates pixels are drawn if pixel alpha value is equal to alpha test value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/RenderingAttributes.html#GREATER">GREATER</A></B></CODE><BR> Indicates pixels are drawn if pixel alpha value is greater than alpha test value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/RenderingAttributes.html#GREATER_OR_EQUAL">GREATER_OR_EQUAL</A></B></CODE><BR> Indicates pixels are drawn if pixel alpha value is greater than or equal to alpha test value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/RenderingAttributes.html#LESS">LESS</A></B></CODE><BR> Indicates pixels are drawn if pixel alpha value is less than alpha test value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/RenderingAttributes.html#LESS_OR_EQUAL">LESS_OR_EQUAL</A></B></CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -