📄 switchvalueinterpolator.html
字号:
</TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="SwitchValueInterpolator(javax.media.j3d.Alpha, javax.media.j3d.Switch)"><!-- --></A><H3>SwitchValueInterpolator</H3><PRE>public <B>SwitchValueInterpolator</B>(<A HREF="../../../javax/media/j3d/Alpha.html">Alpha</A> alpha, <A HREF="../../../javax/media/j3d/Switch.html">Switch</A> target)</PRE><DL><DD>Constructs a SwitchValueInterpolator behavior that varies its target Switch node's child index between 0 and <i>n</i>-1, where <i>n</i> is the number of children in the target Switch node.<P><DT><B>Parameters:</B><DD><CODE>alpha</CODE> - the alpha object for this interpolator<DD><CODE>target</CODE> - the Switch node affected by this interpolator</DL><HR><A NAME="SwitchValueInterpolator(javax.media.j3d.Alpha, javax.media.j3d.Switch, int, int)"><!-- --></A><H3>SwitchValueInterpolator</H3><PRE>public <B>SwitchValueInterpolator</B>(<A HREF="../../../javax/media/j3d/Alpha.html">Alpha</A> alpha, <A HREF="../../../javax/media/j3d/Switch.html">Switch</A> target, int firstChildIndex, int lastChildIndex)</PRE><DL><DD>Constructs a SwitchValueInterpolator behavior that varies its target Switch node's child index between the two values provided.<P><DT><B>Parameters:</B><DD><CODE>alpha</CODE> - the alpha object for this interpolator<DD><CODE>target</CODE> - the Switch node affected by this interpolator<DD><CODE>firstChildIndex</CODE> - the index of first child in the Switch node to select<DD><CODE>lastChildIndex</CODE> - the index of last child in the Switch node to select</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="setFirstChildIndex(int)"><!-- --></A><H3>setFirstChildIndex</H3><PRE>public void <B>setFirstChildIndex</B>(int firstIndex)</PRE><DL><DD>This method sets the firstChildIndex for this interpolator.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>firstIndex</CODE> - the new index for the first child</DL></DD></DL><HR><A NAME="getFirstChildIndex()"><!-- --></A><H3>getFirstChildIndex</H3><PRE>public int <B>getFirstChildIndex</B>()</PRE><DL><DD>This method retrieves this interpolator's firstChildIndex.<P><DD><DL><DT><B>Returns:</B><DD>the interpolator's firstChildIndex</DL></DD></DL><HR><A NAME="setLastChildIndex(int)"><!-- --></A><H3>setLastChildIndex</H3><PRE>public void <B>setLastChildIndex</B>(int lastIndex)</PRE><DL><DD>This method sets the lastChildIndex for this interpolator.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>lastIndex</CODE> - the new index for the last child</DL></DD></DL><HR><A NAME="getLastChildIndex()"><!-- --></A><H3>getLastChildIndex</H3><PRE>public int <B>getLastChildIndex</B>()</PRE><DL><DD>This method retrieves this interpolator's lastSwitchIndex.<P><DD><DL><DT><B>Returns:</B><DD>the interpolator's maximum scale value</DL></DD></DL><HR><A NAME="setTarget(javax.media.j3d.Switch)"><!-- --></A><H3>setTarget</H3><PRE>public void <B>setTarget</B>(<A HREF="../../../javax/media/j3d/Switch.html">Switch</A> target)</PRE><DL><DD>This method sets the target for this interpolator.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>target</CODE> - the target Switch node</DL></DD></DL><HR><A NAME="getTarget()"><!-- --></A><H3>getTarget</H3><PRE>public <A HREF="../../../javax/media/j3d/Switch.html">Switch</A> <B>getTarget</B>()</PRE><DL><DD>This method retrieves this interpolator's target Switch node reference.<P><DD><DL><DT><B>Returns:</B><DD>the interpolator's target Switch node</DL></DD></DL><HR><A NAME="processStimulus(java.util.Enumeration)"><!-- --></A><H3>processStimulus</H3><PRE>public void <B>processStimulus</B>(java.util.Enumeration criteria)</PRE><DL><DD>This method is invoked by the behavior scheduler every frame. It maps the alpha value that corresponds to the current time into a child index value and updates the specified Switch node with this new child index value.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/media/j3d/Behavior.html#processStimulus(java.util.Enumeration)">processStimulus</A></CODE> in class <CODE><A HREF="../../../javax/media/j3d/Behavior.html">Behavior</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>criteria</CODE> - an enumeration of the criteria that triggered this stimulus</DL></DD></DL><HR><A NAME="cloneNode(boolean)"><!-- --></A><H3>cloneNode</H3><PRE>public <A HREF="../../../javax/media/j3d/Node.html">Node</A> <B>cloneNode</B>(boolean forceDuplicate)</PRE><DL><DD>Used to create a new instance of the node. This routine is called by <code>cloneTree</code> to duplicate the current node.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/media/j3d/Node.html#cloneNode(boolean)">cloneNode</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>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>See Also:</B><DD><A HREF="../../../javax/media/j3d/Node.html#cloneTree()"><CODE>Node.cloneTree()</CODE></A>, <A HREF="../../../javax/media/j3d/Node.html#cloneNode(boolean)"><CODE>Node.cloneNode(boolean)</CODE></A>, <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/NodeComponent.html#setDuplicateOnCloneTree(boolean)"><CODE>NodeComponent.setDuplicateOnCloneTree(boolean)</CODE></A></DL></DD></DL><HR><A NAME="updateNodeReferences(javax.media.j3d.NodeReferenceTable)"><!-- --></A><H3>updateNodeReferences</H3><PRE>public void <B>updateNodeReferences</B>(<A HREF="../../../javax/media/j3d/NodeReferenceTable.html">NodeReferenceTable</A> referenceTable)</PRE><DL><DD>Callback used to allow a node to check if any nodes referenced by that node have been duplicated via a call to <code>cloneTree</code>. This method is called by <code>cloneTree</code> after all nodes in the sub-graph have been duplicated. The cloned Leaf node's method will be called and the Leaf node can then look up any node references by using the <code>getNewObjectReference</code> method found in the <code>NodeReferenceTable</code> object. If a match is found, a reference to the corresponding Node in the newly cloned sub-graph is returned. If no corresponding reference is found, either a DanglingReferenceException is thrown or a reference to the original node is returned depending on the value of the <code>allowDanglingReferences</code> parameter passed in the <code>cloneTree</code> call. <p> NOTE: Applications should <i>not</i> call this method directly. It should only be called by the cloneTree method.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/media/j3d/Behavior.html#updateNodeReferences(javax.media.j3d.NodeReferenceTable)">updateNodeReferences</A></CODE> in class <CODE><A HREF="../../../javax/media/j3d/Behavior.html">Behavior</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>referenceTable</CODE> - a NodeReferenceTableObject that contains the <code>getNewObjectReference</code> method needed to search for new object instances.<DT><B>See Also:</B><DD><A HREF="../../../javax/media/j3d/NodeReferenceTable.html"><CODE>NodeReferenceTable</CODE></A>, <A HREF="../../../javax/media/j3d/Node.html#cloneTree()"><CODE>Node.cloneTree()</CODE></A>, <A HREF="../../../javax/media/j3d/DanglingReferenceException.html"><CODE>DanglingReferenceException</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="../../../javax/media/j3d/Switch.html"><B>PREV CLASS</B></A> <A HREF="../../../javax/media/j3d/TexCoordGeneration.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="SwitchValueInterpolator.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="#fields_inherited_from_class_javax.media.j3d.Interpolator">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: FIELD | <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 + -