home *** CD-ROM | disk | FTP | other *** search
/ Netscape Plug-Ins Developer's Kit / Netscape_Plug-Ins_Developers_Kit.iso / plugins / WIRL / wirlb1g.exe / data.1 / WIRLJava.txt < prev    next >
Encoding:
Text File  |  1996-03-04  |  3.0 KB  |  76 lines

  1. Getting started with Java for WIRL.  
  2. This beta release provides the ability to interface the Java programming language with the WIRL 
  3. plug-in.  The following classes have been provided for accessing objects within a VRML world.
  4.  
  5.  
  6. --------------------------------------------------------------
  7. Class:  VRCAPI - This class must be constructed when the world has been loaded.  VRCAPI will 
  8. initialize and start the rendering timer.
  9.  
  10. Attributes:
  11. -----------
  12. VRCRenderTimer VRCTimer - controls the rendering of the window
  13.  
  14. VRCObject currrObject - references an object in the world.  This variable is set with a call                             to getObject.  Use this when a permanent reference to an object is not                           needed. 
  15.  
  16. Methods:
  17. --------
  18. VRCAPI() - constructs and intializes the plug-in interface.
  19.  
  20. getObject(String name) - this will reference the currobject attribute with the object 
  21. described by "name" .
  22.  
  23. ---------------------------------------------------------------
  24. Class: VRCObject - This object represents a 3D object or group in the VRML world.   
  25.  
  26. Attributes:
  27. -----------
  28. float fRotVal[6] = rotation values: x, y, z, yaw, pitch, roll
  29. float fPosVal[3] = position values: x, y, z
  30. int rgb[2] = red green blue
  31. string Name = name of object
  32.  
  33.  
  34. Methods:
  35. --------
  36. VRCObject(String Name, int ActiveWindow) - Send the name of the object or group in the VRML
  37. file and the Active window to this constructor. No return value is associated with 
  38. this function. 
  39.  
  40. setName(String name) - use this to change the object of reference. No return value is 
  41. associated with this function.
  42.  
  43. setColor(int rgb[]) - sets the color of the object. No return value is associated with this
  44. function.
  45.  
  46. getColor() - updates current color to rgb[] attribute.  No return value is associated with
  47. this function.
  48.  
  49. getPosition() - updates fPosVal with current world relative position coordinates.  No return
  50. value is associated with this function.
  51.  
  52. getRotation() - updates fRotVal with current world relative rotation coordinates.  No return
  53. value is associated with this function.
  54.  
  55. rotateRel(float fRot[6]) - takes x, y, z in (radians) and midpoint to rotate an object 
  56. relative to supplied midpoint.  No return value is associated with this function.
  57.  
  58. spin(float fRot[6]) - send x, y, z (radians) and midpoints to begin object rotating.  No 
  59. return value is associated with this function.
  60.  
  61. Translate(float fPos[3]) - send x, y, z .  Moves object in specified direction using world
  62. coordinates.  No return value is associated with this function.
  63.  
  64. TranslateRel(float fPos[3]) - send x, y, z .  Moves object in specified direction using 
  65. relative coordinates.  No return value is associated with this function.
  66. ---------------------------------------------------------------------
  67.  
  68. Java Class: VRCRenderTimer - This class renders to the active window 
  69.  
  70. Methods:
  71. --------
  72. stopTimer() -- pauses the timer.
  73. startTimer() - restarts the timer.
  74. killTimer() - kills the timer.
  75.  
  76.