📄 compressedgeometry.html
字号:
header, or if the java.nio.Buffer contained in the specified J3DBuffer is not a java.nio.ByteBuffer object.<DT><B>Since:</B><DD>Java 3D 1.3</DD></DD><DT><B>See Also:</B><DD><A HREF="../../../javax/media/j3d/CompressedGeometryHeader.html"><CODE>CompressedGeometryHeader</CODE></A>, <A HREF="../../../javax/media/j3d/Canvas3D.html#queryProperties()"><CODE>Canvas3D.queryProperties()</CODE></A></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="getByteCount()"><!-- --></A><H3>getByteCount</H3><PRE>public int <B>getByteCount</B>()</PRE><DL><DD>Returns the size, in bytes, of the compressed geometry buffer. The size of the compressed geometry header is not included.<P><DD><DL><DT><B>Returns:</B><DD>the size, in bytes, of the compressed geometry buffer.<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="getCompressedGeometryHeader(javax.media.j3d.CompressedGeometryHeader)"><!-- --></A><H3>getCompressedGeometryHeader</H3><PRE>public void <B>getCompressedGeometryHeader</B>(<A HREF="../../../javax/media/j3d/CompressedGeometryHeader.html">CompressedGeometryHeader</A> hdr)</PRE><DL><DD>Copies the compressed geometry header from the CompressedGeometry NodeComponent into the passed in parameter.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>hdr</CODE> - the CompressedGeometryHeader object into which to copy the CompressedGeometry NodeComponent's header; the offset field may differ from that which was originally specified if a copy of the original compressed geometry byte array was created.<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>See Also:</B><DD><A HREF="../../../javax/media/j3d/CompressedGeometryHeader.html"><CODE>CompressedGeometryHeader</CODE></A></DL></DD></DL><HR><A NAME="getCompressedGeometry(byte[])"><!-- --></A><H3>getCompressedGeometry</H3><PRE>public void <B>getCompressedGeometry</B>(byte[] compressedGeometry)</PRE><DL><DD>Retrieves the compressed geometry associated with the CompressedGeometry NodeComponent object. Copies the compressed geometry from the CompressedGeometry node into the given array. The array must be large enough to hold all of the bytes. The individual array elements must be allocated by the caller.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>compressedGeometry</CODE> - the array into which to copy the compressed geometry.<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.IllegalStateException</CODE> - if the data access mode for this object is by-reference.<DD><CODE>java.lang.ArrayIndexOutOfBoundsException</CODE> - if compressedGeometry byte array is not large enough to receive the compressed geometry</DL></DD></DL><HR><A NAME="decompress()"><!-- --></A><H3>decompress</H3><PRE>public <A HREF="../../../javax/media/j3d/Shape3D.html">Shape3D</A>[] <B>decompress</B>()</PRE><DL><DD>Decompresses the compressed geometry. Returns an array of Shape nodes containing the decompressed geometry objects, or null if the version number of the compressed geometry is incompatible with the decompressor in the current version of Java 3D.<P><DD><DL><DT><B>Returns:</B><DD>an array of Shape nodes containing the geometry decompressed from this CompressedGeometry NodeComponent object, or null if its version is incompatible<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="isByReference()"><!-- --></A><H3>isByReference</H3><PRE>public boolean <B>isByReference</B>()</PRE><DL><DD>Retrieves the data access mode for this CompressedGeometry object.<P><DD><DL><DT><B>Returns:</B><DD><code>true</code> if the data access mode for this CompressedGeometry object is by-reference; <code>false</code> if the data access mode is by-copying.<DT><B>Since:</B><DD>Java 3D 1.2</DD></DD></DL></DD></DL><HR><A NAME="getCompressedGeometryRef()"><!-- --></A><H3>getCompressedGeometryRef</H3><PRE>public byte[] <B>getCompressedGeometryRef</B>()</PRE><DL><DD>Gets the compressed geometry data reference.<P><DD><DL><DT><B>Returns:</B><DD>the current compressed geometry data reference; null is returned if this compressed geometry object was created with a J3DBuffer reference rather than a byte array.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if the data access mode for this object is not by-reference.<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="getCompressedGeometryBuffer()"><!-- --></A><H3>getCompressedGeometryBuffer</H3><PRE>public <A HREF="../../../javax/media/j3d/J3DBuffer.html">J3DBuffer</A> <B>getCompressedGeometryBuffer</B>()</PRE><DL><DD>Gets the compressed geometry data buffer reference.<P><DD><DL><DT><B>Returns:</B><DD>the current compressed geometry data buffer reference; null is returned if this compressed geometry object was created with a byte array reference rather than a J3DBuffer.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if the data access mode for this object is not by-reference.<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.3</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/ColorInterpolator.html"><B>PREV CLASS</B></A> <A HREF="../../../javax/media/j3d/CompressedGeometryHeader.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="CompressedGeometry.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 + -