📄 pickobject.html
字号:
int flag)</CODE><BR> <B>Deprecated.</B> Returns a sorted array of references to all the Pickable items below the <code>BranchGroup</code> (specified in the PickObject constructor) that intersect with the ray that starts at the viewer position and points into the scene in the direction of (xpos, ypos) in the window space.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../../javax/media/j3d/SceneGraphPath.html" title="class in javax.media.j3d">SceneGraphPath</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/j3d/utils/behaviors/picking/PickObject.html#pickAny(int, int)">pickAny</A></B>(int xpos, int ypos)</CODE><BR> <B>Deprecated.</B> Returns a reference to any item that is Pickable below the specified <code>BranchGroup</code> (specified in the PickObject constructor) which intersects with the ray that starts at the viewer position and points into the scene in the direction of (xpos, ypos) in window space.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../../javax/media/j3d/SceneGraphPath.html" title="class in javax.media.j3d">SceneGraphPath</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/j3d/utils/behaviors/picking/PickObject.html#pickAny(int, int, int)">pickAny</A></B>(int xpos, int ypos, int flag)</CODE><BR> <B>Deprecated.</B> Returns a reference to any item that is Pickable below the specified <code>BranchGroup</code> (specified in the PickObject constructor) which intersects with the ray that starts at the viewer position and points into the scene in the direction of (xpos, ypos) in window space.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../../javax/media/j3d/SceneGraphPath.html" title="class in javax.media.j3d">SceneGraphPath</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/j3d/utils/behaviors/picking/PickObject.html#pickClosest(int, int)">pickClosest</A></B>(int xpos, int ypos)</CODE><BR> <B>Deprecated.</B> Returns a reference to the item that is closest to the viewer and is Pickable below the <code>BranchGroup</code> (specified in the PickObject constructor) which intersects with the ray that starts at the viewer position and points into the scene in the direction of (xpos, ypos) in the window space.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../../javax/media/j3d/SceneGraphPath.html" title="class in javax.media.j3d">SceneGraphPath</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/j3d/utils/behaviors/picking/PickObject.html#pickClosest(int, int, int)">pickClosest</A></B>(int xpos, int ypos, int flag)</CODE><BR> <B>Deprecated.</B> Returns a reference to the item that is closest to the viewer and is Pickable below the <code>BranchGroup</code> (specified in the PickObject constructor) which intersects with the ray that starts at the viewer position and points into the scene in the direction of (xpos, ypos) in the window space.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">Node</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/j3d/utils/behaviors/picking/PickObject.html#pickNode(javax.media.j3d.SceneGraphPath, int)">pickNode</A></B>(<A HREF="../../../../../../javax/media/j3d/SceneGraphPath.html" title="class in javax.media.j3d">SceneGraphPath</A> sgPath, int flags)</CODE><BR> <B>Deprecated.</B> Returns a reference to a Pickable Node that is of the specified type that is contained in the specified SceneGraphPath.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">Node</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/j3d/utils/behaviors/picking/PickObject.html#pickNode(javax.media.j3d.SceneGraphPath, int, int)">pickNode</A></B>(<A HREF="../../../../../../javax/media/j3d/SceneGraphPath.html" title="class in javax.media.j3d">SceneGraphPath</A> sgPath, int flags, int occurrence)</CODE><BR> <B>Deprecated.</B> Returns a reference to a Pickable Node that is of the specified type that is contained in the specified SceneGraphPath.</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="SHAPE3D"><!-- --></A><H3>SHAPE3D</H3><PRE>public static final int <B>SHAPE3D</B></PRE><DL><DD><B>Deprecated.</B> <DD>A flag to indicate to the pickNode method to return a <code>Shape3D</code> node from a given <code>SceneGraphPath</code>.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../com/sun/j3d/utils/behaviors/picking/PickObject.html#pickNode(javax.media.j3d.SceneGraphPath, int)"><CODE>pickNode(javax.media.j3d.SceneGraphPath, int)</CODE></A>, <A HREF="../../../../../../constant-values.html#com.sun.j3d.utils.behaviors.picking.PickObject.SHAPE3D">Constant Field Values</A></DL></DL><HR><A NAME="MORPH"><!-- --></A><H3>MORPH</H3><PRE>public static final int <B>MORPH</B></PRE><DL><DD><B>Deprecated.</B> <DD>A flag to indicate to the pickNode method to return a <code>Morph</code> node from a given <code>SceneGraphPath</code>.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../com/sun/j3d/utils/behaviors/picking/PickObject.html#pickNode(javax.media.j3d.SceneGraphPath, int)"><CODE>pickNode(javax.media.j3d.SceneGraphPath, int)</CODE></A>, <A HREF="../../../../../../constant-values.html#com.sun.j3d.utils.behaviors.picking.PickObject.MORPH">Constant Field Values</A></DL></DL><HR><A NAME="PRIMITIVE"><!-- --></A><H3>PRIMITIVE</H3><PRE>public static final int <B>PRIMITIVE</B></PRE><DL><DD><B>Deprecated.</B> <DD>A flag to indicate to the pickNode method to return a <code>Primitive</code> node from a given <code>SceneGraphPath</code>.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../com/sun/j3d/utils/behaviors/picking/PickObject.html#pickNode(javax.media.j3d.SceneGraphPath, int)"><CODE>pickNode(javax.media.j3d.SceneGraphPath, int)</CODE></A>, <A HREF="../../../../../../constant-values.html#com.sun.j3d.utils.behaviors.picking.PickObject.PRIMITIVE">Constant Field Values</A></DL></DL><HR><A NAME="LINK"><!-- --></A><H3>LINK</H3><PRE>public static final int <B>LINK</B></PRE><DL><DD><B>Deprecated.</B> <DD>A flag to indicate to the pickNode method to return a <code>Link</code> node from a given <code>SceneGraphPath</code>.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../com/sun/j3d/utils/behaviors/picking/PickObject.html#pickNode(javax.media.j3d.SceneGraphPath, int)"><CODE>pickNode(javax.media.j3d.SceneGraphPath, int)</CODE></A>, <A HREF="../../../../../../constant-values.html#com.sun.j3d.utils.behaviors.picking.PickObject.LINK">Constant Field Values</A></DL></DL><HR><A NAME="GROUP"><!-- --></A><H3>GROUP</H3><PRE>public static final int <B>GROUP</B></PRE><DL><DD><B>Deprecated.</B> <DD>A flag to indicate to the pickNode method to return a <code>Group</code> node from a given <code>SceneGraphPath</code>.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../com/sun/j3d/utils/behaviors/picking/PickObject.html#pickNode(javax.media.j3d.SceneGraphPath, int)"><CODE>pickNode(javax.media.j3d.SceneGraphPath, int)</CODE></A>, <A HREF="../../../../../../constant-values.html#com.sun.j3d.utils.behaviors.picking.PickObject.GROUP">Constant Field Values</A></DL></DL><HR><A NAME="TRANSFORM_GROUP"><!-- --></A><H3>TRANSFORM_GROUP</H3><PRE>public static final int <B>TRANSFORM_GROUP</B></PRE><DL><DD><B>Deprecated.</B> <DD>A flag to indicate to the pickNode method to return a <code>TransformGroup</code> node from a given <code>SceneGraphPath</code>.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../com/sun/j3d/utils/behaviors/picking/PickObject.html#pickNode(javax.media.j3d.SceneGraphPath, int)"><CODE>pickNode(javax.media.j3d.SceneGraphPath, int)</CODE></A>, <A HREF="../../../../../../constant-values.html#com.sun.j3d.utils.behaviors.picking.PickObject.TRANSFORM_GROUP">Constant Field Values</A></DL></DL><HR><A NAME="BRANCH_GROUP"><!-- --></A><H3>BRANCH_GROUP</H3><PRE>public static final int <B>BRANCH_GROUP</B></PRE><DL><DD><B>Deprecated.</B> <DD>A flag to indicate to the pickNode method to return a <code>BranchGroup</code> node from a given <code>SceneGraphPath</code>.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../com/sun/j3d/utils/behaviors/picking/PickObject.html#pickNode(javax.media.j3d.SceneGraphPath, int)"><CODE>pickNode(javax.media.j3d.SceneGraphPath, int)</CODE></A>, <A HREF="../../../../../../constant-values.html#com.sun.j3d.utils.behaviors.picking.PickObject.BRANCH_GROUP">Constant Field Values</A></DL></DL><HR><A NAME="SWITCH"><!-- --></A><H3>SWITCH</H3><PRE>public static final int <B>SWITCH</B></PRE><DL><DD><B>Deprecated.</B> <DD>A flag to indicate to the pickNode method to return a <code>Switch</code> node from a given <code>SceneGraphPath</code>.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../com/sun/j3d/utils/behaviors/picking/PickObject.html#pickNode(javax.media.j3d.SceneGraphPath, int)"><CODE>pickNode(javax.media.j3d.SceneGraphPath, int)</CODE></A>, <A HREF="../../../../../../constant-values.html#com.sun.j3d.utils.behaviors.picking.PickObject.SWITCH">Constant Field Values</A></DL></DL><HR><A NAME="USE_GEOMETRY"><!-- --></A><H3>USE_GEOMETRY</H3><PRE>public static final int <B>USE_GEOMETRY</B></PRE><DL><DD><B>Deprecated.</B> <DD>Set this flag if you want to pick by geometry.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#com.sun.j3d.utils.behaviors.picking.PickObject.USE_GEOMETRY">Constant Field Values</A></DL></DL><HR><A NAME="USE_BOUNDS"><!-- --></A><H3>USE_BOUNDS</H3><PRE>public static final int <B>USE_BOUNDS</B></PRE><DL><DD><B>Deprecated.</B> <DD>Set this flag if you want to pick by bounds.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#com.sun.j3d.utils.behaviors.picking.PickObject.USE_BOUNDS">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="PickObject(javax.media.j3d.Canvas3D, javax.media.j3d.BranchGroup)"><!-- --></A><H3>PickObject</H3><PRE>public <B>PickObject</B>(<A HREF="../../../../../../javax/media/j3d/Canvas3D.html" title="class in javax.media.j3d">Canvas3D</A> c, <A HREF="../../../../../../javax/media/j3d/BranchGroup.html" title="class in javax.media.j3d">BranchGroup</A> root)</PRE><DL><DD><B>Deprecated.</B> <DD>Creates a PickObject.<P><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - Current J3D canvas.<DD><CODE>root</CODE> - The portion of the scenegraph for which picking is to occur on. It has to be a <code>BranchGroup</code>.<DT><B>See Also:</B><DD><A HREF="../../../../../../javax/media/j3d/BranchGroup.html" title="class in javax.media.j3d"><CODE>BranchGroup</CODE></A>, <A HREF="../../../../../../javax/media/j3d/Canvas3D.html" title="class in javax.media.j3d"><CODE>Canvas3D</CODE></A></DL></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="generatePickRay(int, int)"><!-- --></A><H3>generatePickRay</H3><PRE>public <A HREF="../../../../../../javax/media/j3d/PickShape.html" title="class in javax.media.j3d">PickShape</A> <B>generatePickRay</B>(int xpos, int ypos)</PRE><DL><DD><B>Deprecated.</B> <DD>Creates a PickRay that starts at the viewer position and points into
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -