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

📄 sensor.html

📁 JAVA多媒体开发类库说明
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<P><DD><DL><DT><B>Parameters:</B><DD><CODE>read</CODE> - the matrix that will receive the sensor reading</DL></DD></DL><HR><A NAME="getRead(javax.media.j3d.Transform3D, long)"><!-- --></A><H3>getRead</H3><PRE>public void <B>getRead</B>(<A HREF="../../../javax/media/j3d/Transform3D.html" title="class in javax.media.j3d">Transform3D</A>&nbsp;read,                    long&nbsp;deltaT)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>As of Java 3D version 1.4, prediction is not a supported feature; use <code>getRead(Transform3D)</code> instead.</I><P><DD>Retrieves the last sensor reading and copies that value into the specified argument.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>read</CODE> - the matrix that will receive the sensor reading<DD><CODE>deltaT</CODE> - this parameter is ignored</DL></DD></DL><HR><A NAME="lastRead(javax.media.j3d.Transform3D)"><!-- --></A><H3>lastRead</H3><PRE>public void <B>lastRead</B>(<A HREF="../../../javax/media/j3d/Transform3D.html" title="class in javax.media.j3d">Transform3D</A>&nbsp;read)</PRE><DL><DD>Extracts the most recent sensor reading and copies that value into the specified argument.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>read</CODE> - the matrix that will receive the most recent sensor reading</DL></DD></DL><HR><A NAME="lastRead(javax.media.j3d.Transform3D, int)"><!-- --></A><H3>lastRead</H3><PRE>public void <B>lastRead</B>(<A HREF="../../../javax/media/j3d/Transform3D.html" title="class in javax.media.j3d">Transform3D</A>&nbsp;read,                     int&nbsp;kth)</PRE><DL><DD>Extracts the kth-most recent sensor reading and copies that value into the specified argument; where 0 is the most recent sensor reading, 1 is  the next most recent sensor reading, etc.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>read</CODE> - the matrix that will receive the most recent sensor reading<DD><CODE>kth</CODE> - the kth previous sensor reading</DL></DD></DL><HR><A NAME="lastTime()"><!-- --></A><H3>lastTime</H3><PRE>public long <B>lastTime</B>()</PRE><DL><DD>Returns the time associated with the most recent sensor reading.<P><DD><DL><DT><B>Returns:</B><DD>the time associated with the most recent sensor reading.</DL></DD></DL><HR><A NAME="lastTime(int)"><!-- --></A><H3>lastTime</H3><PRE>public long <B>lastTime</B>(int&nbsp;k)</PRE><DL><DD>Returns the time associated with the kth-most recent sensor reading; where 0 is the most recent sensor reading, 1 is the next most recent sensor reading, etc.<P><DD><DL><DT><B>Returns:</B><DD>the time associated with the kth-most recent sensor reading.</DL></DD></DL><HR><A NAME="lastButtons(int[])"><!-- --></A><H3>lastButtons</H3><PRE>public void <B>lastButtons</B>(int[]&nbsp;values)</PRE><DL><DD>Places the most recent sensor reading value for each button into  the array parameter; will throw an ArrayIndexOutOfBoundsException  if values.length is less than the number of buttons.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>values</CODE> - the array into which the button values will be  placed</DL></DD></DL><HR><A NAME="lastButtons(int, int[])"><!-- --></A><H3>lastButtons</H3><PRE>public void <B>lastButtons</B>(int&nbsp;k,                        int[]&nbsp;values)</PRE><DL><DD>Places the kth-most recent sensor reading value for each button into  the array parameter; where k=0 is the most recent sensor reading, k=1   is the next most recent sensor reading, etc.;  will throw an   ArrayIndexOutOfBoundsException if values.length is less than  the number of buttons.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>k</CODE> - the time associated with the most recent sensor reading<DD><CODE>values</CODE> - the array into which the button values will be  placed.</DL></DD></DL><HR><A NAME="getSensorReadCount()"><!-- --></A><H3>getSensorReadCount</H3><PRE>public int <B>getSensorReadCount</B>()</PRE><DL><DD>Returns the number of SensorRead objects associated with this sensor.<P><DD><DL><DT><B>Returns:</B><DD>the number of SensorReadObjects associated with this sensor</DL></DD></DL><HR><A NAME="setSensorReadCount(int)"><!-- --></A><H3>setSensorReadCount</H3><PRE>public void <B>setSensorReadCount</B>(int&nbsp;count)</PRE><DL><DD>Set the number of sensor read objects per Sensor. This is a  calibration parameter that should normally be set in this  object's constructor.  Calling this method resets all of this sensor's values that are already in the buffer. It is illegal to change this value after the device has been added to the scheduler.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>count</CODE> - the new sensor read count</DL></DD></DL><HR><A NAME="getSensorButtonCount()"><!-- --></A><H3>getSensorButtonCount</H3><PRE>public int <B>getSensorButtonCount</B>()</PRE><DL><DD>Returns the number of buttons associated with this sensor.<P><DD><DL><DT><B>Returns:</B><DD>the number of buttons associated with this sensor.</DL></DD></DL><HR><A NAME="getCurrentSensorRead()"><!-- --></A><H3>getCurrentSensorRead</H3><PRE>public <A HREF="../../../javax/media/j3d/SensorRead.html" title="class in javax.media.j3d">SensorRead</A> <B>getCurrentSensorRead</B>()</PRE><DL><DD>Gets the current sensor read.<P><DD><DL><DT><B>Returns:</B><DD>the current sensor read object</DL></DD></DL><HR><A NAME="setNextSensorRead(long, javax.media.j3d.Transform3D, int[])"><!-- --></A><H3>setNextSensorRead</H3><PRE>public void <B>setNextSensorRead</B>(long&nbsp;time,                              <A HREF="../../../javax/media/j3d/Transform3D.html" title="class in javax.media.j3d">Transform3D</A>&nbsp;transform,                              int[]&nbsp;values)</PRE><DL><DD>Sets the next sensor read to the specified values; once these  values are set via this method they become the current values  returned by methods such as lastRead(), lastTime(), and   lastButtons(); note that if there are no buttons associated with  this sensor, values can just be an empty array.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>time</CODE> - the next SensorRead's associated time<DD><CODE>transform</CODE> - the next SensorRead's transformation<DD><CODE>values</CODE> - the next SensorRead's buttons' states</DL></DD></DL><HR><A NAME="setNextSensorRead(javax.media.j3d.SensorRead)"><!-- --></A><H3>setNextSensorRead</H3><PRE>public void <B>setNextSensorRead</B>(<A HREF="../../../javax/media/j3d/SensorRead.html" title="class in javax.media.j3d">SensorRead</A>&nbsp;read)</PRE><DL><DD>Sets the next sensor read to the specified values; once these  values are set via this method they become the current values  returned by methods such as lastRead(), lastTime(), and  lastButtons().<P><DD><DL><DT><B>Parameters:</B><DD><CODE>read</CODE> - the next SensorRead's values</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;<A HREF="../../../javax/media/j3d/Screen3D.html" title="class in javax.media.j3d"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/media/j3d/SensorRead.html" title="class in javax.media.j3d"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html?javax/media/j3d/Sensor.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Sensor.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="#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><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 + -