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

📄 picktool.html

📁 JAVA多媒体开发类库说明
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../com/sun/j3d/utils/picking/PickResult.html" title="class in com.sun.j3d.utils.picking">PickResult</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#pickAllSorted()">pickAllSorted</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<A HREF="../../../../../com/sun/j3d/utils/picking/PickResult.html" title="class in com.sun.j3d.utils.picking">PickResult</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#pickAny()">pickAny</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<A HREF="../../../../../com/sun/j3d/utils/picking/PickResult.html" title="class in com.sun.j3d.utils.picking">PickResult</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#pickClosest()">pickClosest</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<A HREF="../../../../../javax/media/j3d/Locale.html" title="class in javax.media.j3d">Locale</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#setBranchGroup(javax.media.j3d.Locale)">setBranchGroup</A></B>(<A HREF="../../../../../javax/media/j3d/Locale.html" title="class in javax.media.j3d">Locale</A>&nbsp;l)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>This method does nothing other than return its input parameter.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#setCapabilities(javax.media.j3d.Node, int)">setCapabilities</A></B>(<A HREF="../../../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">Node</A>&nbsp;node,                int&nbsp;level)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the capabilities on the Node and it's components to allow picking at the specified detail level.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#setMode(int)">setMode</A></B>(int&nbsp;mode)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the picking detail mode.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/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>&nbsp;ps,         <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A>&nbsp;startPt)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/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>&nbsp;bounds,               <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A>&nbsp;startPt)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/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>&nbsp;start,                <A HREF="../../../../../javax/vecmath/Vector3d.html" title="class in javax.vecmath">Vector3d</A>&nbsp;dir,                double&nbsp;angle)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/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>&nbsp;start,                    <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A>&nbsp;end,                    double&nbsp;angle)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/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>&nbsp;start,                    <A HREF="../../../../../javax/vecmath/Vector3d.html" title="class in javax.vecmath">Vector3d</A>&nbsp;dir,                    double&nbsp;radius)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/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>&nbsp;start,                        <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A>&nbsp;end,                        double&nbsp;radius)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/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>&nbsp;start,            <A HREF="../../../../../javax/vecmath/Vector3d.html" title="class in javax.vecmath">Vector3d</A>&nbsp;dir)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/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>&nbsp;start,                <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A>&nbsp;end)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the pick shape to a PickSegment.</TD></TR></TABLE>&nbsp;<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>&nbsp;<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="userDefineShape"><!-- --></A><H3>userDefineShape</H3><PRE>protected boolean <B>userDefineShape</B></PRE><DL><DL></DL></DL><HR><A NAME="BOUNDS"><!-- --></A><H3>BOUNDS</H3><PRE>public static final int <B>BOUNDS</B></PRE><DL><DD>Use this mode to pick by bounds and get basic information        on the pick.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.sun.j3d.utils.picking.PickTool.BOUNDS">Constant Field Values</A></DL></DL><HR><A NAME="GEOMETRY"><!-- --></A><H3>GEOMETRY</H3><PRE>public static final int <B>GEOMETRY</B></PRE><DL><DD>Use this mode to pick by geometry and get basic         information on the pick.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.sun.j3d.utils.picking.PickTool.GEOMETRY">Constant Field Values</A></DL></DL><HR><A NAME="GEOMETRY_INTERSECT_INFO"><!-- --></A><H3>GEOMETRY_INTERSECT_INFO</H3><PRE>public static final int <B>GEOMETRY_INTERSECT_INFO</B></PRE><DL><DD>Use this mode to pick by geometry and save         information about the intersections (intersected primitive,        intersection point and closest vertex).<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.sun.j3d.utils.picking.PickTool.GEOMETRY_INTERSECT_INFO">Constant Field Values</A></DL></DL><HR><A NAME="INTERSECT_TEST"><!-- --></A><H3>INTERSECT_TEST</H3><PRE>public static final int <B>INTERSECT_TEST</B></PRE><DL><DD>Flag to pass to <CODE>setCapabilities(Node, int)<code> to set the Node's capabilities to allow intersection tests, but not inquire information about the intersections (use for GEOMETRY mode).<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#setCapabilities(javax.media.j3d.Node, int)"><CODE>setCapabilities(javax.media.j3d.Node, int)</CODE></A>, <A HREF="../../../../../constant-values.html#com.sun.j3d.utils.picking.PickTool.INTERSECT_TEST">Constant Field Values</A></DL></DL><HR><A NAME="INTERSECT_COORD"><!-- --></A><H3>INTERSECT_COORD</H3><PRE>public static final int <B>INTERSECT_COORD</B></PRE><DL><DD>Flag to pass to <CODE>setCapabilities(Node, int)<code> to set the Node's capabilities to allow inquiry of the intersection coordinate information.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#setCapabilities(javax.media.j3d.Node, int)"><CODE>setCapabilities(javax.media.j3d.Node, int)</CODE></A>, <A HREF="../../../../../constant-values.html#com.sun.j3d.utils.picking.PickTool.INTERSECT_COORD">Constant Field Values</A></DL></DL><HR><A NAME="INTERSECT_FULL"><!-- --></A><H3>INTERSECT_FULL</H3><PRE>public static final int <B>INTERSECT_FULL</B></PRE><DL><DD>Flag to pass to <CODE>setCapabilities(Node, int)<code> to set the Node's capabilities to allow inquiry of all intersection information.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#setCapabilities(javax.media.j3d.Node, int)"><CODE>setCapabilities(javax.media.j3d.Node, int)</CODE></A>, <A HREF="../../../../../constant-values.html#com.sun.j3d.utils.picking.PickTool.INTERSECT_FULL">Constant Field Values</A></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>&nbsp;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>&nbsp;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="setBranchGroup(javax.media.j3d.Locale)"><!-- --></A><H3>setBranchGroup</H3><PRE>public <A HREF="../../../../../javax/media/j3d/Locale.html" title="class in javax.media.j3d">Locale</A> <B>setBranchGroup</B>(<A HREF="../../../../../javax/media/j3d/Locale.html" title="class in javax.media.j3d">Locale</A>&nbsp;l)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>This method does nothing other than return its input parameter.</I><P><DD><DL></DL></DD></DL><HR><A NAME="setCapabilities(javax.media.j3d.Node, int)"><!-- --></A><H3>setCapabilities</H3><PRE>public static void <B>setCapabilities</B>(<A HREF="../../../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">Node</A>&nbsp;node,

⌨️ 快捷键说明

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