📄 picktool.html
字号:
<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" title="class in javax.media.j3d">Bounds</A> bounds, <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> 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 mode)</PRE><DL><DD>Sets the picking detail mode. The default is PickInfo.PICK_BOUNDS.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>mode</CODE> - One of PickInfo.PICK_BOUNDS or PickInfo.PICK_GEOMETRY.<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="setFlags(int)"><!-- --></A><H3>setFlags</H3><PRE>public void <B>setFlags</B>(int flags)</PRE><DL><DD>Sets the PickInfo content flags. The default is PickInfo.NODE.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>flags</CODE> - specified as one or more individual bits that are bitwise "OR"ed together : <ul> <code>PickInfo.SCENEGRAPHPATH</code> - request for computed SceneGraphPath.<br> <code>PickInfo.NODE</code> - request for computed intersected Node.<br> <code>PickInfo.LOCAL_TO_VWORLD</code> - request for computed local to virtual world transform.<br> <code>PickInfo.CLOSEST_INTERSECTION_POINT</code> - request for closest intersection point.<br> <code>PickInfo.CLOSEST_DISTANCE</code> - request for the distance of closest intersection.<br> <code>PickInfo.CLOSEST_GEOM_INFO</code> - request for only the closest intersection geometry information.<br> <code>PickInfo.ALL_GEOM_INFO</code> - request for all intersection geometry information.<br> </ul><DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if any other bits besides the above are set.</DL></DD></DL><HR><A NAME="getFlags()"><!-- --></A><H3>getFlags</H3><PRE>public int <B>getFlags</B>()</PRE><DL><DD>Gets the PickInfo content flags.<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" title="class in javax.vecmath">Point3d</A> start, <A HREF="../../../../../javax/vecmath/Vector3d.html" title="class in javax.vecmath">Vector3d</A> 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" title="class in javax.vecmath">Point3d</A> start, <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> 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<DD><CODE>end</CODE> - 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" title="class in javax.vecmath">Point3d</A> start, <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> end, double 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" title="class in javax.vecmath">Point3d</A> start, <A HREF="../../../../../javax/vecmath/Vector3d.html" title="class in javax.vecmath">Vector3d</A> dir, double 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" title="class in javax.vecmath">Point3d</A> start, <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> end, double 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" title="class in javax.vecmath">Point3d</A> start, <A HREF="../../../../../javax/vecmath/Vector3d.html" title="class in javax.vecmath">Vector3d</A> dir, double 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" title="class in javax.media.j3d">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" title="class in javax.vecmath">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="../../../../../javax/media/j3d/PickInfo.html" title="class in javax.media.j3d">PickInfo</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>PickInfo</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="../../../../../javax/media/j3d/PickInfo.html" title="class in javax.media.j3d">PickInfo</A> <B>pickAny</B>()</PRE><DL><DD>Select one of the nodes that intersect the PickShape<P><DD><DL><DT><B>Returns:</B><DD>A <code>PickInfo</code> object which will contain information about the picked instance. <code>null</code> if nothing was picked.</DL></DD></DL><HR><A NAME="pickAllSorted()"><!-- --></A><H3>pickAllSorted</H3><PRE>public <A HREF="../../../../../javax/media/j3d/PickInfo.html" title="class in javax.media.j3d">PickInfo</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>PickInfo</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="../../../../../javax/media/j3d/PickInfo.html" title="class in javax.media.j3d">PickInfo</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>A <code>PickInfo</code> object which will contain information about the picked instance. <code>null</code> if nothing was picked.</DL></DD></DL><HR><A NAME="getNode(javax.media.j3d.PickInfo, int)"><!-- --></A><H3>getNode</H3><PRE>public <A HREF="../../../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">Node</A> <B>getNode</B>(<A HREF="../../../../../javax/media/j3d/PickInfo.html" title="class in javax.media.j3d">PickInfo</A> pickInfo, int type)</PRE><DL><DD>Get the first node of a certain type up the SceneGraphPath<P><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - the type of node we are interested in<DT><B>Returns:</B><DD>a Node object<DT><B>Throws:</B><DD><CODE>java.lang.NullPointerException</CODE> - if pickInfo does not contain a Scenegraphpath or a picked node</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="../../../../../com/sun/j3d/utils/pickfast/PickIntersection.html" title="class in com.sun.j3d.utils.pickfast"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?com/sun/j3d/utils/pickfast/PickTool.html" target="_top"><B>FRAMES</B></A> <A HREF="PickTool.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 + -