📄 compressedgeometrydata.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.5.0_06) on Wed Dec 13 16:20:12 PST 2006 --><TITLE>CompressedGeometryData (Java 3D 1.5.0)</TITLE><META NAME="keywords" CONTENT="com.sun.j3d.utils.geometry.compression.CompressedGeometryData class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="CompressedGeometryData (Java 3D 1.5.0)";}</SCRIPT><NOSCRIPT></NOSCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" 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_top_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"> PREV CLASS <A HREF="../../../../../../com/sun/j3d/utils/geometry/compression/CompressedGeometryData.Header.html" title="class in com.sun.j3d.utils.geometry.compression"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../../index.html?com/sun/j3d/utils/geometry/compression/CompressedGeometryData.html" target="_top"><B>FRAMES</B></A> <A HREF="CompressedGeometryData.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: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">com.sun.j3d.utils.geometry.compression</FONT><BR>Class CompressedGeometryData</H2><PRE>java.lang.Object <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>com.sun.j3d.utils.geometry.compression.CompressedGeometryData</B></PRE><HR><DL><DT><PRE>public class <B>CompressedGeometryData</B><DT>extends java.lang.Object</DL></PRE><P>The compressed geometry object is used to store geometry in a compressed format. Using compressed geometry may increase the speed objects can be sent over the network. Note that the geometry will be decompressed in memory, so the application will not see any memory savings. <p> Compressed geometry may be passed to this CompressedGeometryData object in one of two ways: by copying the data into this object using the existing constructor, or by passing a reference to the data. <p> <ul> <li> <b>By Copying:</b> In by-copy mode, the CompressedGeometryData constructor copies the buffer of compressed geometry data into this CompressedGeometryData object. This is appropriate for many applications, and allows Java 3D to verify the data once and then not worry about it again. </li> <li><b>By Reference:</b> In by-reference mode, the compressed geometry data is accessed by reference, directly from the user's array. To use this feature, you need to construct a CompressedGeometryData object with the <code>byReference</code> flag set to <code>true</code>. In this mode, a reference to the input data is saved, but the data itself is not necessarily copied. Note that the compressed geometry header is still copied into this compressed geometry object. Data referenced by a CompressedGeometryData object must not be modified after the CompressedGeometryData object is constructed. Applications must exercise care not to violate this rule. If any referenced compressed geometry data is modified after construction, the results are undefined. </li> </ul><P><P><DL><DT><B>Since:</B></DT> <DD>Java 3D 1.5</DD></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><A NAME="nested_class_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Nested Class Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/j3d/utils/geometry/compression/CompressedGeometryData.Header.html" title="class in com.sun.j3d.utils.geometry.compression">CompressedGeometryData.Header</A></B></CODE><BR> The Header class is a data container for the header information, used in conjunction with a CompressedGeometryData object.</TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../../com/sun/j3d/utils/geometry/compression/CompressedGeometryData.html#CompressedGeometryData(com.sun.j3d.utils.geometry.compression.CompressedGeometryData.Header, byte[])">CompressedGeometryData</A></B>(<A HREF="../../../../../../com/sun/j3d/utils/geometry/compression/CompressedGeometryData.Header.html" title="class in com.sun.j3d.utils.geometry.compression">CompressedGeometryData.Header</A> hdr, byte[] compressedGeometry)</CODE><BR> Creates a new CompressedGeometryData object by copying the specified compressed geometry data into this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../../com/sun/j3d/utils/geometry/compression/CompressedGeometryData.html#CompressedGeometryData(com.sun.j3d.utils.geometry.compression.CompressedGeometryData.Header, byte[], boolean)">CompressedGeometryData</A></B>(<A HREF="../../../../../../com/sun/j3d/utils/geometry/compression/CompressedGeometryData.Header.html" title="class in com.sun.j3d.utils.geometry.compression">CompressedGeometryData.Header</A> hdr, byte[] compressedGeometry, boolean byReference)</CODE><BR> Creates a new CompressedGeometryData object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../../com/sun/j3d/utils/geometry/compression/CompressedGeometryData.html#CompressedGeometryData(com.sun.j3d.utils.geometry.compression.CompressedGeometryData.Header, javax.media.j3d.J3DBuffer)">CompressedGeometryData</A></B>(<A HREF="../../../../../../com/sun/j3d/utils/geometry/compression/CompressedGeometryData.Header.html" title="class in com.sun.j3d.utils.geometry.compression">CompressedGeometryData.Header</A> hdr, <A HREF="../../../../../../javax/media/j3d/J3DBuffer.html" title="class in javax.media.j3d">J3DBuffer</A> compressedGeometry)</CODE><BR> Creates a new CompressedGeometryData object.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../../javax/media/j3d/Shape3D.html" title="class in javax.media.j3d">Shape3D</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/j3d/utils/geometry/compression/CompressedGeometryData.html#decompress()">decompress</A></B>()</CODE><BR> Decompresses the compressed geometry.</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="../../../../../../com/sun/j3d/utils/geometry/compression/CompressedGeometryData.html#getByteCount()">getByteCount</A></B>()</CODE><BR> Returns the size, in bytes, of the compressed geometry buffer.</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="../../../../../../com/sun/j3d/utils/geometry/compression/CompressedGeometryData.html#getCompressedGeometry(byte[])">getCompressedGeometry</A></B>(byte[] compressedGeometry)</CODE><BR> Retrieves the compressed geometry associated with the CompressedGeometryData object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../../javax/media/j3d/J3DBuffer.html" title="class in javax.media.j3d">J3DBuffer</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/j3d/utils/geometry/compression/CompressedGeometryData.html#getCompressedGeometryBuffer()">getCompressedGeometryBuffer</A></B>()</CODE><BR> Gets the compressed geometry data buffer reference, which is always null since NIO buffers are not supported for CompressedGeometryData objects.</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="../../../../../../com/sun/j3d/utils/geometry/compression/CompressedGeometryData.html#getCompressedGeometryHeader(com.sun.j3d.utils.geometry.compression.CompressedGeometryData.Header)">getCompressedGeometryHeader</A></B>(<A HREF="../../../../../../com/sun/j3d/utils/geometry/compression/CompressedGeometryData.Header.html" title="class in com.sun.j3d.utils.geometry.compression">CompressedGeometryData.Header</A> hdr)</CODE><BR> Copies the compressed geometry header from the CompressedGeometryData object into the passed in parameter.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/j3d/utils/geometry/compression/CompressedGeometryData.html#getCompressedGeometryRef()">getCompressedGeometryRef</A></B>()</CODE><BR> Gets the compressed geometry data reference.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/j3d/utils/geometry/compression/CompressedGeometryData.html#isByReference()">isByReference</A></B>()</CODE><BR> Retrieves the data access mode for this CompressedGeometryData object.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -