📄 scenegraphpath.html
字号:
<P></DL><HR><A NAME="SceneGraphPath(javax.media.j3d.Locale, javax.media.j3d.Node)"><!-- --></A><H3>SceneGraphPath</H3><PRE>public <B>SceneGraphPath</B>(<A HREF="../../../javax/media/j3d/Locale.html" title="class in javax.media.j3d">Locale</A> root, <A HREF="../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">Node</A> object)</PRE><DL><DD>Constructs a new SceneGraphPath object.<P><DL><DT><B>Parameters:</B><DD><CODE>root</CODE> - the Locale object of this path<DD><CODE>object</CODE> - the terminal node of this path</DL></DL><HR><A NAME="SceneGraphPath(javax.media.j3d.Locale, javax.media.j3d.Node[], javax.media.j3d.Node)"><!-- --></A><H3>SceneGraphPath</H3><PRE>public <B>SceneGraphPath</B>(<A HREF="../../../javax/media/j3d/Locale.html" title="class in javax.media.j3d">Locale</A> root, <A HREF="../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">Node</A>[] nodes, <A HREF="../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">Node</A> object)</PRE><DL><DD>Constructs a new SceneGraphPath object.<P><DL><DT><B>Parameters:</B><DD><CODE>root</CODE> - the Locale object of this path<DD><CODE>nodes</CODE> - an array of node objects in the path from the Locale to the terminal node<DD><CODE>object</CODE> - the terminal node of this path</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="set(javax.media.j3d.SceneGraphPath)"><!-- --></A><H3>set</H3><PRE>public final void <B>set</B>(<A HREF="../../../javax/media/j3d/SceneGraphPath.html" title="class in javax.media.j3d">SceneGraphPath</A> newPath)</PRE><DL><DD>Sets this path's values to that of the specified path.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>newPath</CODE> - the SceneGraphPath to copy</DL></DD></DL><HR><A NAME="setLocale(javax.media.j3d.Locale)"><!-- --></A><H3>setLocale</H3><PRE>public final void <B>setLocale</B>(<A HREF="../../../javax/media/j3d/Locale.html" title="class in javax.media.j3d">Locale</A> newLocale)</PRE><DL><DD>Sets this path's Locale to the specified Locale.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>newLocale</CODE> - The new Locale</DL></DD></DL><HR><A NAME="setObject(javax.media.j3d.Node)"><!-- --></A><H3>setObject</H3><PRE>public final void <B>setObject</B>(<A HREF="../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">Node</A> object)</PRE><DL><DD>Sets this path's terminal node to the specified node object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>object</CODE> - the new terminal node</DL></DD></DL><HR><A NAME="setNodes(javax.media.j3d.Node[])"><!-- --></A><H3>setNodes</H3><PRE>public final void <B>setNodes</B>(<A HREF="../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">Node</A>[] nodes)</PRE><DL><DD>Sets this path's node objects to the specified node objects.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>nodes</CODE> - an array of node objects in the path from the Locale to the terminal node</DL></DD></DL><HR><A NAME="setNode(int, javax.media.j3d.Node)"><!-- --></A><H3>setNode</H3><PRE>public final void <B>setNode</B>(int index, <A HREF="../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">Node</A> newNode)</PRE><DL><DD>Replaces the node at the specified index with newNode.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the node to replace<DD><CODE>newNode</CODE> - the new node<DT><B>Throws:</B><DD><CODE>java.lang.NullPointerException</CODE> - if the node array pointer is null.</DL></DD></DL><HR><A NAME="setTransform(javax.media.j3d.Transform3D)"><!-- --></A><H3>setTransform</H3><PRE>public final void <B>setTransform</B>(<A HREF="../../../javax/media/j3d/Transform3D.html" title="class in javax.media.j3d">Transform3D</A> trans)</PRE><DL><DD>Sets the transform component of this SceneGraphPath to the value of the passed transform.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>trans</CODE> - the transform to be copied. trans should be the localToVworld matrix of this SceneGraphPath object.</DL></DD></DL><HR><A NAME="getTransform()"><!-- --></A><H3>getTransform</H3><PRE>public final <A HREF="../../../javax/media/j3d/Transform3D.html" title="class in javax.media.j3d">Transform3D</A> <B>getTransform</B>()</PRE><DL><DD>Returns a copy of the transform associated with this SceneGraphPath; returns null if there is no transform associated. If this SceneGraphPath was returned by a Java 3D picking or collision method, the local coordinate to virtual world coordinate transform for this scene graph object at the time of the pick or collision is recorded.<P><DD><DL><DT><B>Returns:</B><DD>the local to VWorld transform</DL></DD></DL><HR><A NAME="getLocale()"><!-- --></A><H3>getLocale</H3><PRE>public final <A HREF="../../../javax/media/j3d/Locale.html" title="class in javax.media.j3d">Locale</A> <B>getLocale</B>()</PRE><DL><DD>Retrieves the path's Locale<P><DD><DL><DT><B>Returns:</B><DD>this path's Locale</DL></DD></DL><HR><A NAME="getObject()"><!-- --></A><H3>getObject</H3><PRE>public final <A HREF="../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">Node</A> <B>getObject</B>()</PRE><DL><DD>Retrieves the path's terminal node object.<P><DD><DL><DT><B>Returns:</B><DD>the terminal node</DL></DD></DL><HR><A NAME="nodeCount()"><!-- --></A><H3>nodeCount</H3><PRE>public final int <B>nodeCount</B>()</PRE><DL><DD>Retrieves the number of nodes in this path. The number of nodes does not include the Locale or the terminal node object itself.<P><DD><DL><DT><B>Returns:</B><DD>a count of the number of nodes in this path</DL></DD></DL><HR><A NAME="getNode(int)"><!-- --></A><H3>getNode</H3><PRE>public final <A HREF="../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">Node</A> <B>getNode</B>(int index)</PRE><DL><DD>Retrieves the node at the specified index.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index specifying which node to retrieve<DT><B>Returns:</B><DD>the specified node</DL></DD></DL><HR><A NAME="equals(javax.media.j3d.SceneGraphPath)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="../../../javax/media/j3d/SceneGraphPath.html" title="class in javax.media.j3d">SceneGraphPath</A> testPath)</PRE><DL><DD>Returns true if all of the data members of path testPath are equal to the corresponding data members in this SceneGraphPath and if the values of the transforms is equal.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>testPath</CODE> - the path we will compare this object's path against.<DT><B>Returns:</B><DD>true or false</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object o1)</PRE><DL><DD>Returns true if the Object o1 is of type SceneGraphPath and all of the data members of o1 are equal to the corresponding data members in this SceneGraphPath and if the values of the transforms is equal.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>o1</CODE> - the object we will compare this SceneGraphPath's path against.<DT><B>Returns:</B><DD>true or false</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Returns a hash number based on the data values in this object. Two different SceneGraphPath objects with identical data values (ie, returns true for trans.equals(SceneGraphPath) ) will return the same hash number. Two Paths with different data members may return the same hash value, although this is not likely.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>hashCode</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the integer hash value</DL></DD></DL><HR><A NAME="isSamePath(javax.media.j3d.SceneGraphPath)"><!-- --></A><H3>isSamePath</H3><PRE>public final boolean <B>isSamePath</B>(<A HREF="../../../javax/media/j3d/SceneGraphPath.html" title="class in javax.media.j3d">SceneGraphPath</A> testPath)</PRE><DL><DD>Determines whether two SceneGraphPath objects represent the same path in the scene graph; either object might include a different subset of internal nodes; only the internal link nodes, the Locale, and the Node itself are compared. The paths are not validated for correctness or uniqueness.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>testPath</CODE> - the SceneGraphPath to be compared to this SceneGraphPath<DT><B>Returns:</B><DD>true or false</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Returns a string representation of this object; the string contains the class names of all Nodes in the SceneGraphPath, the toString() method of any associated user data provided by SceneGraphObject.getUserData(), and also prints out the transform, if it is not null.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>String representation of this object</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="../../../javax/media/j3d/SceneGraphObject.html" title="class in javax.media.j3d"><B>PREV CLASS</B></A> <A HREF="../../../javax/media/j3d/Screen3D.html" title="class in javax.media.j3d"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?javax/media/j3d/SceneGraphPath.html" target="_top"><B>FRAMES</B></A> <A HREF="SceneGraphPath.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 | FIELD | <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><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 + -