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

📄 morph.html

📁 java 3d帮助文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<DT><B>Returns:</B><DD>true if the pick shape intersects this node; false otherwise.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if pickShape is a PickPoint. Java 3D doesn't have spatial information of the surface. Use PickBounds with BoundingSphere and a small radius, instead.<DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html">CapabilityNotSetException</A></CODE> - if the Geometry.ALLOW_INTERSECT capability bit is not set in all of the Geometry objects referred to by this morph node.</DL></DD></DL><HR><A NAME="intersect(javax.media.j3d.SceneGraphPath, javax.media.j3d.PickRay, double[])"><!-- --></A><H3>intersect</H3><PRE>public boolean <B>intersect</B>(<A HREF="../../../javax/media/j3d/SceneGraphPath.html">SceneGraphPath</A>&nbsp;path,                         <A HREF="../../../javax/media/j3d/PickRay.html">PickRay</A>&nbsp;pickRay,                         double[]&nbsp;dist)</PRE><DL><DD>Checks whether the geometry in this morph node intersects with the specified pickRay.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>path</CODE> - the SceneGraphPath to this morph node<DD><CODE>pickRay</CODE> - the PickRay to be intersected<DD><CODE>dist</CODE> - the closest distance of the intersection<DT><B>Returns:</B><DD>true if the pick shape intersects this node; false otherwise.  If true, dist contains the closest distance of intersection.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html">CapabilityNotSetException</A></CODE> - if the Geometry.ALLOW_INTERSECT capability bit is not set in all of the Geometry objects referred to by this morph node.</DL></DD></DL><HR><A NAME="intersect(javax.media.j3d.SceneGraphPath, javax.media.j3d.PickShape, double[])"><!-- --></A><H3>intersect</H3><PRE>public boolean <B>intersect</B>(<A HREF="../../../javax/media/j3d/SceneGraphPath.html">SceneGraphPath</A>&nbsp;path,                         <A HREF="../../../javax/media/j3d/PickShape.html">PickShape</A>&nbsp;pickShape,                         double[]&nbsp;dist)</PRE><DL><DD>Checks whether the geometry in this morph node intersects with the specified pickShape.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>path</CODE> - the SceneGraphPath to this morph node<DD><CODE>pickShape</CODE> - the PickShape to be intersected<DD><CODE>dist</CODE> - the closest distance of the intersection<DT><B>Returns:</B><DD>true if the pick shape intersects this node; false otherwise.  If true, dist contains the closest distance of intersection.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if pickShape is a PickPoint. Java 3D doesn't have spatial information of the surface. Use PickBounds with BoundingSphere and a small radius, instead.<DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html">CapabilityNotSetException</A></CODE> - if the Geometry.ALLOW_INTERSECT capability bit is not set in all of the Geometry objects referred to by this morph node.<DT><B>Since:</B><DD>Java 3D 1.3</DD></DD></DL></DD></DL><HR><A NAME="setWeights(double[])"><!-- --></A><H3>setWeights</H3><PRE>public void <B>setWeights</B>(double[]&nbsp;weights)</PRE><DL><DD>Sets this Morph node's morph weight vector. The Morph node "weights" the corresponding GeometryArray by the amount specified.  The weights apply a morph weight vector component that creates the desired morphing effect. The length of the <code>weights</code> parameter must be equal to the length of the array with which this Morph node was created, otherwise an IllegalArgumentException is thown.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>weights</CODE> - the morph weight vector that the morph node will use in combining the node's geometryArrays.  The morph node will "weight" the corresponding GeometryArray by the amount specified.  N.B.: the sum of the weights should equal 1.0<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DD><CODE>java.lang.IllegalArgumentException</CODE> - if sum of all 'weights' is  NOT 1.0 or number of weights is NOT exqual to number of GeometryArrays.</DL></DD></DL><HR><A NAME="getWeights()"><!-- --></A><H3>getWeights</H3><PRE>public double[] <B>getWeights</B>()</PRE><DL><DD>Retrieves the Morph node's morph weight vector.<P><DD><DL><DT><B>Returns:</B><DD>the morph weight vector component of this morph node<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph</DL></DD></DL><HR><A NAME="setAppearanceOverrideEnable(boolean)"><!-- --></A><H3>setAppearanceOverrideEnable</H3><PRE>public void <B>setAppearanceOverrideEnable</B>(boolean&nbsp;flag)</PRE><DL><DD>Sets a flag that indicates whether this node's appearance can be overridden.  If the flag is true, this node's appearance may be overridden by an AlternateAppearance leaf node, regardless of the value of the ALLOW_APPEARANCE_WRITE capability bit. The default value is false.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - the apperance override enable flag<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html">CapabilityNotSetException</A></CODE> - if appropriate capability is  not set and this object is part of live or compiled scene graph<DT><B>Since:</B><DD>Java 3D 1.2</DD></DD><DT><B>See Also:</B><DD><A HREF="../../../javax/media/j3d/AlternateAppearance.html"><CODE>AlternateAppearance</CODE></A></DL></DD></DL><HR><A NAME="getAppearanceOverrideEnable()"><!-- --></A><H3>getAppearanceOverrideEnable</H3><PRE>public boolean <B>getAppearanceOverrideEnable</B>()</PRE><DL><DD>Retrieves the appearanceOverrideEnable flag for this node.<P><DD><DL><DT><B>Returns:</B><DD>true if the appearance can be overridden; false otherwise.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html">CapabilityNotSetException</A></CODE> - if appropriate capability is  not set and this object is part of live or compiled scene graph<DT><B>Since:</B><DD>Java 3D 1.2</DD></DD></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&nbsp;forceDuplicate)</PRE><DL><DD>Creates 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="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>&nbsp;originalNode,                          boolean&nbsp;forceDuplicate)</PRE><DL><DD>Copies all node 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> For any <code>NodeComponent</code> objects contained by the object being duplicated, each <code>NodeComponent</code> object's <code>duplicateOnCloneTree</code> value is used to determine whether the <code>NodeComponent</code> should be duplicated in the new node or if just a reference to the current node should be placed in the new node.  This flag can be overridden by setting the <code>forceDuplicate</code> parameter in the <code>cloneTree</code> method to <code>true</code>. <br> NOTE: Applications should <i>not</i> call this method directly. It should only be called by the cloneNode method.<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>java.lang.ClassCastException</CODE> - if originalNode is not an instance of   <code>Morph</code><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/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>&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/ModelClip.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/media/j3d/Node.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>  &nbsp;&nbsp;<A HREF="Morph.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&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><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

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