⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lw3dloader.html

📁 这是一个JAVA的代码
💻 HTML
📖 第 1 页 / 共 2 页
字号:
public <B>Lw3dLoader</B>()</PRE><DL><DD>Default constructor.  Sets up default values for some variables.<P></DL><HR><A NAME="Lw3dLoader(int)"><!-- --></A><H3>Lw3dLoader</H3><PRE>public <B>Lw3dLoader</B>(int&nbsp;flags)</PRE><DL><DD>This constructor takes a flags word that specifies which types of scenefile items should be loaded into the scene.  The possible values are specified in the com.sun.j3d.loaders.Loader class.<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.net.URL)"><!-- --></A><H3>load</H3><PRE>public <A HREF="../../../../../com/sun/j3d/loaders/Scene.html">Scene</A> <B>load</B>(java.net.URL&nbsp;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>This method loads the named file and returns the Scene containing the scene.  Any data files referenced by the Reader should be located in the same place as the named file; otherwise, users should specify an alternate base path with the setBaseUrl(URL) method.<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.lang.String)"><!-- --></A><H3>load</H3><PRE>public <A HREF="../../../../../com/sun/j3d/loaders/Scene.html">Scene</A> <B>load</B>(java.lang.String&nbsp;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>This method loads the named file and returns the Scene containing the scene.  Any data files referenced by this file should be located in the same place as the named file; otherwise users should specify an alternate base path with the setBasePath(String) method.<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.io.Reader)"><!-- --></A><H3>load</H3><PRE>public <A HREF="../../../../../com/sun/j3d/loaders/Scene.html">Scene</A> <B>load</B>(java.io.Reader&nbsp;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>This method loads the Reader and returns the Scene containing the scene.  Any data files referenced by the Reader should be located in the user's current working directory.<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&nbsp;url)</PRE><DL><DD>This method sets the base URL name for data files associated with the file passed into the load(URL) method. The basePath should be null by default, which is an indicator to the loader that it should look for any associated files starting from the same directory as the file passed into the load(URL) method.<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="setBasePath(java.lang.String)"><!-- --></A><H3>setBasePath</H3><PRE>public void <B>setBasePath</B>(java.lang.String&nbsp;pathName)</PRE><DL><DD>This method sets the base path to be used when searching for all data files within a Lightwave scene.<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="getBaseUrl()"><!-- --></A><H3>getBaseUrl</H3><PRE>public java.net.URL <B>getBaseUrl</B>()</PRE><DL><DD>Returns the current base URL setting.<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="getBasePath()"><!-- --></A><H3>getBasePath</H3><PRE>public java.lang.String <B>getBasePath</B>()</PRE><DL><DD>Returns the current base path setting.<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&nbsp;flags)</PRE><DL><DD>This method sets the load flags for the file.  The flags should equal 0 by default (which tells the loader to only load geometry).<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>Returns the current loading flags setting.<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><HR><A NAME="getObject(java.lang.String)"><!-- --></A><H3>getObject</H3><PRE>public <A HREF="../../../../../javax/media/j3d/TransformGroup.html">TransformGroup</A> <B>getObject</B>(java.lang.String&nbsp;name)</PRE><DL><DD>getObject() iterates through the objectList checking the given name against the fileName and objectName of each object in turn. For the filename, it carves off the pathname and just checks the final name (e.g., "missile.lwo"). If name has []'s at the end, it will use the number inside those brackets to pick which object out of an ordered set it will send back (objectList is created in the order that objects exist in the file, so this order should correspond to the order specified by the user).  If no []'s exist, just pass back the first one encountered that matches.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="debugOutputLn(int, java.lang.String)"><!-- --></A><H3>debugOutputLn</H3><PRE>protected void <B>debugOutputLn</B>(int&nbsp;outputType,                             java.lang.String&nbsp;theOutput)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="debugOutput(int, java.lang.String)"><!-- --></A><H3>debugOutput</H3><PRE>protected void <B>debugOutput</B>(int&nbsp;outputType,                           java.lang.String&nbsp;theOutput)</PRE><DL><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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Lw3dLoader.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -