📄 raster.html
字号:
<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<DT><B>Since:</B></DT> <DD>Java 3D 1.3</DD></DL></DD></DL><HR><A NAME="setSize(int, int)"><!-- --></A><H3>setSize</H3><PRE>public void <B>setSize</B>(int width, int height)</PRE><DL><DD>Sets the number of pixels to be copied from the pixel array.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>width</CODE> - the number of columns in the array of pixels to copy<DD><CODE>height</CODE> - the number of rows in the array of pixels to copy<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="setSize(java.awt.Dimension)"><!-- --></A><H3>setSize</H3><PRE>public void <B>setSize</B>(java.awt.Dimension size)</PRE><DL><DD>Sets the size of the array of pixels to be copied.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>size</CODE> - the new size<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="getSize(java.awt.Dimension)"><!-- --></A><H3>getSize</H3><PRE>public void <B>getSize</B>(java.awt.Dimension size)</PRE><DL><DD>Retrieves the current raster size.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>size</CODE> - the object that will receive the size<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="setDstOffset(int, int)"><!-- --></A><H3>setDstOffset</H3><PRE>public void <B>setDstOffset</B>(int xDstOffset, int yDstOffset)</PRE><DL><DD>Sets the destination pixel offset of the upper-left corner of the rendered image relative to the transformed position. This pixel offset is added to the transformed raster position prior to rendering the image.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>xDstOffset</CODE> - the x coordinate of the new offset<DD><CODE>yDstOffset</CODE> - the y coordinate of the new offset<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<DT><B>Since:</B></DT> <DD>Java 3D 1.3</DD></DL></DD></DL><HR><A NAME="setDstOffset(java.awt.Point)"><!-- --></A><H3>setDstOffset</H3><PRE>public void <B>setDstOffset</B>(java.awt.Point dstOffset)</PRE><DL><DD>Sets the destination pixel offset of the upper-left corner of the rendered image relative to the transformed position. This pixel offset is added to the transformed raster position prior to rendering the image.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>dstOffset</CODE> - the new destination pixel offset<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<DT><B>Since:</B></DT> <DD>Java 3D 1.3</DD></DL></DD></DL><HR><A NAME="getDstOffset(java.awt.Point)"><!-- --></A><H3>getDstOffset</H3><PRE>public void <B>getDstOffset</B>(java.awt.Point dstOffset)</PRE><DL><DD>Retrieves the current destination pixel offset.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>dstOffset</CODE> - the object that will receive the destination offset<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<DT><B>Since:</B></DT> <DD>Java 3D 1.3</DD></DL></DD></DL><HR><A NAME="setImage(javax.media.j3d.ImageComponent2D)"><!-- --></A><H3>setImage</H3><PRE>public void <B>setImage</B>(<A HREF="../../../javax/media/j3d/ImageComponent2D.html" title="class in javax.media.j3d">ImageComponent2D</A> image)</PRE><DL><DD>Sets the pixel array used to copy pixels to/from a Canvas3D. This is used when the type is RASTER_COLOR or RASTER_COLOR_DEPTH.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - the ImageComponent2D object containing the color data<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/IllegalSharingException.html" title="class in javax.media.j3d">IllegalSharingException</A></CODE> - if this Raster is live and the specified image is being used by a Canvas3D as an off-screen buffer.<DD><CODE>java.lang.IllegalArgumentException</CODE> - if the image class of the specified ImageComponent2D is ImageClass.NIO_IMAGE_BUFFER.</DL></DD></DL><HR><A NAME="getImage()"><!-- --></A><H3>getImage</H3><PRE>public <A HREF="../../../javax/media/j3d/ImageComponent2D.html" title="class in javax.media.j3d">ImageComponent2D</A> <B>getImage</B>()</PRE><DL><DD>Retrieves the current pixel array object.<P><DD><DL><DT><B>Returns:</B><DD>image the ImageComponent2D object containing the color data<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="setDepthComponent(javax.media.j3d.DepthComponent)"><!-- --></A><H3>setDepthComponent</H3><PRE>public void <B>setDepthComponent</B>(<A HREF="../../../javax/media/j3d/DepthComponent.html" title="class in javax.media.j3d">DepthComponent</A> depthComponent)</PRE><DL><DD>Sets the depth image used to copy pixels to/from a Canvas3D. This is used when the type is RASTER_DEPTH or RASTER_COLOR_DEPTH.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>depthComponent</CODE> - the DepthComponent object containing the depth (z-buffer) data<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="getDepthComponent()"><!-- --></A><H3>getDepthComponent</H3><PRE>public <A HREF="../../../javax/media/j3d/DepthComponent.html" title="class in javax.media.j3d">DepthComponent</A> <B>getDepthComponent</B>()</PRE><DL><DD>Retrieves the current depth image object.<P><DD><DL><DT><B>Returns:</B><DD>depthImage DepthComponent containing the depth (z-buffer) data<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="cloneNodeComponent()"><!-- --></A><H3>cloneNodeComponent</H3><PRE>public <A HREF="../../../javax/media/j3d/NodeComponent.html" title="class in javax.media.j3d">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" title="class in javax.media.j3d">NodeComponent</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="duplicateNodeComponent(javax.media.j3d.NodeComponent)"><!-- --></A><H3>duplicateNodeComponent</H3><PRE>public void <B>duplicateNodeComponent</B>(<A HREF="../../../javax/media/j3d/NodeComponent.html" title="class in javax.media.j3d">NodeComponent</A> originalNodeComponent)</PRE><DL><DD><B>Deprecated.</B> <I>replaced with duplicateNodeComponent( NodeComponent originalNodeComponent, boolean forceDuplicate)</I><P><DD>NOTE: Applications should <i>not</i> call this method directly. It should only be called by the cloneNode method.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/media/j3d/NodeComponent.html#duplicateNodeComponent(javax.media.j3d.NodeComponent)">duplicateNodeComponent</A></CODE> in class <CODE><A HREF="../../../javax/media/j3d/NodeComponent.html" title="class in javax.media.j3d">NodeComponent</A></CODE></DL></DD><DD><DL></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> </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/QuadArray.html" title="class in javax.media.j3d"><B>PREV CLASS</B></A> <A HREF="../../../javax/media/j3d/RenderingAttributes.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/Raster.html" target="_top"><B>FRAMES</B></A> <A HREF="Raster.html" target="_top"><B>NO FRAMES</B></A> <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: 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><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 + -