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

📄 objectfile.html

📁 JAVA多媒体开发类库说明
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flag sent to constructor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/loaders/objectfile/ObjectFile.html#STRIPIFY">STRIPIFY</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flag sent to contructor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/loaders/objectfile/ObjectFile.html#TRIANGULATE">TRIANGULATE</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flag sent to constructor.</TD></TR></TABLE>&nbsp;<A NAME="fields_inherited_from_class_com.sun.j3d.loaders.Loader"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Fields inherited from interface com.sun.j3d.loaders.<A HREF="../../../../../com/sun/j3d/loaders/Loader.html" title="interface in com.sun.j3d.loaders">Loader</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../com/sun/j3d/loaders/Loader.html#LOAD_ALL">LOAD_ALL</A>, <A HREF="../../../../../com/sun/j3d/loaders/Loader.html#LOAD_BACKGROUND_NODES">LOAD_BACKGROUND_NODES</A>, <A HREF="../../../../../com/sun/j3d/loaders/Loader.html#LOAD_BEHAVIOR_NODES">LOAD_BEHAVIOR_NODES</A>, <A HREF="../../../../../com/sun/j3d/loaders/Loader.html#LOAD_FOG_NODES">LOAD_FOG_NODES</A>, <A HREF="../../../../../com/sun/j3d/loaders/Loader.html#LOAD_LIGHT_NODES">LOAD_LIGHT_NODES</A>, <A HREF="../../../../../com/sun/j3d/loaders/Loader.html#LOAD_SOUND_NODES">LOAD_SOUND_NODES</A>, <A HREF="../../../../../com/sun/j3d/loaders/Loader.html#LOAD_VIEW_GROUPS">LOAD_VIEW_GROUPS</A></CODE></TD></TR></TABLE>&nbsp;<!-- ======== 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/loaders/objectfile/ObjectFile.html#ObjectFile()">ObjectFile</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default constructor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/j3d/loaders/objectfile/ObjectFile.html#ObjectFile(int)">ObjectFile</A></B>(int&nbsp;flags)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/j3d/loaders/objectfile/ObjectFile.html#ObjectFile(int, float)">ObjectFile</A></B>(int&nbsp;flags,           float&nbsp;radians)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor.</TD></TR></TABLE>&nbsp;<!-- ========== 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>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/loaders/objectfile/ObjectFile.html#getBasePath()">getBasePath</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the path where files associated with this .obj file (like material files) are located.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.net.URL</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/loaders/objectfile/ObjectFile.html#getBaseUrl()">getBaseUrl</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the URL where files associated with this .obj file (like material properties files) will be found.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/loaders/objectfile/ObjectFile.html#getFlags()">getFlags</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the parameters currently defined for loading the model.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../com/sun/j3d/loaders/Scene.html" title="interface in com.sun.j3d.loaders">Scene</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/loaders/objectfile/ObjectFile.html#load(java.io.Reader)">load</A></B>(java.io.Reader&nbsp;reader)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Object File is loaded from the already opened file.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../com/sun/j3d/loaders/Scene.html" title="interface in com.sun.j3d.loaders">Scene</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/loaders/objectfile/ObjectFile.html#load(java.lang.String)">load</A></B>(java.lang.String&nbsp;filename)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Object File is loaded from the .obj file specified by the filename.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../com/sun/j3d/loaders/Scene.html" title="interface in com.sun.j3d.loaders">Scene</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/loaders/objectfile/ObjectFile.html#load(java.net.URL)">load</A></B>(java.net.URL&nbsp;url)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The object file is loaded off of the web.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/loaders/objectfile/ObjectFile.html#setBasePath(java.lang.String)">setBasePath</A></B>(java.lang.String&nbsp;pathName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the path where files associated with this .obj file are located.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/loaders/objectfile/ObjectFile.html#setBaseUrl(java.net.URL)">setBaseUrl</A></B>(java.net.URL&nbsp;url)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For an .obj file loaded from a URL, set the URL where associated files (like material properties files) will be found.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/loaders/objectfile/ObjectFile.html#setFlags(int)">setFlags</A></B>(int&nbsp;flags)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set parameters for loading the model.</TD></TR></TABLE>&nbsp;<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>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="RESIZE"><!-- --></A><H3>RESIZE</H3><PRE>public static final int <B>RESIZE</B></PRE><DL><DD>Flag sent to constructor.  The object's vertices will be changed so that the object is centered at (0,0,0) and the coordinate positions are all in the range of (-1,-1,-1) to (1,1,1).<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.sun.j3d.loaders.objectfile.ObjectFile.RESIZE">Constant Field Values</A></DL></DL><HR><A NAME="TRIANGULATE"><!-- --></A><H3>TRIANGULATE</H3><PRE>public static final int <B>TRIANGULATE</B></PRE><DL><DD>Flag sent to constructor.  The Shape3D object will be created by using the GeometryInfo POLYGON_ARRAY primitive, causing them to be Triangulated by GeometryInfo.  Use this if you suspect concave or other non-behaving polygons in your model.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.sun.j3d.loaders.objectfile.ObjectFile.TRIANGULATE">Constant Field Values</A></DL></DL><HR><A NAME="REVERSE"><!-- --></A><H3>REVERSE</H3><PRE>public static final int <B>REVERSE</B></PRE><DL><DD>Flag sent to constructor.  Use if the vertices in your .obj file were specified with clockwise winding (Java 3D wants counter-clockwise) so you see the back of the polygons and not the front.  Calls GeometryInfo.reverse().<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.sun.j3d.loaders.objectfile.ObjectFile.REVERSE">Constant Field Values</A></DL></DL><HR><A NAME="STRIPIFY"><!-- --></A><H3>STRIPIFY</H3><PRE>public static final int <B>STRIPIFY</B></PRE><DL><DD>Flag sent to contructor.  After normals are generated the data will be analyzed to find triangle strips.  Use this if your hardware supports accelerated rendering of strips.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.sun.j3d.loaders.objectfile.ObjectFile.STRIPIFY">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="ObjectFile(int, float)"><!-- --></A><H3>ObjectFile</H3><PRE>public <B>ObjectFile</B>(int&nbsp;flags,                  float&nbsp;radians)</PRE><DL><DD>Constructor.<P><DL><DT><B>Parameters:</B><DD><CODE>flags</CODE> - The constants from above or from com.sun.j3d.loaders.Loader, possibly "or'ed" (|) together.<DD><CODE>radians</CODE> - Ignored if the vn token is present in the model (user normals supplied).  Otherwise, crease angle to use within smoothing groups, or within geometry groups if the s token isn't present either.</DL></DL><HR><A NAME="ObjectFile(int)"><!-- --></A><H3>ObjectFile</H3><PRE>public <B>ObjectFile</B>(int&nbsp;flags)</PRE><DL><DD>Constructor.  Crease Angle set to default of 44 degrees (see NormalGenerator utility for details).<P><DL><DT><B>Parameters:</B><DD><CODE>flags</CODE> - The constants from above or from com.sun.j3d.loaders.Loader, possibly "or'ed" (|) together.</DL></DL><HR><A NAME="ObjectFile()"><!-- --></A><H3>ObjectFile</H3><PRE>public <B>ObjectFile</B>()</PRE><DL><DD>Default constructor.  Crease Angle set to default of

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -