📄 pathinterpolator.html
字号:
<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><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><DD>Java 3D 1.3</DD></DD></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">Alpha</A> alpha, <A HREF="../../../javax/media/j3d/TransformGroup.html">TransformGroup</A> target, <A HREF="../../../javax/media/j3d/Transform3D.html">Transform3D</A> axisOfTransform, float[] 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><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><DD>Java 3D 1.3</DD></DD></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="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 index, float 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 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[] 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><DD>Java 3D 1.2</DD></DD></DL></DD></DL><HR><A NAME="getKnots(float[])"><!-- --></A><H3>getKnots</H3><PRE>public void <B>getKnots</B>(float[] 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><DD>Java 3D 1.2</DD></DD></DL></DD></DL><HR><A NAME="computePathInterpolation(float)"><!-- --></A><H3>computePathInterpolation</H3><PRE>protected void <B>computePathInterpolation</B>(float 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><DD>Java 3D 1.3</DD></DD></DL></DD></DL><HR><A NAME="computePathInterpolation()"><!-- --></A><H3>computePathInterpolation</H3><PRE>protected void <B>computePathInterpolation</B>()</PRE><DL><DD><B>Deprecated.</B> <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 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"> <A HREF="../../../javax/media/j3d/OrientedShape3D.html"><B>PREV CLASS</B></A> <A HREF="../../../javax/media/j3d/PhysicalBody.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> <A HREF="PathInterpolator.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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -