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

📄 morphingmesh.html

📁 J2ME Mobile3D API,高性能手机3D开发的api
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<P>
<DT><B>Parameters:</B><DD><CODE>base</CODE> - a VertexBuffer representing the base mesh<DD><CODE>targets</CODE> - a VertexBuffer array representing the morph targets<DD><CODE>submesh</CODE> - an IndexBuffer defining the triangle strips to draw<DD><CODE>appearance</CODE> - an Appearance to use for this mesh<DT><B>Throws:</B><DD><CODE>java.lang.NullPointerException</CODE> - if <code>base</code> is null<DD><CODE>java.lang.NullPointerException</CODE> - if <code>targets</code> is null<DD><CODE>java.lang.NullPointerException</CODE> - if <code>submesh</code> is null<DD><CODE>java.lang.NullPointerException</CODE> - if any element in <code>targets</code>         is null<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>targets</code> is empty</DL>
<HR>

<A NAME="MorphingMesh(javax.microedition.m3g.VertexBuffer, javax.microedition.m3g.VertexBuffer[], javax.microedition.m3g.IndexBuffer[], javax.microedition.m3g.Appearance[])"><!-- --></A><H3>
MorphingMesh</H3>
<PRE>
public <B>MorphingMesh</B>(<A HREF="../../../javax/microedition/m3g/VertexBuffer.html">VertexBuffer</A>&nbsp;base,                    <A HREF="../../../javax/microedition/m3g/VertexBuffer.html">VertexBuffer</A>[]&nbsp;targets,                    <A HREF="../../../javax/microedition/m3g/IndexBuffer.html">IndexBuffer</A>[]&nbsp;submeshes,                    <A HREF="../../../javax/microedition/m3g/Appearance.html">Appearance</A>[]&nbsp;appearances)</PRE>
<DL>
<DD><p>Constructs a new MorphingMesh with the given base mesh and morph targets. Except for the morph targets, the behavior of this constructor is identical to the corresponding constructor in Mesh; refer to that for more information.</p> <p>The morph target weights are initially set to zero, meaning that the resultant mesh is equal to the base mesh. The behavior of a newly constructed MorphingMesh is therefore equivalent to an ordinary Mesh.</p>
<P>
<DT><B>Parameters:</B><DD><CODE>base</CODE> - a VertexBuffer representing the base mesh<DD><CODE>targets</CODE> - a VertexBuffer array representing the morph targets<DD><CODE>submeshes</CODE> - an IndexBuffer array defining the submeshes to draw<DD><CODE>appearances</CODE> - an Appearance array parallel to        <code>submeshes</code><DT><B>Throws:</B><DD><CODE>java.lang.NullPointerException</CODE> - if <code>base</code> is null<DD><CODE>java.lang.NullPointerException</CODE> - if <code>targets</code> is null<DD><CODE>java.lang.NullPointerException</CODE> - if <code>submeshes</code> is null<DD><CODE>java.lang.NullPointerException</CODE> - if any element in         <code>targets</code> is null<DD><CODE>java.lang.NullPointerException</CODE> - if any element in         <code>submeshes</code> is null<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>targets</code> is empty<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>submeshes</code> is empty<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>appearances.length &lt;         submeshes.length</code></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="getMorphTarget(int)"><!-- --></A><H3>
getMorphTarget</H3>
<PRE>
public <A HREF="../../../javax/microedition/m3g/VertexBuffer.html">VertexBuffer</A> <B>getMorphTarget</B>(int&nbsp;index)</PRE>
<DL>
<DD><p>Returns the morph target VertexBuffer at the given index.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the morph target to get<DT><B>Returns:</B><DD>the VertexBuffer object at <code>index</code><DT><B>Throws:</B><DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - if <code>(index &lt; 0) ||         (index &gt;= getMorphTargetCount)</code><DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/Mesh.html#getVertexBuffer()"><CODE>Mesh.getVertexBuffer</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getMorphTargetCount()"><!-- --></A><H3>
getMorphTargetCount</H3>
<PRE>
public int <B>getMorphTargetCount</B>()</PRE>
<DL>
<DD><p>Returns the number of morph targets in this MorphingMesh.</p>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the number of morph targets</DL>
</DD>
</DL>
<HR>

<A NAME="setWeights(float[])"><!-- --></A><H3>
setWeights</H3>
<PRE>
public void <B>setWeights</B>(float[]&nbsp;weights)</PRE>
<DL>
<DD><p>Sets the weights for all morph targets in this mesh. The number of weights copied in is the number of target vertex buffers, as specified at construction time. The source array must have at least that many elements. See the class description for more information.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>weights</CODE> - weight factors for all morph targets<DT><B>Throws:</B><DD><CODE>java.lang.NullPointerException</CODE> - if <code>weights</code> is null<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>weights.length &lt;         getMorphTargetCount</code><DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/MorphingMesh.html#getWeights(float[])"><CODE>getWeights</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getWeights(float[])"><!-- --></A><H3>
getWeights</H3>
<PRE>
public void <B>getWeights</B>(float[]&nbsp;weights)</PRE>
<DL>
<DD><p>Gets the current morph target weights for this mesh.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>weights</CODE> - array to be populated with the morph target weights<DT><B>Throws:</B><DD><CODE>java.lang.NullPointerException</CODE> - if <code>weights</code> is null<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>weights.length &lt;         getMorphTargetCount</code><DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/MorphingMesh.html#setWeights(float[])"><CODE>setWeights</CODE></A></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="class-use/MorphingMesh.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&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-files/index-1.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><B>Nov 19, 2003</B></EM></EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../javax/microedition/m3g/Mesh.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../javax/microedition/m3g/Node.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>  &nbsp;
&nbsp;<A HREF="MorphingMesh.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="#fields_inherited_from_class_javax.microedition.m3g.Node">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;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<EM>Copyright &copy 2003 Nokia Corporation. See the <a href="../../../overview-summary.html#Copyright">Copyright Notice</a> for details.</EM>
</BODY>
</HTML>

⌨️ 快捷键说明

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