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

📄 sensor.html

📁 JAVA多媒体开发类库说明
💻 HTML
📖 第 1 页 / 共 4 页
字号:
</DL><HR><A NAME="DEFAULT_SENSOR_READ_COUNT"><!-- --></A><H3>DEFAULT_SENSOR_READ_COUNT</H3><PRE>public static final int <B>DEFAULT_SENSOR_READ_COUNT</B></PRE><DL><DD>Default SensorRead object count (30); the number of SensorRead  objects constructed if no count is specified.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.media.j3d.Sensor.DEFAULT_SENSOR_READ_COUNT">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="Sensor(javax.media.j3d.InputDevice)"><!-- --></A><H3>Sensor</H3><PRE>public <B>Sensor</B>(<A HREF="../../../javax/media/j3d/InputDevice.html" title="interface in javax.media.j3d">InputDevice</A>&nbsp;device)</PRE><DL><DD>Constructs a Sensor object for the specified input device using default parameters.  The default values are as follows: <ul> sensor read count : 30<br> sensor button count : 0<br> hot spot : (0,0,0)<br> predictor : PREDICT_NONE &mdash; <i>this attribute is unused</i><br> prediction policy : NO_PREDICTOR &mdash; <i>this attribute is unused</i><br> </ul><P><DL><DT><B>Parameters:</B><DD><CODE>device</CODE> - the Sensor's associated device.</DL></DL><HR><A NAME="Sensor(javax.media.j3d.InputDevice, int)"><!-- --></A><H3>Sensor</H3><PRE>public <B>Sensor</B>(<A HREF="../../../javax/media/j3d/InputDevice.html" title="interface in javax.media.j3d">InputDevice</A>&nbsp;device,              int&nbsp;sensorReadCount)</PRE><DL><DD>Constructs a Sensor object for the specified input device using the specified number of SensorRead objects. Default values are used for all other parameters.<P><DL><DT><B>Parameters:</B><DD><CODE>device</CODE> - the Sensor's associated device<DD><CODE>sensorReadCount</CODE> - the number of SensorReads to associate with this sensor</DL></DL><HR><A NAME="Sensor(javax.media.j3d.InputDevice, int, int)"><!-- --></A><H3>Sensor</H3><PRE>public <B>Sensor</B>(<A HREF="../../../javax/media/j3d/InputDevice.html" title="interface in javax.media.j3d">InputDevice</A>&nbsp;device,              int&nbsp;sensorReadCount,              int&nbsp;sensorButtonCount)</PRE><DL><DD>Constructs a Sensor object for the specified input device using the specified number of SensorRead objects and number of buttons. Default values are used for all other parameters.<P><DL><DT><B>Parameters:</B><DD><CODE>device</CODE> - the Sensor's associated device<DD><CODE>sensorReadCount</CODE> - the number of SensorReads to associate with this sensor<DD><CODE>sensorButtonCount</CODE> - the number of buttons associated with each sensor read</DL></DL><HR><A NAME="Sensor(javax.media.j3d.InputDevice, javax.vecmath.Point3d)"><!-- --></A><H3>Sensor</H3><PRE>public <B>Sensor</B>(<A HREF="../../../javax/media/j3d/InputDevice.html" title="interface in javax.media.j3d">InputDevice</A>&nbsp;device,              <A HREF="../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A>&nbsp;hotspot)</PRE><DL><DD>Constructs a Sensor object for the specified input device using the specified hotspot. Default values are used for all other parameters.<P><DL><DT><B>Parameters:</B><DD><CODE>device</CODE> - the Sensor's associated device<DD><CODE>hotspot</CODE> - the Sensor's hotspot defined in its local coordinate system</DL></DL><HR><A NAME="Sensor(javax.media.j3d.InputDevice, int, javax.vecmath.Point3d)"><!-- --></A><H3>Sensor</H3><PRE>public <B>Sensor</B>(<A HREF="../../../javax/media/j3d/InputDevice.html" title="interface in javax.media.j3d">InputDevice</A>&nbsp;device,              int&nbsp;sensorReadCount,              <A HREF="../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A>&nbsp;hotspot)</PRE><DL><DD>Constructs a Sensor object for the specified input device using the specified number of SensorRead objects and hotspot. Default values are used for all other parameters.<P><DL><DT><B>Parameters:</B><DD><CODE>device</CODE> - the Sensor's associated device<DD><CODE>sensorReadCount</CODE> - the number of SensorReads to associate with this sensor<DD><CODE>hotspot</CODE> - the Sensor's hotspot defined in its local coordinate system</DL></DL><HR><A NAME="Sensor(javax.media.j3d.InputDevice, int, int, javax.vecmath.Point3d)"><!-- --></A><H3>Sensor</H3><PRE>public <B>Sensor</B>(<A HREF="../../../javax/media/j3d/InputDevice.html" title="interface in javax.media.j3d">InputDevice</A>&nbsp;device,              int&nbsp;sensorReadCount,              int&nbsp;sensorButtonCount,              <A HREF="../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A>&nbsp;hotspot)</PRE><DL><DD>Constructs a Sensor object for the specified input device using the specified number of SensorRead objects, number of buttons, and hotspot. Default values are used for all other parameters.<P><DL><DT><B>Parameters:</B><DD><CODE>device</CODE> - the Sensor's associated device<DD><CODE>sensorReadCount</CODE> - the number of SensorReads to associate with this sensor<DD><CODE>sensorButtonCount</CODE> - the number of buttons associated with each sensor read<DD><CODE>hotspot</CODE> - the Sensor's hotspot defined in its local coordinate system</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="setPredictor(int)"><!-- --></A><H3>setPredictor</H3><PRE>public void <B>setPredictor</B>(int&nbsp;predictor)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>As of Java 3D version 1.4, prediction is not a supported feature.</I><P><DD>Sets the type of predictor to use with this sensor. Since prediction is not implemented (and never has been), this attribute has no effect.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>predictor</CODE> - predictor type one of PREDICT_NONE or PREDICT_NEXT_FRAME_TIME<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if an invalid predictor type  is specified.</DL></DD></DL><HR><A NAME="getPredictor()"><!-- --></A><H3>getPredictor</H3><PRE>public int <B>getPredictor</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>As of Java 3D version 1.4, prediction is not a supported feature.</I><P><DD>Returns the type of predictor used by this sensor.<P><DD><DL><DT><B>Returns:</B><DD>the predictor type.</DL></DD></DL><HR><A NAME="setPredictionPolicy(int)"><!-- --></A><H3>setPredictionPolicy</H3><PRE>public void <B>setPredictionPolicy</B>(int&nbsp;policy)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>As of Java 3D version 1.4, prediction is not a supported feature.</I><P><DD>Sets the prediction policy use by this sensor. Since prediction is not implemented (and never has been), this attribute has no effect.<P><DD><DL><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><B>Deprecated.</B>&nbsp;<I>As of Java 3D version 1.4, prediction is not a supported feature.</I><P><DD>Returns the prediction policy used by this sensor.<P><DD><DL><DT><B>Returns:</B><DD>the prediction policy.</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" title="class in javax.vecmath">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" title="class in javax.vecmath">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" title="interface in javax.media.j3d">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" title="interface in javax.media.j3d">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" title="class in javax.media.j3d">Transform3D</A>&nbsp;read)</PRE><DL><DD>Retrieves the last sensor reading and copies that value into the specified argument.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -