📄 group.html
字号:
<A NAME="getChild(int)"><!-- --></A><H3>getChild</H3><PRE>public <A HREF="../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">Node</A> <B>getChild</B>(int index)</PRE><DL><DD>Retrieves the child node at the specified index in this group node's list of children.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - which child to return.<DT><B>Returns:</B><DD>the children at location index. The <code>index</code> must be a value greater than or equal to 0 and less than <code>numChildren()</code>.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if the appropriate capability is not set and this group node is part of live or compiled scene graph<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - if <code>index</code> is invalid.</DL></DD></DL><HR><A NAME="getAllChildren()"><!-- --></A><H3>getAllChildren</H3><PRE>public java.util.Enumeration <B>getAllChildren</B>()</PRE><DL><DD>Returns an Enumeration object of this group node's list of children.<P><DD><DL><DT><B>Returns:</B><DD>an Enumeration object of all the children<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if the appropriate capability is not set and this group node is part of live or compiled scene graph</DL></DD></DL><HR><A NAME="addChild(javax.media.j3d.Node)"><!-- --></A><H3>addChild</H3><PRE>public void <B>addChild</B>(<A HREF="../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">Node</A> child)</PRE><DL><DD>Appends the specified child node to this group node's list of children.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>child</CODE> - the child to add to this node's list of children<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if the appropriate capability is not set and this group node is part of live or compiled scene graph<DD><CODE><A HREF="../../../javax/media/j3d/RestrictedAccessException.html" title="class in javax.media.j3d">RestrictedAccessException</A></CODE> - if this group node is part of live or compiled scene graph and the child node being added is not a BranchGroup node<DD><CODE><A HREF="../../../javax/media/j3d/MultipleParentException.html" title="class in javax.media.j3d">MultipleParentException</A></CODE> - if <code>child</code> has already been added as a child of another group node.</DL></DD></DL><HR><A NAME="moveTo(javax.media.j3d.BranchGroup)"><!-- --></A><H3>moveTo</H3><PRE>public void <B>moveTo</B>(<A HREF="../../../javax/media/j3d/BranchGroup.html" title="class in javax.media.j3d">BranchGroup</A> branchGroup)</PRE><DL><DD>Moves the specified branch group node from its existing location to the end of this group node's list of children.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>branchGroup</CODE> - the branch group node to move to this node's list of children<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if the appropriate capability is not set and this group node is part of live or compiled scene graph</DL></DD></DL><HR><A NAME="numChildren()"><!-- --></A><H3>numChildren</H3><PRE>public int <B>numChildren</B>()</PRE><DL><DD>Returns a count of this group node's children.<P><DD><DL><DT><B>Returns:</B><DD>the number of children descendant from this node.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if the appropriate capability is not set and this group node is part of live or compiled scene graph</DL></DD></DL><HR><A NAME="indexOfChild(javax.media.j3d.Node)"><!-- --></A><H3>indexOfChild</H3><PRE>public int <B>indexOfChild</B>(<A HREF="../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">Node</A> child)</PRE><DL><DD>Retrieves the index of the specified child node in this group node's list of children.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>child</CODE> - the child node to be looked up.<DT><B>Returns:</B><DD>the index of the specified child node; returns -1 if the object is not in the list.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if the appropriate capability is not set and this group node is part of live or compiled scene graph<DT><B>Since:</B></DT> <DD>Java 3D 1.3</DD></DL></DD></DL><HR><A NAME="removeChild(javax.media.j3d.Node)"><!-- --></A><H3>removeChild</H3><PRE>public void <B>removeChild</B>(<A HREF="../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">Node</A> child)</PRE><DL><DD>Removes the specified child node from this group node's list of children. If the specified object is not in the list, the list is not modified.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>child</CODE> - the child node to be removed.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DD><CODE><A HREF="../../../javax/media/j3d/RestrictedAccessException.html" title="class in javax.media.j3d">RestrictedAccessException</A></CODE> - if this group node is part of live or compiled scene graph and the child node being removed is not a BranchGroup node<DT><B>Since:</B></DT> <DD>Java 3D 1.3</DD></DL></DD></DL><HR><A NAME="removeAllChildren()"><!-- --></A><H3>removeAllChildren</H3><PRE>public void <B>removeAllChildren</B>()</PRE><DL><DD>Removes all children from this Group node.<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DD><CODE><A HREF="../../../javax/media/j3d/RestrictedAccessException.html" title="class in javax.media.j3d">RestrictedAccessException</A></CODE> - if this group node is part of live or compiled scene graph and any of the children being removed are not BranchGroup nodes<DT><B>Since:</B></DT> <DD>Java 3D 1.3</DD></DL></DD></DL><HR><A NAME="setAlternateCollisionTarget(boolean)"><!-- --></A><H3>setAlternateCollisionTarget</H3><PRE>public void <B>setAlternateCollisionTarget</B>(boolean target)</PRE><DL><DD>Causes this Group node to be reported as the collision target when collision is being used and this node or any of its children is in a collision. The default value is false. For collision with USE_GEOMETRY set, the collision traverser will check the geometry of all the Group node's leaf descendants; for collision with USE_BOUNDS set, the collision traverser will only check the bounds at this Group node. In both cases, if there is a collision, this Group node will be reported as the colliding object in the SceneGraphPath. This reporting is done regardless of whether ENABLE_COLLISION_REPORTING is set for this group node (setting alternate collision target to true implies collision reporting).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>target</CODE> - Indicates whether this Group node can be the target of a collision.<DT><B>See Also:</B><DD><A HREF="../../../javax/media/j3d/WakeupOnCollisionEntry.html" title="class in javax.media.j3d"><CODE>WakeupOnCollisionEntry</CODE></A>, <A HREF="../../../javax/media/j3d/WakeupOnCollisionMovement.html" title="class in javax.media.j3d"><CODE>WakeupOnCollisionMovement</CODE></A>, <A HREF="../../../javax/media/j3d/WakeupOnCollisionExit.html" title="class in javax.media.j3d"><CODE>WakeupOnCollisionExit</CODE></A></DL></DD></DL><HR><A NAME="getAlternateCollisionTarget()"><!-- --></A><H3>getAlternateCollisionTarget</H3><PRE>public boolean <B>getAlternateCollisionTarget</B>()</PRE><DL><DD>Returns the collision target state.<P><DD><DL><DT><B>Returns:</B><DD>Indicates whether this Group node can be the target of a collision.</DL></DD></DL><HR><A NAME="cloneNode(boolean)"><!-- --></A><H3>cloneNode</H3><PRE>public <A HREF="../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">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" title="class in javax.media.j3d">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><!-- ========= 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/GraphStructureChangeListener.html" title="interface in javax.media.j3d"><B>PREV CLASS</B></A> <A HREF="../../../javax/media/j3d/HiResCoord.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/Group.html" target="_top"><B>FRAMES</B></A> <A HREF="Group.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 + -