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

📄 picktool.html

📁 这是一个JAVA的代码
💻 HTML
📖 第 1 页 / 共 3 页
字号:
 stored only once).  Therefore the capabilities of the geometry are also shared, and once a shared node is live, the capabilities cannot be changed.  To assign capabilities to Primitives with the same parameters, either set the capabilities before the primitive is set live, or specify the Primitive.GEOMETRY_NOT_SHARED constructor parameter when creating the primitive.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>level</CODE> - The capability level, must be one of INTERSECT_TEST,  INTERSECT_COORD or INTERSECT_FULL<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if Node is not a Shape3D or Morph or	if the flag value is not valid.<DD><CODE><A HREF="../../../../../javax/media/j3d/RestrictedAccessException.html">RestrictedAccessException</A></CODE> - if the node is part   of a live or compiled scene graph.</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">PickShape</A>&nbsp;ps,                     <A HREF="../../../../../javax/vecmath/Point3d.html">Point3d</A>&nbsp;startPt)</PRE><DL><DD>Sets the pick shape to a user-provided PickShape object<P><DD><DL><DT><B>Parameters:</B><DD><CODE>ps</CODE> - The pick shape to pick against.<DD><CODE>startPt</CODE> - The start point to use for distance calculations</DL></DD></DL><HR><A NAME="setShapeBounds(javax.media.j3d.Bounds, javax.vecmath.Point3d)"><!-- --></A><H3>setShapeBounds</H3><PRE>public void <B>setShapeBounds</B>(<A HREF="../../../../../javax/media/j3d/Bounds.html">Bounds</A>&nbsp;bounds,                           <A HREF="../../../../../javax/vecmath/Point3d.html">Point3d</A>&nbsp;startPt)</PRE><DL><DD>Sets the pick shape to use a user-provided Bounds object<P><DD><DL><DT><B>Parameters:</B><DD><CODE>bounds</CODE> - The bounds to pick against.<DD><CODE>startPt</CODE> - The start point to use for distance calculations</DL></DD></DL><HR><A NAME="setMode(int)"><!-- --></A><H3>setMode</H3><PRE>public void <B>setMode</B>(int&nbsp;mode)</PRE><DL><DD>Sets the picking detail mode.  The default is BOUNDS.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>mode</CODE> - One of BOUNDS, GEOMETRY, GEOMETRY_INTERSECT_INFO, or<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if mode is not a legal value</DL></DD></DL><HR><A NAME="getMode()"><!-- --></A><H3>getMode</H3><PRE>public int <B>getMode</B>()</PRE><DL><DD>Gets the picking detail mode.<P><DD><DL></DL></DD></DL><HR><A NAME="setShapeRay(javax.vecmath.Point3d, javax.vecmath.Vector3d)"><!-- --></A><H3>setShapeRay</H3><PRE>public void <B>setShapeRay</B>(<A HREF="../../../../../javax/vecmath/Point3d.html">Point3d</A>&nbsp;start,                        <A HREF="../../../../../javax/vecmath/Vector3d.html">Vector3d</A>&nbsp;dir)</PRE><DL><DD>Sets the pick shape to a PickRay.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>start</CODE> - The start of the ray<DD><CODE>dir</CODE> - The direction of the ray</DL></DD></DL><HR><A NAME="setShapeSegment(javax.vecmath.Point3d, javax.vecmath.Point3d)"><!-- --></A><H3>setShapeSegment</H3><PRE>public void <B>setShapeSegment</B>(<A HREF="../../../../../javax/vecmath/Point3d.html">Point3d</A>&nbsp;start,                            <A HREF="../../../../../javax/vecmath/Point3d.html">Point3d</A>&nbsp;end)</PRE><DL><DD>Sets the pick shape to a PickSegment.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>start</CODE> - The start of the segment p	 @param end The end of the segment</DL></DD></DL><HR><A NAME="setShapeCylinderSegment(javax.vecmath.Point3d, javax.vecmath.Point3d, double)"><!-- --></A><H3>setShapeCylinderSegment</H3><PRE>public void <B>setShapeCylinderSegment</B>(<A HREF="../../../../../javax/vecmath/Point3d.html">Point3d</A>&nbsp;start,                                    <A HREF="../../../../../javax/vecmath/Point3d.html">Point3d</A>&nbsp;end,                                    double&nbsp;radius)</PRE><DL><DD>Sets the pick shape to a capped PickCylinder<P><DD><DL><DT><B>Parameters:</B><DD><CODE>start</CODE> - The start of axis of the cylinder<DD><CODE>end</CODE> - The end of the axis of the cylinder<DD><CODE>radius</CODE> - The radius of the cylinder</DL></DD></DL><HR><A NAME="setShapeCylinderRay(javax.vecmath.Point3d, javax.vecmath.Vector3d, double)"><!-- --></A><H3>setShapeCylinderRay</H3><PRE>public void <B>setShapeCylinderRay</B>(<A HREF="../../../../../javax/vecmath/Point3d.html">Point3d</A>&nbsp;start,                                <A HREF="../../../../../javax/vecmath/Vector3d.html">Vector3d</A>&nbsp;dir,                                double&nbsp;radius)</PRE><DL><DD>Sets the pick shape to an infinite PickCylinder.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>start</CODE> - The start of axis of the cylinder<DD><CODE>dir</CODE> - The direction of the axis of the cylinder<DD><CODE>radius</CODE> - The radius of the cylinder</DL></DD></DL><HR><A NAME="setShapeConeSegment(javax.vecmath.Point3d, javax.vecmath.Point3d, double)"><!-- --></A><H3>setShapeConeSegment</H3><PRE>public void <B>setShapeConeSegment</B>(<A HREF="../../../../../javax/vecmath/Point3d.html">Point3d</A>&nbsp;start,                                <A HREF="../../../../../javax/vecmath/Point3d.html">Point3d</A>&nbsp;end,                                double&nbsp;angle)</PRE><DL><DD>Sets the pick shape to a capped PickCone<P><DD><DL><DT><B>Parameters:</B><DD><CODE>start</CODE> - The start of axis of the cone<DD><CODE>end</CODE> - The end of the axis of the cone<DD><CODE>angle</CODE> - The angle of the cone</DL></DD></DL><HR><A NAME="setShapeConeRay(javax.vecmath.Point3d, javax.vecmath.Vector3d, double)"><!-- --></A><H3>setShapeConeRay</H3><PRE>public void <B>setShapeConeRay</B>(<A HREF="../../../../../javax/vecmath/Point3d.html">Point3d</A>&nbsp;start,                            <A HREF="../../../../../javax/vecmath/Vector3d.html">Vector3d</A>&nbsp;dir,                            double&nbsp;angle)</PRE><DL><DD>Sets the pick shape to an infinite PickCone.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>start</CODE> - The start of axis of the cone<DD><CODE>dir</CODE> - The direction of the axis of the cone<DD><CODE>angle</CODE> - The angle of the cone</DL></DD></DL><HR><A NAME="getPickShape()"><!-- --></A><H3>getPickShape</H3><PRE>public <A HREF="../../../../../javax/media/j3d/PickShape.html">PickShape</A> <B>getPickShape</B>()</PRE><DL><DD>Returns the PickShape for this object.<P><DD><DL></DL></DD></DL><HR><A NAME="getStartPosition()"><!-- --></A><H3>getStartPosition</H3><PRE>public <A HREF="../../../../../javax/vecmath/Point3d.html">Point3d</A> <B>getStartPosition</B>()</PRE><DL><DD>Returns the start postion used for distance measurement.<P><DD><DL></DL></DD></DL><HR><A NAME="pickAll()"><!-- --></A><H3>pickAll</H3><PRE>public <A HREF="../../../../../com/sun/j3d/utils/picking/PickResult.html">PickResult</A>[] <B>pickAll</B>()</PRE><DL><DD>Selects all the nodes that intersect the PickShape.<P><DD><DL><DT><B>Returns:</B><DD>An array of <code>PickResult</code> objects which will contain         information about the picked instances. <code>null</code> if nothing was         picked.</DL></DD></DL><HR><A NAME="pickAny()"><!-- --></A><H3>pickAny</H3><PRE>public <A HREF="../../../../../com/sun/j3d/utils/picking/PickResult.html">PickResult</A> <B>pickAny</B>()</PRE><DL><DD>Select one of the nodes that intersect the PickShape<P><DD><DL><DT><B>Returns:</B><DD>An array of <code>PickResult</code> objects which will contain           information about the picked instances. <code>null</code> if nothing           was picked.</DL></DD></DL><HR><A NAME="pickAllSorted()"><!-- --></A><H3>pickAllSorted</H3><PRE>public <A HREF="../../../../../com/sun/j3d/utils/picking/PickResult.html">PickResult</A>[] <B>pickAllSorted</B>()</PRE><DL><DD>Select all the nodes that intersect the          PickShape, returned sorted. The "closest" object will be returned first.         See note above to see how "closest" is determined.             <p><P><DD><DL><DT><B>Returns:</B><DD>An array of <code>PickResult</code> objects which will contain          information          about the picked instances. <code>null</code> if nothing was picked.</DL></DD></DL><HR><A NAME="pickClosest()"><!-- --></A><H3>pickClosest</H3><PRE>public <A HREF="../../../../../com/sun/j3d/utils/picking/PickResult.html">PickResult</A> <B>pickClosest</B>()</PRE><DL><DD>Select the closest node that          intersects the PickShape. See note above to see how "closest" is          determined.         <p><P><DD><DL><DT><B>Returns:</B><DD>An array of <code>PickResult</code> objects which will contain          information about the picked instances. <code>null</code> if nothing          was picked.</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="../../../../../com/sun/j3d/utils/picking/PickResult.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="PickTool.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 + -