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

📄 sensor.html

📁 java 3d帮助文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<DT><B>Parameters:</B><DD><CODE>policy</CODE> - prediction policy one of NO_PREDICTOR, HEAD_PREDICTOR, or HAND_PREDICTOR<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if an invalid prediction policy  is specified.</DL></DD></DL><HR><A NAME="getPredictionPolicy()"><!-- --></A><H3>getPredictionPolicy</H3><PRE>public int <B>getPredictionPolicy</B>()</PRE><DL><DD>This function returns the prediction policy used by this sensor.<P><DD><DL><DT><B>Returns:</B><DD>returns the prediction policy. one of NO_PREDICTOR, HEAD_PREDICTOR, or HAND_PREDICTOR.</DL></DD></DL><HR><A NAME="setHotspot(javax.vecmath.Point3d)"><!-- --></A><H3>setHotspot</H3><PRE>public void <B>setHotspot</B>(<A HREF="../../../javax/vecmath/Point3d.html">Point3d</A>&nbsp;hotspot)</PRE><DL><DD>Set the sensor's hotspot in this sensor's coordinate system.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>hotspot</CODE> - the sensor's new hotspot</DL></DD></DL><HR><A NAME="getHotspot(javax.vecmath.Point3d)"><!-- --></A><H3>getHotspot</H3><PRE>public void <B>getHotspot</B>(<A HREF="../../../javax/vecmath/Point3d.html">Point3d</A>&nbsp;hotspot)</PRE><DL><DD>Get the sensor's hotspot in this sensor's coordinate system.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>hotspot</CODE> - the variable to receive the sensor's hotspot</DL></DD></DL><HR><A NAME="setDevice(javax.media.j3d.InputDevice)"><!-- --></A><H3>setDevice</H3><PRE>public void <B>setDevice</B>(<A HREF="../../../javax/media/j3d/InputDevice.html">InputDevice</A>&nbsp;device)</PRE><DL><DD>Set the sensor's associated input device.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>device</CODE> - the sensor's new device</DL></DD></DL><HR><A NAME="getDevice()"><!-- --></A><H3>getDevice</H3><PRE>public <A HREF="../../../javax/media/j3d/InputDevice.html">InputDevice</A> <B>getDevice</B>()</PRE><DL><DD>Retrieves the sensor's associated input device.<P><DD><DL><DT><B>Returns:</B><DD>the sensor's device</DL></DD></DL><HR><A NAME="getRead(javax.media.j3d.Transform3D)"><!-- --></A><H3>getRead</H3><PRE>public void <B>getRead</B>(<A HREF="../../../javax/media/j3d/Transform3D.html">Transform3D</A>&nbsp;read)</PRE><DL><DD>Computes the sensor reading consistent with the prediction policy and copies that value into the specified argument; calling this method with a prediction policy of NO_PREDICTOR will return the last sensor  reading; calling this method with a prediction policy of HAND_PREDICTOR, or HEAD_PREDICTOR will extrapolate previous sensor readings to the current time.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>read</CODE> - The matrix that will receive the predicted 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">Transform3D</A>&nbsp;read,                    long&nbsp;deltaT)</PRE><DL><DD>Computes the sensor reading consistent as of time deltaT in the future and copies that value into the specified argument; the reading is computed using the current prediction policy; a prediction policy of NO_PREDICTOR will yield the most recent sensor reading for any deltaT argument (i.e., this method is the same as getRead for a prediction policy of NO_PREDICTOR).  The time argument must be >= 0.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>read</CODE> - the matrix that will receive the predicted sensor reading<DD><CODE>deltaT</CODE> - the time delta into the future for this read</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">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">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</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">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">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">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 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="../../../javax/media/j3d/Screen3D.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/media/j3d/SensorRead.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Sensor.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 + -