📄 sensorread.html
字号:
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="MAXIMUM_SENSOR_BUTTON_COUNT"><!-- --></A><H3>MAXIMUM_SENSOR_BUTTON_COUNT</H3><PRE>public static final int <B>MAXIMUM_SENSOR_BUTTON_COUNT</B></PRE><DL><DD>The maximum number of sensor-attached buttons tracked on a per sensor basis.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.media.j3d.SensorRead.MAXIMUM_SENSOR_BUTTON_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="SensorRead()"><!-- --></A><H3>SensorRead</H3><PRE>public <B>SensorRead</B>()</PRE><DL><DD>Constructs a SensorRead object with default parameters. The default values are as follows: <ul> number of buttons : 0<br> button values : 0 (for all array elements)<br> transform : identity<br> time : current time<br> </ul><P></DL><HR><A NAME="SensorRead(int)"><!-- --></A><H3>SensorRead</H3><PRE>public <B>SensorRead</B>(int numButtons)</PRE><DL><DD>Constructs a SensorRead object with the specified number of buttons.<P><DL><DT><B>Parameters:</B><DD><CODE>numButtons</CODE> - the number of buttons for this SensorRead</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="set(javax.media.j3d.Transform3D)"><!-- --></A><H3>set</H3><PRE>public void <B>set</B>(<A HREF="../../../javax/media/j3d/Transform3D.html" title="class in javax.media.j3d">Transform3D</A> t1)</PRE><DL><DD>Set the SensorRead's transform to the value specified<P><DD><DL><DT><B>Parameters:</B><DD><CODE>t1</CODE> - this sensor's reading</DL></DD></DL><HR><A NAME="get(javax.media.j3d.Transform3D)"><!-- --></A><H3>get</H3><PRE>public void <B>get</B>(<A HREF="../../../javax/media/j3d/Transform3D.html" title="class in javax.media.j3d">Transform3D</A> result)</PRE><DL><DD>Retrieve the SensorRead's transform and place it in result<P><DD><DL><DT><B>Parameters:</B><DD><CODE>result</CODE> - the recipient of the this sensor's reading</DL></DD></DL><HR><A NAME="setTime(long)"><!-- --></A><H3>setTime</H3><PRE>public void <B>setTime</B>(long time)</PRE><DL><DD>Sets this SensorRead's time stamp to the specified argument<P><DD><DL><DT><B>Parameters:</B><DD><CODE>time</CODE> - the time to associate with this reading</DL></DD></DL><HR><A NAME="getTime()"><!-- --></A><H3>getTime</H3><PRE>public long <B>getTime</B>()</PRE><DL><DD>Retrieve this SensorRead's associated time stamp<P><DD><DL><DT><B>Returns:</B><DD>the SensorRead's time as a long</DL></DD></DL><HR><A NAME="setButtons(int[])"><!-- --></A><H3>setButtons</H3><PRE>public void <B>setButtons</B>(int[] values)</PRE><DL><DD>Sets the values of all buttons for this SensorRead object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>values</CODE> - array contining the new buttons for this SensorRead<DT><B>Throws:</B><DD><CODE>java.lang.ArrayIndexOutOfBoundsException</CODE> - if this object has 0 buttons or if values.length is less than the number of buttons in this object.</DL></DD></DL><HR><A NAME="getButtons(int[])"><!-- --></A><H3>getButtons</H3><PRE>public void <B>getButtons</B>(int[] values)</PRE><DL><DD>Copies the array of button values for this SensorRead object into the specified array. This method has no effect if this SensorRead object has 0 buttons. The array must be large enough to hold all of the buttons.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>values</CODE> - array that will receive the values of all buttons for this SensorRead</DL></DD></DL><HR><A NAME="getNumButtons()"><!-- --></A><H3>getNumButtons</H3><PRE>public int <B>getNumButtons</B>()</PRE><DL><DD>Returns the number of buttons associated with this SensorRead object.<P><DD><DL><DT><B>Returns:</B><DD>the number of buttons associated with this SensorRead object<DT><B>Since:</B></DT> <DD>Java 3D 1.2</DD></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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/media/j3d/Sensor.html" title="class in javax.media.j3d"><B>PREV CLASS</B></A> <A HREF="../../../javax/media/j3d/Shader.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/SensorRead.html" target="_top"><B>FRAMES</B></A> <A HREF="SensorRead.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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 + -