📄 physicalenvironment.html
字号:
<PRE>public void <B>setAudioDevice</B>(<A HREF="../../../javax/media/j3d/AudioDevice.html">AudioDevice</A> device)</PRE><DL><DD>Sets the specified AudioDevice object as the device through which audio rendering for this PhysicalEnvironment will be performed.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>device</CODE> - audio device object to be associated with this PhysicalEnvironment</DL></DD></DL><HR><A NAME="getAudioDevice()"><!-- --></A><H3>getAudioDevice</H3><PRE>public <A HREF="../../../javax/media/j3d/AudioDevice.html">AudioDevice</A> <B>getAudioDevice</B>()</PRE><DL><DD>Gets the audioDevice for this PhysicalEnvironment.<P><DD><DL><DT><B>Returns:</B><DD>audio device object associated with this PhysicalEnvironment</DL></DD></DL><HR><A NAME="getAllInputDevices()"><!-- --></A><H3>getAllInputDevices</H3><PRE>public java.util.Enumeration <B>getAllInputDevices</B>()</PRE><DL><DD>Create an enumerator that produces all input devices.<P><DD><DL><DT><B>Returns:</B><DD>an enumerator of all available devices</DL></DD></DL><HR><A NAME="addInputDevice(javax.media.j3d.InputDevice)"><!-- --></A><H3>addInputDevice</H3><PRE>public void <B>addInputDevice</B>(<A HREF="../../../javax/media/j3d/InputDevice.html">InputDevice</A> device)</PRE><DL><DD>Add an input device to the list of input devices. User is responsible for initializing the device and setting the processing mode (streaming or polling).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>device</CODE> - the device to be added to the list of input devices<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if InputDevice.getProcessingMode() does not return one of BLOCKING, NON_BLOCKING, or DEMAND_DRIVEN.</DL></DD></DL><HR><A NAME="removeInputDevice(javax.media.j3d.InputDevice)"><!-- --></A><H3>removeInputDevice</H3><PRE>public void <B>removeInputDevice</B>(<A HREF="../../../javax/media/j3d/InputDevice.html">InputDevice</A> device)</PRE><DL><DD>Remove an input device from the list of input devices. User is responsible for closing out the device and releasing the device resources.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>device</CODE> - the device to be removed</DL></DD></DL><HR><A NAME="setHeadIndex(int)"><!-- --></A><H3>setHeadIndex</H3><PRE>public void <B>setHeadIndex</B>(int index)</PRE><DL><DD>Sets the index of the head to the specified sensor index.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the new sensor index of the head</DL></DD></DL><HR><A NAME="getHeadIndex()"><!-- --></A><H3>getHeadIndex</H3><PRE>public int <B>getHeadIndex</B>()</PRE><DL><DD>Gets the sensor index of the head.<P><DD><DL><DT><B>Returns:</B><DD>the sensor index of the head</DL></DD></DL><HR><A NAME="setRightHandIndex(int)"><!-- --></A><H3>setRightHandIndex</H3><PRE>public void <B>setRightHandIndex</B>(int index)</PRE><DL><DD>Sets the index of the right hand to the specified sensor index.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the new sensor index of the right hand</DL></DD></DL><HR><A NAME="getRightHandIndex()"><!-- --></A><H3>getRightHandIndex</H3><PRE>public int <B>getRightHandIndex</B>()</PRE><DL><DD>Gets the sensor index of the right hand.<P><DD><DL><DT><B>Returns:</B><DD>the sensor index of the right hand</DL></DD></DL><HR><A NAME="setLeftHandIndex(int)"><!-- --></A><H3>setLeftHandIndex</H3><PRE>public void <B>setLeftHandIndex</B>(int index)</PRE><DL><DD>Sets the index of the left hand to the specified sensor index.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the new sensor index of the left hand</DL></DD></DL><HR><A NAME="getLeftHandIndex()"><!-- --></A><H3>getLeftHandIndex</H3><PRE>public int <B>getLeftHandIndex</B>()</PRE><DL><DD>Gets the sensor index of the left hand.<P><DD><DL><DT><B>Returns:</B><DD>the sensor index of the left hand</DL></DD></DL><HR><A NAME="setDominantHandIndex(int)"><!-- --></A><H3>setDominantHandIndex</H3><PRE>public void <B>setDominantHandIndex</B>(int index)</PRE><DL><DD>Sets the index of the dominant hand to the specified sensor index.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the new sensor index of the dominant hand</DL></DD></DL><HR><A NAME="getDominantHandIndex()"><!-- --></A><H3>getDominantHandIndex</H3><PRE>public int <B>getDominantHandIndex</B>()</PRE><DL><DD>Gets the sensor index of the dominant hand.<P><DD><DL><DT><B>Returns:</B><DD>the sensor index of the dominant hand</DL></DD></DL><HR><A NAME="setNonDominantHandIndex(int)"><!-- --></A><H3>setNonDominantHandIndex</H3><PRE>public void <B>setNonDominantHandIndex</B>(int index)</PRE><DL><DD>Sets the index of the non-dominant hand to the specified sensor index.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the new sensor index of the non dominant hand</DL></DD></DL><HR><A NAME="getNonDominantHandIndex()"><!-- --></A><H3>getNonDominantHandIndex</H3><PRE>public int <B>getNonDominantHandIndex</B>()</PRE><DL><DD>Gets the sensor index of the non-dominant hand.<P><DD><DL><DT><B>Returns:</B><DD>the sensor index of the non dominant hand</DL></DD></DL><HR><A NAME="setSensor(int, javax.media.j3d.Sensor)"><!-- --></A><H3>setSensor</H3><PRE>public void <B>setSensor</B>(int index, <A HREF="../../../javax/media/j3d/Sensor.html">Sensor</A> sensor)</PRE><DL><DD>Set the sensor specified by the index to sensor provided; sensors are indexed starting at 0. All sensors must be registered via this method.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the sensor's index<DD><CODE>sensor</CODE> - the new sensor</DL></DD></DL><HR><A NAME="getSensor(int)"><!-- --></A><H3>getSensor</H3><PRE>public <A HREF="../../../javax/media/j3d/Sensor.html">Sensor</A> <B>getSensor</B>(int index)</PRE><DL><DD>Gets the sensor specified by the index; sensors are indexed starting at 0.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the sensor's index</DL></DD></DL><HR><A NAME="setCoexistenceToTrackerBase(javax.media.j3d.Transform3D)"><!-- --></A><H3>setCoexistenceToTrackerBase</H3><PRE>public void <B>setCoexistenceToTrackerBase</B>(<A HREF="../../../javax/media/j3d/Transform3D.html">Transform3D</A> t)</PRE><DL><DD>Sets the coexistence coordinate system to tracker-base coordinate system transform. If head tracking is enabled, this transform is a calibration constant. If head tracking is not enabled, this transform is not used. This is used in both SCREEN_VIEW and HMD_VIEW modes.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - the new transform<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/BadTransformException.html">BadTransformException</A></CODE> - if the transform is not rigid</DL></DD></DL><HR><A NAME="getCoexistenceToTrackerBase(javax.media.j3d.Transform3D)"><!-- --></A><H3>getCoexistenceToTrackerBase</H3><PRE>public void <B>getCoexistenceToTrackerBase</B>(<A HREF="../../../javax/media/j3d/Transform3D.html">Transform3D</A> t)</PRE><DL><DD>Retrieves the coexistence coordinate system to tracker-base coordinate system transform and copies it into the specified Transform3D object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - the object that will receive the transform</DL></DD></DL><HR><A NAME="getTrackingAvailable()"><!-- --></A><H3>getTrackingAvailable</H3><PRE>public boolean <B>getTrackingAvailable</B>()</PRE><DL><DD>Returns a status flag indicating whether or not tracking is available.<P><DD><DL><DT><B>Returns:</B><DD>a flag telling whether tracking is available</DL></DD></DL><HR><A NAME="setCoexistenceCenterInPworldPolicy(int)"><!-- --></A><H3>setCoexistenceCenterInPworldPolicy</H3><PRE>public void <B>setCoexistenceCenterInPworldPolicy</B>(int policy)</PRE><DL><DD>Sets the coexistence center in physical world policy. This setting determines how Java 3D places the user's eye point as a function of head position during the calibration process, one of View.NOMINAL_SCREEN, View.NOMINAL_HEAD, or View.NOMINAL_FEET. The default policy is View.NOMINAL_SCREEN.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>policy</CODE> - the new policy</DL></DD></DL><HR><A NAME="getCoexistenceCenterInPworldPolicy()"><!-- --></A><H3>getCoexistenceCenterInPworldPolicy</H3><PRE>public int <B>getCoexistenceCenterInPworldPolicy</B>()</PRE><DL><DD>Returns the current coexistence center in physical world policy.<P><DD><DL><DT><B>Returns:</B><DD>one of: View.NOMINAL_SCREEN, View.NOMINAL_HEAD, or View.NOMINAL_FEET</DL></DD></DL><HR><A NAME="getSensorCount()"><!-- --></A><H3>getSensorCount</H3><PRE>public int <B>getSensorCount</B>()</PRE><DL><DD>Get the current sensor count.<P><DD><DL><DT><B>Returns:</B><DD>the number of sensor objects per PhysicalEnvironment object</DL></DD></DL><HR><A NAME="setSensorCount(int)"><!-- --></A><H3>setSensorCount</H3><PRE>public void <B>setSensorCount</B>(int count)</PRE><DL><DD>Set the number of sensor objects per PhysicalEnvironmnet. This is a calibration parameter that should be set before setting any sensors in the PhysicalEnvironment object. This call associates 'count' Sensors with this object, and they are indexed from 0 to count-1.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>count</CODE> - the new sensor count</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> </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/PhysicalBody.html"><B>PREV CLASS</B></A> <A HREF="../../../javax/media/j3d/PickBounds.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> <A HREF="PhysicalEnvironment.html" TARGET="_top"><B>NO FRAMES</B></A> <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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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 + -