📄 tcbsplinepathinterpolator.html
字号:
TCBSplinePathInterpolator</H3><PRE>public <B>TCBSplinePathInterpolator</B>(<A HREF="../../../../../../javax/media/j3d/Alpha.html" title="class in javax.media.j3d">Alpha</A> alpha, <A HREF="../../../../../../javax/media/j3d/TransformGroup.html" title="class in javax.media.j3d">TransformGroup</A> target, <A HREF="../../../../../../com/sun/j3d/utils/behaviors/interpolators/TCBKeyFrame.html" title="class in com.sun.j3d.utils.behaviors.interpolators">TCBKeyFrame</A>[] keys)</PRE><DL><DD>Constructs a new TCBSplinePathInterpolator object that interpolates between keyframes with specified alpha, target and default axisOfTransform set to identity. 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><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 TCBSplinePathInterpolator<DD><CODE>keys</CODE> - an array of TCBKeyFrame. Requires at least two key frames.<DT><B>Since:</B></DT> <DD>Java 3D 1.3</DD></DL></DL><HR><A NAME="TCBSplinePathInterpolator(javax.media.j3d.Alpha, javax.media.j3d.TransformGroup, javax.media.j3d.Transform3D, com.sun.j3d.utils.behaviors.interpolators.TCBKeyFrame[])"><!-- --></A><H3>TCBSplinePathInterpolator</H3><PRE>public <B>TCBSplinePathInterpolator</B>(<A HREF="../../../../../../javax/media/j3d/Alpha.html" title="class in javax.media.j3d">Alpha</A> alpha, <A HREF="../../../../../../javax/media/j3d/TransformGroup.html" title="class in javax.media.j3d">TransformGroup</A> target, <A HREF="../../../../../../javax/media/j3d/Transform3D.html" title="class in javax.media.j3d">Transform3D</A> axisOfTransform, <A HREF="../../../../../../com/sun/j3d/utils/behaviors/interpolators/TCBKeyFrame.html" title="class in com.sun.j3d.utils.behaviors.interpolators">TCBKeyFrame</A>[] keys)</PRE><DL><DD>Constructs a new TCBSplinePathInterpolator 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><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 TCBSplinePathInterpolator<DD><CODE>axisOfTransform</CODE> - the transform that defines the local coordinate<DD><CODE>keys</CODE> - an array of TCBKeyFrame. Requires at least two key frames.<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="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/TCBKeyFrame.html" title="class in com.sun.j3d.utils.behaviors.interpolators">TCBKeyFrame</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="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 specified value of alpha and the knots[] array.<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> <I>As of Java 3D version 1.3, replaced by <code>computePathInterpolation(float)</code></I><P><DD><DL></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" title="class in javax.media.j3d">Node</A> originalNode, boolean forceDuplicate)</PRE><DL><DD>Copies all TCBSplinePathInterpolator 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" title="class in javax.media.j3d">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" title="class in javax.media.j3d">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 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> </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/TCBKeyFrame.html" title="class in com.sun.j3d.utils.behaviors.interpolators"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../../index.html?com/sun/j3d/utils/behaviors/interpolators/TCBSplinePathInterpolator.html" target="_top"><B>FRAMES</B></A> <A HREF="TCBSplinePathInterpolator.html" target="_top"><B>NO FRAMES</B></A> <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: 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><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 + -