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

📄 pathinterpolator.html

📁 JAVA多媒体开发类库说明
💻 HTML
📖 第 1 页 / 共 3 页
字号:
 is copied into this PathInterpolator object.<P><DL><DT><B>Parameters:</B><DD><CODE>alpha</CODE> - the alpha object for this interpolator.<DD><CODE>target</CODE> - the transformgroup node effected by this pathInterpolator<DD><CODE>knots</CODE> - an array of knot values that specify interpolation points.<DT><B>Since:</B></DT>  <DD>Java 3D 1.3</DD></DL></DL><HR><A NAME="PathInterpolator(javax.media.j3d.Alpha, javax.media.j3d.TransformGroup, javax.media.j3d.Transform3D, float[])"><!-- --></A><H3>PathInterpolator</H3><PRE>public <B>PathInterpolator</B>(<A HREF="../../../javax/media/j3d/Alpha.html" title="class in javax.media.j3d">Alpha</A>&nbsp;alpha,                        <A HREF="../../../javax/media/j3d/TransformGroup.html" title="class in javax.media.j3d">TransformGroup</A>&nbsp;target,                        <A HREF="../../../javax/media/j3d/Transform3D.html" title="class in javax.media.j3d">Transform3D</A>&nbsp;axisOfTransform,                        float[]&nbsp;knots)</PRE><DL><DD>Constructs a new PathInterpolator object that interpolates between the knot values in the knots array.  The array of knots is copied into this PathInterpolator object.<P><DL><DT><B>Parameters:</B><DD><CODE>alpha</CODE> - the alpha object for this interpolator.<DD><CODE>target</CODE> - the transform node effected by this positionInterpolator<DD><CODE>axisOfTransform</CODE> - the transform that defines the local coordinate<DD><CODE>knots</CODE> - an array of knot values that specify interpolation points.<DT><B>Since:</B></DT>  <DD>Java 3D 1.3</DD></DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_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>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getArrayLengths()"><!-- --></A><H3>getArrayLengths</H3><PRE>public int <B>getArrayLengths</B>()</PRE><DL><DD>Retrieves the length of the knots array.<P><DD><DL><DT><B>Returns:</B><DD>the array length</DL></DD></DL><HR><A NAME="setKnot(int, float)"><!-- --></A><H3>setKnot</H3><PRE>public void <B>setKnot</B>(int&nbsp;index,                    float&nbsp;knot)</PRE><DL><DD>Sets the knot at the specified index for this interpolator.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index to be changed<DD><CODE>knot</CODE> - the new knot value</DL></DD></DL><HR><A NAME="getKnot(int)"><!-- --></A><H3>getKnot</H3><PRE>public float <B>getKnot</B>(int&nbsp;index)</PRE><DL><DD>Retrieves the knot at the specified index.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the value requested<DT><B>Returns:</B><DD>the interpolator's knot value at the associated index</DL></DD></DL><HR><A NAME="setKnots(float[])"><!-- --></A><H3>setKnots</H3><PRE>protected void <B>setKnots</B>(float[]&nbsp;knots)</PRE><DL><DD>Replaces the existing array of knot values with the specified array.  The array of knots is copied into this interpolator object.  Prior to calling this method, subclasses should verify that the lengths of the new knots array and subclass-specific parameter arrays are the same.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>knots</CODE> - a new array of knot values that specify interpolation points.<DT><B>Since:</B></DT>  <DD>Java 3D 1.2</DD></DL></DD></DL><HR><A NAME="getKnots(float[])"><!-- --></A><H3>getKnots</H3><PRE>public void <B>getKnots</B>(float[]&nbsp;knots)</PRE><DL><DD>Copies the array of knots from this interpolator into the specified array. The array must be large enough to hold all of the knots.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>knots</CODE> - array that will receive the knots.<DT><B>Since:</B></DT>  <DD>Java 3D 1.2</DD></DL></DD></DL><HR><A NAME="computePathInterpolation(float)"><!-- --></A><H3>computePathInterpolation</H3><PRE>protected void <B>computePathInterpolation</B>(float&nbsp;alphaValue)</PRE><DL><DD>Computes the base knot index and interpolation value given the specified value of alpha and the knots[] array.  If the index is 0 and there should be no interpolation, both the index variable and the interpolation variable are set to 0. Otherwise, currentKnotIndex is set to the lower index of the two bounding knot points and the currentInterpolationValue variable is set to the ratio of the alpha value between these two bounding knot points.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>alphaValue</CODE> - alpha value between 0.0 and 1.0<DT><B>Since:</B></DT>  <DD>Java 3D 1.3</DD></DL></DD></DL><HR><A NAME="computePathInterpolation()"><!-- --></A><H3>computePathInterpolation</H3><PRE>protected void <B>computePathInterpolation</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>As of Java 3D version 1.3, replaced by <code>computePathInterpolation(float)</code></I><P><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" 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_bottom_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>&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;<A HREF="../../../javax/media/j3d/OrientedShape3D.html" title="class in javax.media.j3d"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/media/j3d/PhysicalBody.html" title="class in javax.media.j3d"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html?javax/media/j3d/PathInterpolator.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="PathInterpolator.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&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><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1">Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="../../../LICENSE-SPEC.html">license terms</a>.</BODY></HTML>

⌨️ 快捷键说明

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