📄 picktool.html
字号:
Selects all the nodes that intersect the PickShape.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../javax/media/j3d/PickInfo.html" title="class in javax.media.j3d">PickInfo</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/pickfast/PickTool.html#pickAllSorted()">pickAllSorted</A></B>()</CODE><BR> Select all the nodes that intersect the PickShape, returned sorted.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../javax/media/j3d/PickInfo.html" title="class in javax.media.j3d">PickInfo</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/pickfast/PickTool.html#pickAny()">pickAny</A></B>()</CODE><BR> Select one of the nodes that intersect the PickShape</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../javax/media/j3d/PickInfo.html" title="class in javax.media.j3d">PickInfo</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/pickfast/PickTool.html#pickClosest()">pickClosest</A></B>()</CODE><BR> Select the closest node that intersects the PickShape.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/pickfast/PickTool.html#setFlags(int)">setFlags</A></B>(int flags)</CODE><BR> Sets the PickInfo content flags.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/pickfast/PickTool.html#setMode(int)">setMode</A></B>(int mode)</CODE><BR> Sets the picking detail mode.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/pickfast/PickTool.html#setShape(javax.media.j3d.PickShape, javax.vecmath.Point3d)">setShape</A></B>(<A HREF="../../../../../javax/media/j3d/PickShape.html" title="class in javax.media.j3d">PickShape</A> ps, <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> startPt)</CODE><BR> Sets the pick shape to a user-provided PickShape object</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/pickfast/PickTool.html#setShapeBounds(javax.media.j3d.Bounds, javax.vecmath.Point3d)">setShapeBounds</A></B>(<A HREF="../../../../../javax/media/j3d/Bounds.html" title="class in javax.media.j3d">Bounds</A> bounds, <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> startPt)</CODE><BR> Sets the pick shape to use a user-provided Bounds object</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/pickfast/PickTool.html#setShapeConeRay(javax.vecmath.Point3d, javax.vecmath.Vector3d, double)">setShapeConeRay</A></B>(<A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> start, <A HREF="../../../../../javax/vecmath/Vector3d.html" title="class in javax.vecmath">Vector3d</A> dir, double angle)</CODE><BR> Sets the pick shape to an infinite PickCone.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/pickfast/PickTool.html#setShapeConeSegment(javax.vecmath.Point3d, javax.vecmath.Point3d, double)">setShapeConeSegment</A></B>(<A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> start, <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> end, double angle)</CODE><BR> Sets the pick shape to a capped PickCone</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/pickfast/PickTool.html#setShapeCylinderRay(javax.vecmath.Point3d, javax.vecmath.Vector3d, double)">setShapeCylinderRay</A></B>(<A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> start, <A HREF="../../../../../javax/vecmath/Vector3d.html" title="class in javax.vecmath">Vector3d</A> dir, double radius)</CODE><BR> Sets the pick shape to an infinite PickCylinder.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/pickfast/PickTool.html#setShapeCylinderSegment(javax.vecmath.Point3d, javax.vecmath.Point3d, double)">setShapeCylinderSegment</A></B>(<A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> start, <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> end, double radius)</CODE><BR> Sets the pick shape to a capped PickCylinder</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/pickfast/PickTool.html#setShapeRay(javax.vecmath.Point3d, javax.vecmath.Vector3d)">setShapeRay</A></B>(<A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> start, <A HREF="../../../../../javax/vecmath/Vector3d.html" title="class in javax.vecmath">Vector3d</A> dir)</CODE><BR> Sets the pick shape to a PickRay.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/pickfast/PickTool.html#setShapeSegment(javax.vecmath.Point3d, javax.vecmath.Point3d)">setShapeSegment</A></B>(<A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> start, <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> end)</CODE><BR> Sets the pick shape to a PickSegment.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></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 =========== --><A NAME="field_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>Field Detail</B></FONT></TH></TR></TABLE><A NAME="TYPE_SHAPE3D"><!-- --></A><H3>TYPE_SHAPE3D</H3><PRE>public static final int <B>TYPE_SHAPE3D</B></PRE><DL><DD>Flag to pass to <CODE>getNode(int)</CODE> to return a <code>Shape3D</code> node from the <code>SceneGraphPath</code>.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.sun.j3d.utils.pickfast.PickTool.TYPE_SHAPE3D">Constant Field Values</A></DL></DL><HR><A NAME="TYPE_MORPH"><!-- --></A><H3>TYPE_MORPH</H3><PRE>public static final int <B>TYPE_MORPH</B></PRE><DL><DD>Flag to pass to <CODE>getNode(int)</CODE> to return a <code>Morph</code> node from the <code>SceneGraphPath</code>.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.sun.j3d.utils.pickfast.PickTool.TYPE_MORPH">Constant Field Values</A></DL></DL><HR><A NAME="TYPE_PRIMITIVE"><!-- --></A><H3>TYPE_PRIMITIVE</H3><PRE>public static final int <B>TYPE_PRIMITIVE</B></PRE><DL><DD>Flag to pass to <CODE>getNode(int)</CODE> to return a <code>Primitive</code> node from the <code>SceneGraphPath</code>.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.sun.j3d.utils.pickfast.PickTool.TYPE_PRIMITIVE">Constant Field Values</A></DL></DL><HR><A NAME="TYPE_LINK"><!-- --></A><H3>TYPE_LINK</H3><PRE>public static final int <B>TYPE_LINK</B></PRE><DL><DD>Flag to pass to <CODE>getNode(int)</CODE> to return a <code>Link</code> node from the <code>SceneGraphPath</code>.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.sun.j3d.utils.pickfast.PickTool.TYPE_LINK">Constant Field Values</A></DL></DL><HR><A NAME="TYPE_GROUP"><!-- --></A><H3>TYPE_GROUP</H3><PRE>public static final int <B>TYPE_GROUP</B></PRE><DL><DD>Flag to pass to <CODE>getNode(int)</CODE> to return a <code>Group</code> node from the <code>SceneGraphPath</code>.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.sun.j3d.utils.pickfast.PickTool.TYPE_GROUP">Constant Field Values</A></DL></DL><HR><A NAME="TYPE_TRANSFORM_GROUP"><!-- --></A><H3>TYPE_TRANSFORM_GROUP</H3><PRE>public static final int <B>TYPE_TRANSFORM_GROUP</B></PRE><DL><DD>Flag to pass to <CODE>getNode(int)</CODE> to return a <code>TransformGroup</code> node from the <code>SceneGraphPath</code>.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.sun.j3d.utils.pickfast.PickTool.TYPE_TRANSFORM_GROUP">Constant Field Values</A></DL></DL><HR><A NAME="TYPE_BRANCH_GROUP"><!-- --></A><H3>TYPE_BRANCH_GROUP</H3><PRE>public static final int <B>TYPE_BRANCH_GROUP</B></PRE><DL><DD>Flag to pass to <CODE>getNode(int)</CODE> to return a <code>BranchGroup</code> node from the <code>SceneGraphPath</code>.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.sun.j3d.utils.pickfast.PickTool.TYPE_BRANCH_GROUP">Constant Field Values</A></DL></DL><HR><A NAME="TYPE_SWITCH"><!-- --></A><H3>TYPE_SWITCH</H3><PRE>public static final int <B>TYPE_SWITCH</B></PRE><DL><DD>Flag to pass to <CODE>getNode(int)</CODE> to return a <code>Switch</code> node from the <code>SceneGraphPath</code>.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.sun.j3d.utils.pickfast.PickTool.TYPE_SWITCH">Constant Field Values</A></DL></DL><HR><A NAME="userDefineShape"><!-- --></A><H3>userDefineShape</H3><PRE>protected boolean <B>userDefineShape</B></PRE><DL><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_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>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="PickTool(javax.media.j3d.BranchGroup)"><!-- --></A><H3>PickTool</H3><PRE>public <B>PickTool</B>(<A HREF="../../../../../javax/media/j3d/BranchGroup.html" title="class in javax.media.j3d">BranchGroup</A> b)</PRE><DL><DD>Constructor with BranchGroup to be picked.<P></DL><HR><A NAME="PickTool(javax.media.j3d.Locale)"><!-- --></A><H3>PickTool</H3><PRE>public <B>PickTool</B>(<A HREF="../../../../../javax/media/j3d/Locale.html" title="class in javax.media.j3d">Locale</A> l)</PRE><DL><DD>Constructor with the Locale to be picked.<P></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="getBranchGroup()"><!-- --></A><H3>getBranchGroup</H3><PRE>public <A HREF="../../../../../javax/media/j3d/BranchGroup.html" title="class in javax.media.j3d">BranchGroup</A> <B>getBranchGroup</B>()</PRE><DL><DD>Returns the BranchGroup to be picked if the tool was initialized with a BranchGroup, null otherwise.<P><DD><DL></DL></DD></DL><HR><A NAME="getLocale()"><!-- --></A><H3>getLocale</H3><PRE>public <A HREF="../../../../../javax/media/j3d/Locale.html" title="class in javax.media.j3d">Locale</A> <B>getLocale</B>()</PRE><DL><DD>Returns the Locale to be picked if the tool was initialized with a Locale, null otherwise.<P><DD><DL></DL></DD></DL><HR><A NAME="setShape(javax.media.j3d.PickShape, javax.vecmath.Point3d)"><!-- --></A><H3>setShape</H3><PRE>public void <B>setShape</B>(<A HREF="../../../../../javax/media/j3d/PickShape.html" title="class in javax.media.j3d">PickShape</A> ps, <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> startPt)</PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -