📄 kbsplinepathinterpolator.html
字号:
knot value strictly greater than the knot value of a key frame with index less than k. Once this constructor has all the valid key frames it creates its own list of key fames that duplicates the first key frame at the beginning of the list and the last key frame at the end of the list.<P><DT><B>Parameters:</B><DD><CODE>alpha</CODE> - the alpha object for this interpolator<DD><CODE>target</CODE> - the TransformGroup node affected by this interpolator<DD><CODE>keys</CODE> - an array of KBKeyFrame. Requires at least two key frames.<DT><B>Since:</B><DD>Java 3D 1.3</DD></DD></DL><HR><A NAME="KBSplinePathInterpolator(javax.media.j3d.Alpha, javax.media.j3d.TransformGroup, javax.media.j3d.Transform3D, com.sun.j3d.utils.behaviors.interpolators.KBKeyFrame[])"><!-- --></A><H3>KBSplinePathInterpolator</H3><PRE>public <B>KBSplinePathInterpolator</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, <A HREF="../../../../../../com/sun/j3d/utils/behaviors/interpolators/KBKeyFrame.html">KBKeyFrame</A>[] keys)</PRE><DL><DD>Constructs a new KBSplinePathInterpolator object that interpolates between keyframes with specified alpha, target and axisOfTransform. It takes at least two key frames. The first key frame's knot must have a value of 0.0 and the last knot must have a value of 1.0. An intermediate key frame with index k must have a knot value strictly greater than the knot value of a key frame with index less than k. Once this constructor has all the valid key frames it creates its own list of key fames that duplicates the first key frame at the beginning of the list and the last key frame at the end of the list.<P><DT><B>Parameters:</B><DD><CODE>alpha</CODE> - the alpha object for this interpolator<DD><CODE>target</CODE> - the TransformGroup node affected by this interpolator<DD><CODE>axisOfTransform</CODE> - the transform that defines the local coordinate<DD><CODE>keys</CODE> - an array of KBKeyFrame. Requires at least two key frames<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="getArrayLength()"><!-- --></A><H3>getArrayLength</H3><PRE>public int <B>getArrayLength</B>()</PRE><DL><DD>This method retrieves the length of the key frame array.<P><DD><DL><DT><B>Returns:</B><DD>the number of key frames</DL></DD></DL><HR><A NAME="getKeyFrame(int)"><!-- --></A><H3>getKeyFrame</H3><PRE>public <A HREF="../../../../../../com/sun/j3d/utils/behaviors/interpolators/KBKeyFrame.html">KBKeyFrame</A> <B>getKeyFrame</B>(int index)</PRE><DL><DD>This method retrieves the key frame at the specified index.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the key frame requested<DT><B>Returns:</B><DD>the key frame at the associated index</DL></DD></DL><HR><A NAME="setKeyFrame(int, com.sun.j3d.utils.behaviors.interpolators.KBKeyFrame)"><!-- --></A><H3>setKeyFrame</H3><PRE>public void <B>setKeyFrame</B>(int index, <A HREF="../../../../../../com/sun/j3d/utils/behaviors/interpolators/KBKeyFrame.html">KBKeyFrame</A> keyFrame)</PRE><DL><DD>Set the key frame at the specified index to <code>keyFrame</code><P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - Index of the key frame to change<DD><CODE>keyFrame</CODE> - The new key frame<DT><B>Since:</B><DD>Java 3D 1.3</DD></DD></DL></DD></DL><HR><A NAME="setKeyFrames(com.sun.j3d.utils.behaviors.interpolators.KBKeyFrame[])"><!-- --></A><H3>setKeyFrames</H3><PRE>public void <B>setKeyFrames</B>(<A HREF="../../../../../../com/sun/j3d/utils/behaviors/interpolators/KBKeyFrame.html">KBKeyFrame</A>[] keyFrames)</PRE><DL><DD>Set allthe key frames<P><DD><DL><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><HR><A NAME="computePathInterpolation(float)"><!-- --></A><H3>computePathInterpolation</H3><PRE>protected void <B>computePathInterpolation</B>(float alphaValue)</PRE><DL><DD>This method computes the bounding knot indices and interpolation value "CurrentU" given the current value of the knots[] array and the specified alpha value<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="duplicateNode(javax.media.j3d.Node, boolean)"><!-- --></A><H3>duplicateNode</H3><PRE>public void <B>duplicateNode</B>(<A HREF="../../../../../../javax/media/j3d/Node.html">Node</A> originalNode, boolean forceDuplicate)</PRE><DL><DD>Copies all KBSplinePathInterpolator information from <code>originalNode</code> into the current node. This method is called from the <code>cloneNode</code> method which is, in turn, called by the <code>cloneTree</code> method.<P><P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../javax/media/j3d/Node.html#duplicateNode(javax.media.j3d.Node, boolean)">duplicateNode</A></CODE> in class <CODE><A HREF="../../../../../../javax/media/j3d/Node.html">Node</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>originalNode</CODE> - the original node to duplicate.<DD><CODE>forceDuplicate</CODE> - when set to <code>true</code>, causes the <code>duplicateOnCloneTree</code> flag to be ignored. When <code>false</code>, the value of each node's <code>duplicateOnCloneTree</code> variable determines whether NodeComponent data is duplicated or copied.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../../javax/media/j3d/RestrictedAccessException.html">RestrictedAccessException</A></CODE> - if this object is part of a live or compiled scenegraph.<DT><B>See Also:</B><DD><A HREF="../../../../../../javax/media/j3d/Node.html#duplicateNode(javax.media.j3d.Node, boolean)"><CODE>Node.duplicateNode(javax.media.j3d.Node, boolean)</CODE></A>, <A HREF="../../../../../../javax/media/j3d/Node.html#cloneTree()"><CODE>Node.cloneTree()</CODE></A>, <A HREF="../../../../../../javax/media/j3d/NodeComponent.html#setDuplicateOnCloneTree(boolean)"><CODE>NodeComponent.setDuplicateOnCloneTree(boolean)</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> </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="../../../../../../com/sun/j3d/utils/behaviors/interpolators/KBRotPosScaleSplinePathInterpolator.html"><B>PREV CLASS</B></A> <A HREF="../../../../../../com/sun/j3d/utils/behaviors/interpolators/RotPosScaleTCBSplinePathInterpolator.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="KBSplinePathInterpolator.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 + -