Java Doc for PhysicalEnvironment.java in  » 6.0-JDK-Modules » java-3d » javax » media » j3d » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » java 3d » javax.media.j3d 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.media.j3d.PhysicalEnvironment

PhysicalEnvironment
public class PhysicalEnvironment extends Object (Code)
This object contains a specification of the physical environment in which the view will be generated. It is used to set up input devices (sensors) for head-tracking and other uses, and the audio output device. Sensors are indexed starting at zero.
See Also:   View


Field Summary
 intDominantHandIndex
    
 intHeadIndex
    
 intLeftHandIndex
    
 intNonDominantHandIndex
    
 intRightHandIndex
    
 intactiveViewRef
    
 AudioDeviceaudioDevice
    
 intcoexistenceCenterInPworldPolicy
    
 Transform3DcoexistenceToTrackerBase
    
 Vectordevices
    
 InputDeviceSchedulerinputsched
    
 intpeDirtyMask
    
static  HashtablephysicalEnvMap
    
 intsensorCount
    
 Sensor[]sensorList
    
 booleansensorListChanged
    
 Sensor[]sensors
    
 booleantrackingAvailable
    
 ArrayListusers
    

Constructor Summary
public  PhysicalEnvironment()
     Constructs a PhysicalEnvironment object with default parameters.
public  PhysicalEnvironment(int sensorCount)
     Constructs and initializes a PhysicalEnvironment object with the specified number of sensors.

Method Summary
public  voidaddInputDevice(InputDevice device)
     Add an input device to the list of input devices.
synchronized  voidaddUser(View view)
    
public  EnumerationgetAllInputDevices()
     Create an enumerator that produces all input devices.
public  AudioDevicegetAudioDevice()
     Gets the audioDevice for this PhysicalEnvironment.
public  intgetCoexistenceCenterInPworldPolicy()
     Returns the current coexistence center in physical world policy.
public  voidgetCoexistenceToTrackerBase(Transform3D t)
     Retrieves the coexistence coordinate system to tracker-base coordinate system transform and copies it into the specified Transform3D object.
public  intgetDominantHandIndex()
     Gets the sensor index of the dominant hand.
public  intgetHeadIndex()
     Gets the sensor index of the head.
public  intgetLeftHandIndex()
     Gets the sensor index of the left hand.
public  intgetNonDominantHandIndex()
     Gets the sensor index of the non-dominant hand.
public  intgetRightHandIndex()
     Gets the sensor index of the right hand.
public  SensorgetSensor(int index)
     Gets the sensor specified by the index; sensors are indexed starting at 0.
public  intgetSensorCount()
     Get the current sensor count.
 Sensor[]getSensorList()
     Returns copy of Sensor references.
public  booleangetTrackingAvailable()
     Returns a status flag indicating whether or not tracking is available.
synchronized  voidnotifyUsers()
    
public  voidremoveInputDevice(InputDevice device)
     Remove an input device from the list of input devices.
synchronized  voidremoveUser(View view)
    
public  voidsetAudioDevice(AudioDevice device)
     Sets the specified AudioDevice object as the device through which audio rendering for this PhysicalEnvironment will be performed.
public  voidsetCoexistenceCenterInPworldPolicy(int policy)
     Sets the coexistence center in physical world policy.
public  voidsetCoexistenceToTrackerBase(Transform3D t)
     Sets the coexistence coordinate system to tracker-base coordinate system transform.
public  voidsetDominantHandIndex(int index)
     Sets the index of the dominant hand to the specified sensor index.
public  voidsetHeadIndex(int index)
     Sets the index of the head to the specified sensor index.
public  voidsetLeftHandIndex(int index)
     Sets the index of the left hand to the specified sensor index.
public  voidsetNonDominantHandIndex(int index)
     Sets the index of the non-dominant hand to the specified sensor index.
public  voidsetRightHandIndex(int index)
     Sets the index of the right hand to the specified sensor index.
public  voidsetSensor(int index, Sensor sensor)
     Set the sensor specified by the index to sensor provided; sensors are indexed starting at 0.
public  voidsetSensorCount(int count)
     Set the number of sensor objects per PhysicalEnvironmnet.

Field Detail
DominantHandIndex
int DominantHandIndex(Code)



HeadIndex
int HeadIndex(Code)
The Sensor Index associated with the Head



LeftHandIndex
int LeftHandIndex(Code)



NonDominantHandIndex
int NonDominantHandIndex(Code)



RightHandIndex
int RightHandIndex(Code)



activeViewRef
int activeViewRef(Code)



audioDevice
AudioDevice audioDevice(Code)



coexistenceCenterInPworldPolicy
int coexistenceCenterInPworldPolicy(Code)



coexistenceToTrackerBase
Transform3D coexistenceToTrackerBase(Code)



devices
Vector devices(Code)



inputsched
InputDeviceScheduler inputsched(Code)



peDirtyMask
int peDirtyMask(Code)



physicalEnvMap
static Hashtable physicalEnvMap(Code)



sensorCount
int sensorCount(Code)



sensorList
Sensor[] sensorList(Code)



sensorListChanged
boolean sensorListChanged(Code)



sensors
Sensor[] sensors(Code)



trackingAvailable
boolean trackingAvailable(Code)



users
ArrayList users(Code)




Constructor Detail
PhysicalEnvironment
public PhysicalEnvironment()(Code)
Constructs a PhysicalEnvironment object with default parameters. The default values are as follows:
    sensor count : 3
    sensors : null (for all array elements)
    head index : 0
    right hand index : 1
    left hand index : 2
    dominant hand index : 1
    nondominant hand index : 2
    tracking available : false
    audio device : null
    input device list : empty
    coexistence to tracker base transform : identity
    coexistence center in pworld policy : View.NOMINAL_SCREEN



PhysicalEnvironment
public PhysicalEnvironment(int sensorCount)(Code)
Constructs and initializes a PhysicalEnvironment object with the specified number of sensors.
Parameters:
  sensorCount - the number of sensors to create.




Method Detail
addInputDevice
public void addInputDevice(InputDevice device)(Code)
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).
Parameters:
  device - the device to be added to the list of input devices
exception:
  IllegalArgumentException - if InputDevice.getProcessingMode()does not return one of BLOCKING, NON_BLOCKING, or DEMAND_DRIVEN.



addUser
synchronized void addUser(View view)(Code)



getAllInputDevices
public Enumeration getAllInputDevices()(Code)
Create an enumerator that produces all input devices. an enumerator of all available devices



getAudioDevice
public AudioDevice getAudioDevice()(Code)
Gets the audioDevice for this PhysicalEnvironment. audio device object associated with this PhysicalEnvironment



getCoexistenceCenterInPworldPolicy
public int getCoexistenceCenterInPworldPolicy()(Code)
Returns the current coexistence center in physical world policy. one of: View.NOMINAL_SCREEN, View.NOMINAL_HEAD, orView.NOMINAL_FEET



getCoexistenceToTrackerBase
public void getCoexistenceToTrackerBase(Transform3D t)(Code)
Retrieves the coexistence coordinate system to tracker-base coordinate system transform and copies it into the specified Transform3D object.
Parameters:
  t - the object that will receive the transform



getDominantHandIndex
public int getDominantHandIndex()(Code)
Gets the sensor index of the dominant hand. the sensor index of the dominant hand



getHeadIndex
public int getHeadIndex()(Code)
Gets the sensor index of the head. the sensor index of the head



getLeftHandIndex
public int getLeftHandIndex()(Code)
Gets the sensor index of the left hand. the sensor index of the left hand



getNonDominantHandIndex
public int getNonDominantHandIndex()(Code)
Gets the sensor index of the non-dominant hand. the sensor index of the non dominant hand



getRightHandIndex
public int getRightHandIndex()(Code)
Gets the sensor index of the right hand. the sensor index of the right hand



getSensor
public Sensor getSensor(int index)(Code)
Gets the sensor specified by the index; sensors are indexed starting at 0.
Parameters:
  index - the sensor's index



getSensorCount
public int getSensorCount()(Code)
Get the current sensor count. the number of sensor objects per PhysicalEnvironment object



getSensorList
Sensor[] getSensorList()(Code)
Returns copy of Sensor references. Returns null for zero sensors, so user of method must check for null. Also, any of these sensors could be null.



getTrackingAvailable
public boolean getTrackingAvailable()(Code)
Returns a status flag indicating whether or not tracking is available. a flag telling whether tracking is available



notifyUsers
synchronized void notifyUsers()(Code)



removeInputDevice
public void removeInputDevice(InputDevice device)(Code)
Remove an input device from the list of input devices. User is responsible for closing out the device and releasing the device resources.
Parameters:
  device - the device to be removed



removeUser
synchronized void removeUser(View view)(Code)



setAudioDevice
public void setAudioDevice(AudioDevice device)(Code)
Sets the specified AudioDevice object as the device through which audio rendering for this PhysicalEnvironment will be performed.
Parameters:
  device - audio device object to be associated with this PhysicalEnvironment



setCoexistenceCenterInPworldPolicy
public void setCoexistenceCenterInPworldPolicy(int policy)(Code)
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.
Parameters:
  policy - the new policy



setCoexistenceToTrackerBase
public void setCoexistenceToTrackerBase(Transform3D t)(Code)
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.
Parameters:
  t - the new transform
exception:
  BadTransformException - if the transform is not rigid



setDominantHandIndex
public void setDominantHandIndex(int index)(Code)
Sets the index of the dominant hand to the specified sensor index.
Parameters:
  index - the new sensor index of the dominant hand



setHeadIndex
public void setHeadIndex(int index)(Code)
Sets the index of the head to the specified sensor index.
Parameters:
  index - the new sensor index of the head



setLeftHandIndex
public void setLeftHandIndex(int index)(Code)
Sets the index of the left hand to the specified sensor index.
Parameters:
  index - the new sensor index of the left hand



setNonDominantHandIndex
public void setNonDominantHandIndex(int index)(Code)
Sets the index of the non-dominant hand to the specified sensor index.
Parameters:
  index - the new sensor index of the non dominant hand



setRightHandIndex
public void setRightHandIndex(int index)(Code)
Sets the index of the right hand to the specified sensor index.
Parameters:
  index - the new sensor index of the right hand



setSensor
public void setSensor(int index, Sensor sensor)(Code)
Set the sensor specified by the index to sensor provided; sensors are indexed starting at 0. All sensors must be registered via this method.
Parameters:
  index - the sensor's index
Parameters:
  sensor - the new sensor



setSensorCount
public void setSensorCount(int count)(Code)
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.
Parameters:
  count - the new sensor count



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.