objectfile.html
来自「这是一个JAVA的代码」· HTML 代码 · 共 793 行 · 第 1/3 页
HTML
793 行
set to zero (0).<P></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="load(java.lang.String)"><!-- --></A><H3>load</H3><PRE>public <A HREF="../../../../../com/sun/j3d/loaders/Scene.html">Scene</A> <B>load</B>(java.lang.String filename) throws java.io.FileNotFoundException, <A HREF="../../../../../com/sun/j3d/loaders/IncorrectFormatException.html">IncorrectFormatException</A>, <A HREF="../../../../../com/sun/j3d/loaders/ParsingErrorException.html">ParsingErrorException</A></PRE><DL><DD>The Object File is loaded from the .obj file specified by the filename. To attach the model to your scene, call getSceneGroup() on the Scene object passed back, and attach the returned BranchGroup to your scene graph. For an example, see $J3D/programs/examples/ObjLoad/ObjLoad.java.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/sun/j3d/loaders/Loader.html#load(java.lang.String)">load</A></CODE> in interface <CODE><A HREF="../../../../../com/sun/j3d/loaders/Loader.html">Loader</A></CODE></DL></DD><DD><DL><DD><CODE>java.io.FileNotFoundException</CODE><DD><CODE><A HREF="../../../../../com/sun/j3d/loaders/IncorrectFormatException.html">IncorrectFormatException</A></CODE><DD><CODE><A HREF="../../../../../com/sun/j3d/loaders/ParsingErrorException.html">ParsingErrorException</A></CODE></DL></DD></DL><HR><A NAME="load(java.net.URL)"><!-- --></A><H3>load</H3><PRE>public <A HREF="../../../../../com/sun/j3d/loaders/Scene.html">Scene</A> <B>load</B>(java.net.URL url) throws java.io.FileNotFoundException, <A HREF="../../../../../com/sun/j3d/loaders/IncorrectFormatException.html">IncorrectFormatException</A>, <A HREF="../../../../../com/sun/j3d/loaders/ParsingErrorException.html">ParsingErrorException</A></PRE><DL><DD>The object file is loaded off of the web. To attach the model to your scene, call getSceneGroup() on the Scene object passed back, and attach the returned BranchGroup to your scene graph. For an example, see $J3D/programs/examples/ObjLoad/ObjLoad.java.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/sun/j3d/loaders/Loader.html#load(java.net.URL)">load</A></CODE> in interface <CODE><A HREF="../../../../../com/sun/j3d/loaders/Loader.html">Loader</A></CODE></DL></DD><DD><DL><DD><CODE>java.io.FileNotFoundException</CODE><DD><CODE><A HREF="../../../../../com/sun/j3d/loaders/IncorrectFormatException.html">IncorrectFormatException</A></CODE><DD><CODE><A HREF="../../../../../com/sun/j3d/loaders/ParsingErrorException.html">ParsingErrorException</A></CODE></DL></DD></DL><HR><A NAME="load(java.io.Reader)"><!-- --></A><H3>load</H3><PRE>public <A HREF="../../../../../com/sun/j3d/loaders/Scene.html">Scene</A> <B>load</B>(java.io.Reader reader) throws java.io.FileNotFoundException, <A HREF="../../../../../com/sun/j3d/loaders/IncorrectFormatException.html">IncorrectFormatException</A>, <A HREF="../../../../../com/sun/j3d/loaders/ParsingErrorException.html">ParsingErrorException</A></PRE><DL><DD>The Object File is loaded from the already opened file. To attach the model to your scene, call getSceneGroup() on the Scene object passed back, and attach the returned BranchGroup to your scene graph. For an example, see $J3D/programs/examples/ObjLoad/ObjLoad.java.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/sun/j3d/loaders/Loader.html#load(java.io.Reader)">load</A></CODE> in interface <CODE><A HREF="../../../../../com/sun/j3d/loaders/Loader.html">Loader</A></CODE></DL></DD><DD><DL><DD><CODE>java.io.FileNotFoundException</CODE><DD><CODE><A HREF="../../../../../com/sun/j3d/loaders/IncorrectFormatException.html">IncorrectFormatException</A></CODE><DD><CODE><A HREF="../../../../../com/sun/j3d/loaders/ParsingErrorException.html">ParsingErrorException</A></CODE></DL></DD></DL><HR><A NAME="setBaseUrl(java.net.URL)"><!-- --></A><H3>setBaseUrl</H3><PRE>public void <B>setBaseUrl</B>(java.net.URL url)</PRE><DL><DD>For an .obj file loaded from a URL, set the URL where associated files (like material properties files) will be found. Only needs to be called to set it to a different URL from that containing the .obj file.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/sun/j3d/loaders/Loader.html#setBaseUrl(java.net.URL)">setBaseUrl</A></CODE> in interface <CODE><A HREF="../../../../../com/sun/j3d/loaders/Loader.html">Loader</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getBaseUrl()"><!-- --></A><H3>getBaseUrl</H3><PRE>public java.net.URL <B>getBaseUrl</B>()</PRE><DL><DD>Return the URL where files associated with this .obj file (like material properties files) will be found.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/sun/j3d/loaders/Loader.html#getBaseUrl()">getBaseUrl</A></CODE> in interface <CODE><A HREF="../../../../../com/sun/j3d/loaders/Loader.html">Loader</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setBasePath(java.lang.String)"><!-- --></A><H3>setBasePath</H3><PRE>public void <B>setBasePath</B>(java.lang.String pathName)</PRE><DL><DD>Set the path where files associated with this .obj file are located. Only needs to be called to set it to a different directory from that containing the .obj file.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/sun/j3d/loaders/Loader.html#setBasePath(java.lang.String)">setBasePath</A></CODE> in interface <CODE><A HREF="../../../../../com/sun/j3d/loaders/Loader.html">Loader</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getBasePath()"><!-- --></A><H3>getBasePath</H3><PRE>public java.lang.String <B>getBasePath</B>()</PRE><DL><DD>Return the path where files associated with this .obj file (like material files) are located.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/sun/j3d/loaders/Loader.html#getBasePath()">getBasePath</A></CODE> in interface <CODE><A HREF="../../../../../com/sun/j3d/loaders/Loader.html">Loader</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setFlags(int)"><!-- --></A><H3>setFlags</H3><PRE>public void <B>setFlags</B>(int flags)</PRE><DL><DD>Set parameters for loading the model. Flags defined in Loader.java are ignored by the ObjectFile Loader because the .obj file format doesn't include lights, fog, background, behaviors, views, or sounds. However, several flags are defined specifically for use with the ObjectFile Loader (see above).<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/sun/j3d/loaders/Loader.html#setFlags(int)">setFlags</A></CODE> in interface <CODE><A HREF="../../../../../com/sun/j3d/loaders/Loader.html">Loader</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getFlags()"><!-- --></A><H3>getFlags</H3><PRE>public int <B>getFlags</B>()</PRE><DL><DD>Get the parameters currently defined for loading the model. Flags defined in Loader.java are ignored by the ObjectFile Loader because the .obj file format doesn't include lights, fog, background, behaviors, views, or sounds. However, several flags are defined specifically for use with the ObjectFile Loader (see above).<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/sun/j3d/loaders/Loader.html#getFlags()">getFlags</A></CODE> in interface <CODE><A HREF="../../../../../com/sun/j3d/loaders/Loader.html">Loader</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"> PREV CLASS NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="ObjectFile.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 + =
减小字号Ctrl + -
显示快捷键?