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

📄 pickcanvas.html

📁 JAVA多媒体开发类库说明
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/PickCanvas.html#setShapeLocation(java.awt.event.MouseEvent)">setShapeLocation</A></B>(java.awt.event.MouseEvent&nbsp;mevent)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the pick location.</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/PickCanvas.html#setTolerance(float)">setTolerance</A></B>(float&nbsp;t)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the picking tolerance.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_com.sun.j3d.utils.picking.PickTool"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class com.sun.j3d.utils.picking.<A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html" title="class in com.sun.j3d.utils.picking">PickTool</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#getBranchGroup()">getBranchGroup</A>, <A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#getLocale()">getLocale</A>, <A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#getMode()">getMode</A>, <A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#getPickShape()">getPickShape</A>, <A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#getStartPosition()">getStartPosition</A>, <A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#pickAll()">pickAll</A>, <A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#pickAllSorted()">pickAllSorted</A>, <A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#pickAny()">pickAny</A>, <A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#pickClosest()">pickClosest</A>, <A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#setBranchGroup(javax.media.j3d.Locale)">setBranchGroup</A>, <A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#setCapabilities(javax.media.j3d.Node, int)">setCapabilities</A>, <A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#setMode(int)">setMode</A>, <A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#setShape(javax.media.j3d.PickShape, javax.vecmath.Point3d)">setShape</A>, <A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#setShapeBounds(javax.media.j3d.Bounds, javax.vecmath.Point3d)">setShapeBounds</A>, <A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#setShapeConeRay(javax.vecmath.Point3d, javax.vecmath.Vector3d, double)">setShapeConeRay</A>, <A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#setShapeConeSegment(javax.vecmath.Point3d, javax.vecmath.Point3d, double)">setShapeConeSegment</A>, <A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#setShapeCylinderRay(javax.vecmath.Point3d, javax.vecmath.Vector3d, double)">setShapeCylinderRay</A>, <A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#setShapeCylinderSegment(javax.vecmath.Point3d, javax.vecmath.Point3d, double)">setShapeCylinderSegment</A>, <A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#setShapeRay(javax.vecmath.Point3d, javax.vecmath.Vector3d)">setShapeRay</A>, <A HREF="../../../../../com/sun/j3d/utils/picking/PickTool.html#setShapeSegment(javax.vecmath.Point3d, javax.vecmath.Point3d)">setShapeSegment</A></CODE></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><!-- ========= 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="PickCanvas(javax.media.j3d.Canvas3D, javax.media.j3d.BranchGroup)"><!-- --></A><H3>PickCanvas</H3><PRE>public <B>PickCanvas</B>(<A HREF="../../../../../javax/media/j3d/Canvas3D.html" title="class in javax.media.j3d">Canvas3D</A>&nbsp;c,                  <A HREF="../../../../../javax/media/j3d/BranchGroup.html" title="class in javax.media.j3d">BranchGroup</A>&nbsp;b)</PRE><DL><DD>Constructor with Canvas3D for mouse events and BranchGroup to be picked.<P></DL><HR><A NAME="PickCanvas(javax.media.j3d.Canvas3D, javax.media.j3d.Locale)"><!-- --></A><H3>PickCanvas</H3><PRE>public <B>PickCanvas</B>(<A HREF="../../../../../javax/media/j3d/Canvas3D.html" title="class in javax.media.j3d">Canvas3D</A>&nbsp;c,                  <A HREF="../../../../../javax/media/j3d/Locale.html" title="class in javax.media.j3d">Locale</A>&nbsp;l)</PRE><DL><DD>Constructor with Canvas3D for mouse events and 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="getCanvas()"><!-- --></A><H3>getCanvas</H3><PRE>public <A HREF="../../../../../javax/media/j3d/Canvas3D.html" title="class in javax.media.j3d">Canvas3D</A> <B>getCanvas</B>()</PRE><DL><DD>Inquire the canvas to be used for picking operations.<P><DD><DL><DT><B>Returns:</B><DD>the canvas.</DL></DD></DL><HR><A NAME="setTolerance(float)"><!-- --></A><H3>setTolerance</H3><PRE>public void <B>setTolerance</B>(float&nbsp;t)</PRE><DL><DD>Set the picking tolerance.  Objects within this distance (in pixels)  to the mouse x,y location will be picked.  The default tolerance is 2.0.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - The tolerance<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the tolerance is less than 0.</DL></DD></DL><HR><A NAME="getTolerance()"><!-- --></A><H3>getTolerance</H3><PRE>public float <B>getTolerance</B>()</PRE><DL><DD>Get the pick tolerance.<P><DD><DL></DL></DD></DL><HR><A NAME="setShapeLocation(java.awt.event.MouseEvent)"><!-- --></A><H3>setShapeLocation</H3><PRE>public void <B>setShapeLocation</B>(java.awt.event.MouseEvent&nbsp;mevent)</PRE><DL><DD>Set the pick location. Defines the location on the canvas where the       pick is to be performed.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>mevent</CODE> - The MouseEvent for the picking point</DL></DD></DL><HR><A NAME="setShapeLocation(int, int)"><!-- --></A><H3>setShapeLocation</H3><PRE>public void <B>setShapeLocation</B>(int&nbsp;xpos,                             int&nbsp;ypos)</PRE><DL><DD>Set the pick location. Defines the location on the canvas where the        pick is to be performed (upper left corner of canvas is 0,0).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>xpos</CODE> - the X position of the picking point<DD><CODE>ypos</CODE> - the Y position of the picking point</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>&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;PREV CLASS&nbsp;&nbsp;<A HREF="../../../../../com/sun/j3d/utils/picking/PickIntersection.html" title="class in com.sun.j3d.utils.picking"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html?com/sun/j3d/utils/picking/PickCanvas.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="PickCanvas.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_com.sun.j3d.utils.picking.PickTool">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;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -