Class l3d.L3DScene
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class l3d.L3DScene

java.lang.Object
   |
   +----netscape.plugin.Plugin
           |
           +----l3d.L3DScene

public class L3DScene
extends Plugin
Live3D plugin utility
GENERAL NOTES:
Unless otherwise noted: Methods return 1 (true) or 0 (false)
THE FOLLOWING CODES APPLY TO EACH METHOD LISTED:
GOOD = Method has been implemented and tested
AVAIL = Method has been implemented but not tested
NYA = Method has not been implemented.

Variable Index

 o BOOL_FALSE
 o BOOL_TRUE
Boolean variables
 o CONTINUEPROCESSING_OFF
Continue Processing variables
 o CONTINUEPROCESSING_ON
 o DRAW_POINTCLOUD
 o DRAW_SOLID
 o DRAW_WIREFRAME
Draw Mode variables
 o NAVIGATE_FLY
 o NAVIGATE_LOOK
 o NAVIGATE_POINT
 o NAVIGATE_SLIDE
 o NAVIGATE_SPIN
 o NAVIGATE_WALK
Navigation Mode variables
 o SEARCHCRITERIA_ALLOBJECTS
FindObject Search Criteria variables
 o SEARCHCRITERIA_CHILDOBJECTS
 o SEARCHCRITERIA_PARENTOBJECT
 o SEARCHCRITERIA_SELECTEDOBJECTS
 o SEARCHCRITERIA_SHAPEOBJECTS
 o SHADE_FLAT
 o SHADE_SMOOTH
Shading Mode variables

Constructor Index

 o L3DScene()

Method Index

 o addCone(float, float, int)
Creates a new cone object GOOD.
 o addCube(float, float, float)
Creates a new cube object NYA.
 o addCylinder(float, float, float, int)
Creates a new cylinder object NYA.
 o addDisc(float, float, int)
Creates a new disc object NYA.
 o addLight(int, float[], float[], float[], float, float, float, float)
Add a light to the current scene NYA.
 o addSphere(float, int)
Creates a new sphere object NYA.
 o addSprite(String)
Creates a new sprite object NYA.
 o addURL(String, String, float, float, float, float, float, float)
Add the URL to the scene AVAIL.
 o addVRML(String, String, float, float, float, float, float, float)
Add a VRML object to the current scene GOOD.
 o addViewpoint(int, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float)
Add a viewpoint to the current scene NYA.
 o advise(L3DObserver, L3DObject, String)
Advise for an event GOOD.
 o animateToViewpoint(float, float, float)
Animates to the defined viewpoint NYA.
 o decreaseLightIntensity()
Decreases the light intensity one point GOOD.
 o deleteObject(L3DObject)
Deletes an object from the scene AVAIL.
 o findObject(L3DObject, int)
Finds an object NYA.
 o getAnimationMode()
Get the current Animation mode for the scene GOOD.
 o getBackdropImage(String)
Returns a background image for the VRML scene NYA.
 o getBackgroundColor(float[])
Gets background color (RGB) NYA.
 o getBankingMode()
Get the current banking mode for the scene GOOD.
 o getCameraFarClipping()
Gets the camera Far Clipping value AVAIL.
 o getCameraImage(int[])
Gets the current camera image NYA.
 o getCameraNearClipping()
Gets the camera Near Clipping value AVAIL.
 o getCameraOrientation(float[])
Gets the current camera rotation AVAIL.
 o getCameraPosition(float[])
Gets the current camera position AVAIL.
 o getCameraTransform(float[])
Retrieves current matrix transform on camera AVAIL.
 o getCameraView(float[])
Gets the camera view NYA.
 o getCollisionDetectionMode()
Get the current collision detection mode for the scene GOOD.
 o getFastrenderMode()
Get the current Fast Render mode for the scene GOOD.
 o getFogColor()
Set the fog color in the scene NYA.
 o getFogDistance()
Get the fog distance setting in the scene NYA.
 o getFogState()
Get the fog state in the scene NYA.
 o getFrameRate()
Get the current rendering frame rate NYA.
 o getGravityMode()
Get the current Gravity mode for the scene AVAIL.
 o getHeadlightState()
Get the current Headlight mode for the scene GOOD.
 o getLightIntensity()
Get the Scene's HeadLight intensity GOOD.
 o getMotionBlurMode()
Get the current Motion Blur mode for the scene GOOD.
 o getNavigationMode()
Get the navigation mode for the scene NYA.
 o getNumLights()
Get the number of lights in the current scene NYA.
 o getNumShape()
Get the number of shapes in the current scene NYA.
 o getObject(String)
Retrieve an L3DObject from a scene object GOOD.
 o getRoot()
Retrieves the top level object of the scene AVAIL.
 o getSceneTextureLightingMode()
Get the Texture Lighting Mode for the scene AVAIL.
 o getSceneURL(String)
Get's this scene's URL GOOD.
 o getStayOnGroundMode()
Get the current Stay on Ground mode for the scene GOOD.
 o getStereoMode()
Get the current Stereo Mode mode for the scene NYA.
 o getToolbarState()
Get the Toolbar state NYA.
 o getWireframeMode()
Get the current Wireframe mode for the scene AVAIL.
 o gotoCurrentViewpoint()
Return to current viewpoint NYA.
 o gotoNextViewpoint()
Go to next viewpoint NYA.
 o gotoPreviousViewpoint()
Return to previous viewpoint NYA.
 o gotoViewpoint(String, int)
Travel to named viewpoint AVAIL.
 o increaseLightIntensity()
Increase the light intensity one point GOOD.
 o loadAmbientSound(String)
Loads a sound file (.wav) into the scene NYA.
 o loadSceneURL(String)
Replaces the current VRML scene with the identified scene GOOD.
 o loadSceneVRML(String)
Replaces the current VRML scene with the identified VRML code NYA.
 o moveCamera(float, float, float)
Moves the camera to a new position AVAIL.
 o panCamera(float)
Pan Camera AVAIL.
 o pick(int, int)
Identifies object at a given location NYA.
 o playAmbientSound(int)
Plays a loaded sound file NYA.
 o reParent(L3DObject, L3DObject)
Gives an L3DObject a new parent NYA.
 o render()
Forces scene render GOOD.
 o requestRender()
Places scene render request in queue GOOD.
 o revolveCamera(float)
Revolve Camera AVAIL.
 o save(String)
Stream out this scene to the supplied String class NYA.
 o setAnimationMode(int)
Set the Animation mode for the scene GOOD.
 o setBackdropImage(String)
Sets background image GOOD.
 o setBackgroundColor(float, float, float)
Sets background color (RGB) GOOD.
 o setBankingMode(int)
Set the banking mode for the scene GOOD.
 o setCameraFarClipping(float)
Sets the camera Far Clipping value AVAIL.
 o setCameraNearClipping(float)
Sets the camera Near Clipping value AVAIL.
 o setCameraOrientation(float, float, float)
Rotates the camera to a new position AVAIL.
 o setCameraPosition(float, float, float)
Sets the camera to a new position AVAIL.
 o setCameraTransform(float[])
Applies matrix transform to camera AVAIL.
 o setCameraView(float, float, float, float, float, float, float, float, float)
Sets the camera view AVAIL.
 o setCollisionDetectionMode(int)
Set the collision detection mode for the scene GOOD.
 o setFastrenderMode(int)
Set the Fast Render mode for the scene GOOD.
 o setFogColor(float, float, float)
Set the fog color in the scene NYA.
 o setFogDistance(float)
Set the fog distance in the scene NYA.
 o setFogState(int)
Set the fog state in the scene NYA.
 o setGravityMode(int)
Set the Gravity mode for the scene AVAIL.
 o setHeadlightState(int)
Set the Headlight mode for the scene GOOD.
 o setLightIntensity(float)
Set the Scene's HeadLight intensity GOOD.
 o setMotionBlurMode(int)
Set the Motion Blur mode for the scene GOOD.
 o setNavigationMode(int)
Set the navigation mode for the scene NYA.
 o setSceneTextureLightingMode(int)
Set the Texture Lighting mode for the scene AVAIL.
 o setStayOnGroundMode(int)
Set the Stay on Ground mode for the scene GOOD.
 o setStereoMode(int)
Set the Stereo Mode mode for the scene NYA.
 o setToolbarState(int)
Set the Toolbar state NYA.
 o setWireframeMode(int)
Set the Wireframe mode for the scene AVAIL.
 o stopAmbientSound()
Stops a playing sound NYA.
 o tiltCamera(float)
Tilt Camera AVAIL.

Variables

 o BOOL_TRUE
  public final static int BOOL_TRUE
Boolean variables
 o BOOL_FALSE
  public final static int BOOL_FALSE
 o NAVIGATE_WALK
  public final static int NAVIGATE_WALK
Navigation Mode variables
 o NAVIGATE_SPIN
  public final static int NAVIGATE_SPIN
 o NAVIGATE_LOOK
  public final static int NAVIGATE_LOOK
 o NAVIGATE_SLIDE
  public final static int NAVIGATE_SLIDE
 o NAVIGATE_FLY
  public final static int NAVIGATE_FLY
 o NAVIGATE_POINT
  public final static int NAVIGATE_POINT
 o DRAW_SOLID
  public final static int DRAW_SOLID
 o DRAW_WIREFRAME
  public final static int DRAW_WIREFRAME
Draw Mode variables
 o DRAW_POINTCLOUD
  public final static int DRAW_POINTCLOUD
 o SHADE_FLAT
  public final static int SHADE_FLAT
 o SHADE_SMOOTH
  public final static int SHADE_SMOOTH
Shading Mode variables
 o SEARCHCRITERIA_ALLOBJECTS
  public final static int SEARCHCRITERIA_ALLOBJECTS
FindObject Search Criteria variables
 o SEARCHCRITERIA_PARENTOBJECT
  public final static int SEARCHCRITERIA_PARENTOBJECT
 o SEARCHCRITERIA_CHILDOBJECTS
  public final static int SEARCHCRITERIA_CHILDOBJECTS
 o SEARCHCRITERIA_SHAPEOBJECTS
  public final static int SEARCHCRITERIA_SHAPEOBJECTS
 o SEARCHCRITERIA_SELECTEDOBJECTS
  public final static int SEARCHCRITERIA_SELECTEDOBJECTS
 o CONTINUEPROCESSING_OFF
  public final static int CONTINUEPROCESSING_OFF
Continue Processing variables
 o CONTINUEPROCESSING_ON
  public final static int CONTINUEPROCESSING_ON

Constructors

 o L3DScene
  public L3DScene()

Methods

 o advise
  public int advise(L3DObserver observer,
                    L3DObject object,
                    String szEvent)
Advise for an event GOOD.
 o setBackgroundColor
  public int setBackgroundColor(float r,
                                float g,
                                float b)
Sets background color (RGB) GOOD.
Parameters:
fRed - Red Value (0-1)
fGreen - Green Value (0-1)
fBlue - Blue Value (0-1)
 o getBackgroundColor
  public int getBackgroundColor(float fColor[])
Gets background color (RGB) NYA.
Parameters:
fRed - Red Value (0-1) Null until return
fGreen - Green Value (0-1) Null until return
fBlue - Blue Value (0-1) Null until return
 o setBackdropImage
  public int setBackdropImage(String strURL)
Sets background image GOOD.
Parameters:
strURL - URL and name of background image
 o getBackdropImage
  public int getBackdropImage(String strURL)
Returns a background image for the VRML scene NYA.
Returns:
strURL the full URL and name of the background image
 o render
  public int render()
Forces scene render GOOD.
 o requestRender
  public int requestRender()
Places scene render request in queue GOOD.
 o loadSceneURL
  public L3DObject loadSceneURL(String strURL)
Replaces the current VRML scene with the identified scene GOOD.
Parameters:
strURL - the full URL and name of the replacement VRML scene
 o loadSceneVRML
  public L3DObject loadSceneVRML(String strVRML)
Replaces the current VRML scene with the identified VRML code NYA.
Parameters:
strVRML - VRML code to replace current scene
 o getSceneURL
  public int getSceneURL(String strURL)
Get's this scene's URL GOOD.
Parameters:
strURL - The URL representing this scene
 o loadAmbientSound
  public int loadAmbientSound(String strURL)
Loads a sound file (.wav) into the scene NYA.
Parameters:
strURL - the full URL and name of the sound file
 o playAmbientSound
  public int playAmbientSound(int bLoop)
Plays a loaded sound file NYA.
Parameters:
bLoop - Integer value to play once or loop
 o stopAmbientSound
  public int stopAmbientSound()
Stops a playing sound NYA.
 o getFrameRate
  public int getFrameRate()
Get the current rendering frame rate NYA.
Returns:
Integer value of current frame rate
 o getNumShape
  public int getNumShape()
Get the number of shapes in the current scene NYA.
Returns:
Integer value of number of shapes
 o getNumLights
  public int getNumLights()
Get the number of lights in the current scene NYA.
Returns:
Integer value of number of lights
 o setFogDistance
  public int setFogDistance(float fDist)
Set the fog distance in the scene NYA.
Parameters:
fDist - The fog distance value
 o setFogState
  public int setFogState(int nState)
Set the fog state in the scene NYA.
Parameters:
fDist - The fog state value
 o setFogColor
  public int setFogColor(float fRed,
                         float fGreen,
                         float fBlue)
Set the fog color in the scene NYA.
Parameters:
fRed - Red Value (0-1)
fGreen - Green Value (0-1)
fBlue - Blue Value (0-1)
 o getFogDistance
  public float getFogDistance()
Get the fog distance setting in the scene NYA.
Returns:
The fog distance value
 o getFogState
  public int getFogState()
Get the fog state in the scene NYA.
Returns:
fDist The fog state value
 o getFogColor
  public float[] getFogColor()
Set the fog color in the scene NYA.
Returns:
3-part float array (r,g,b)
 o getNavigationMode
  public int getNavigationMode()
Get the navigation mode for the scene NYA.
Returns:
nNavigationMode (walk, fly, slide, point)
 o setNavigationMode
  public int setNavigationMode(int nNavigationMode)
Set the navigation mode for the scene NYA.
Parameters:
nNavigationMode - (walk, fly, slide, point)
 o getToolbarState
  public int getToolbarState()
Get the Toolbar state NYA.
Returns:
nToolbarState (on, off, insane)
 o setToolbarState
  public int setToolbarState(int nToolbarState)
Set the Toolbar state NYA.
Parameters:
nToolbarState - (on, off, insane)
 o setCollisionDetectionMode
  public int setCollisionDetectionMode(int nCollisionDetectionMode)
Set the collision detection mode for the scene GOOD.
Parameters:
nCollisionDetectionMode - set value on/off
 o getCollisionDetectionMode
  public int getCollisionDetectionMode()
Get the current collision detection mode for the scene GOOD.
Returns:
Integer of on/off value
 o setBankingMode
  public int setBankingMode(int nBankingMode)
Set the banking mode for the scene GOOD.
Parameters:
nBankingMode - set value on/off
 o getBankingMode
  public int getBankingMode()
Get the current banking mode for the scene GOOD.
Returns:
Integer of on/off value
 o setStayOnGroundMode
  public int setStayOnGroundMode(int nStayOnGroundMode)
Set the Stay on Ground mode for the scene GOOD.
Parameters:
nStayOnGroundMode - set value on/off
 o getStayOnGroundMode
  public int getStayOnGroundMode()
Get the current Stay on Ground mode for the scene GOOD.
Returns:
Integer of on/off value
 o setHeadlightState
  public int setHeadlightState(int nHeadlightState)
Set the Headlight mode for the scene GOOD.
Parameters:
nHeadlightState - set value on/off
 o getHeadlightState
  public int getHeadlightState()
Get the current Headlight mode for the scene GOOD.
Returns:
Integer of on/off value
 o increaseLightIntensity
  public int increaseLightIntensity()
Increase the light intensity one point GOOD.
 o decreaseLightIntensity
  public int decreaseLightIntensity()
Decreases the light intensity one point GOOD.
 o setLightIntensity
  public int setLightIntensity(float fIntensity)
Set the Scene's HeadLight intensity GOOD.
Parameters:
fIntensity - from 0.0 to 1.0
 o getLightIntensity
  public float getLightIntensity()
Get the Scene's HeadLight intensity GOOD.
Returns:
float from 0.0 to 1.0
 o setFastrenderMode
  public int setFastrenderMode(int nMode)
Set the Fast Render mode for the scene GOOD.
Parameters:
nMode - set value on/off
 o getFastrenderMode
  public int getFastrenderMode()
Get the current Fast Render mode for the scene GOOD.
Returns:
Integer of on/off value
 o setSceneTextureLightingMode
  public int setSceneTextureLightingMode(int nMode)
Set the Texture Lighting mode for the scene AVAIL.
Parameters:
nMode - set value on/off
 o getSceneTextureLightingMode
  public int getSceneTextureLightingMode()
Get the Texture Lighting Mode for the scene AVAIL.
Returns:
Integer of on/off value
 o setGravityMode
  public int setGravityMode(int nMode)
Set the Gravity mode for the scene AVAIL.
Parameters:
nMode - set value on/off
 o getGravityMode
  public int getGravityMode()
Get the current Gravity mode for the scene AVAIL.
Returns:
Integer of on/off value
 o setWireframeMode
  public int setWireframeMode(int nMode)
Set the Wireframe mode for the scene AVAIL.
Parameters:
nMode - set value on/off
 o getWireframeMode
  public int getWireframeMode()
Get the current Wireframe mode for the scene AVAIL.
Returns:
Integer of on/off value
 o setMotionBlurMode
  public int setMotionBlurMode(int nMode)
Set the Motion Blur mode for the scene GOOD.
Parameters:
nMode - set value on/off
 o getMotionBlurMode
  public int getMotionBlurMode()
Get the current Motion Blur mode for the scene GOOD.
Returns:
Integer of on/off value
 o setStereoMode
  public int setStereoMode(int nMode)
Set the Stereo Mode mode for the scene NYA.
Parameters:
nMode - set value on/off
 o getStereoMode
  public int getStereoMode()
Get the current Stereo Mode mode for the scene NYA.
Returns:
Integer of on/off value
 o setAnimationMode
  public int setAnimationMode(int nMode)
Set the Animation mode for the scene GOOD.
Parameters:
nMode - set value on/off
 o getAnimationMode
  public int getAnimationMode()
Get the current Animation mode for the scene GOOD.
Returns:
Integer of on/off value
 o addLight
  public int addLight(int nLightStyle,
                      float fPos[],
                      float fDir[],
                      float fColor[],
                      float fDropOff,
                      float fCutoff,
                      float fIntensity,
                      float fAngle)
Add a light to the current scene NYA.
Parameters:
fPos - 3-Part Array (x,y,z) of light position
fDir - 3-Part Array (x,y,z) of lookAt vector
fColor - 3-Part Array (RGB) of light color
fDropOff - light's drop off range
fCutOff - light's cut off range
fIntensity - Intensity setting
fAngle - Light Cone angle setting (width)
 o addURL
  public L3DObject addURL(String strURL,
                          String strObject,
                          float fXPos,
                          float fYPos,
                          float fZPos,
                          float fPitch,
                          float fYaw,
                          float fRoll)
Add the URL to the scene AVAIL.
Parameters:
strURL - URL.
strObject - Name of VRML object within .wrl
fXPos - Object x Translation
fYPos - Object y Translation
fZPos - Object z Translation
fPitch - Object x rotation
fYaw - Object y rotation
fRoll - Object z rotation
Returns:
L3DObject of acquired object
 o addVRML
  public L3DObject addVRML(String strVRML,
                           String strObject,
                           float fXPos,
                           float fYPos,
                           float fZPos,
                           float fPitch,
                           float fYaw,
                           float fRoll)
Add a VRML object to the current scene GOOD.
Parameters:
strURL - URL and name of the .wrl file
strObject - Name of VRML object within .wrl
fXPos - Object x Translation
fYPos - Object y Translation
fZPos - Object z Translation
fPitch - Object x rotation
fYaw - Object y rotation
fRoll - Object z rotation
Returns:
L3DObject of acquired object
 o getObject
  public L3DObject getObject(String strObject)
Retrieve an L3DObject from a scene object GOOD.
Parameters:
strObject - Name of object to declare
Returns:
L3DObject of acquired object
 o getRoot
  public L3DObject getRoot()
Retrieves the top level object of the scene AVAIL.
Parameters:
strObject - Name of object to determine top level
Returns:
L3DObject of acquired top level object
 o reParent
  public int reParent(L3DObject parent,
                      L3DObject object)
Gives an L3DObject a new parent NYA.
Parameters:
parent - L3DObject to become parent
object - L3DObject to receive parent
 o deleteObject
  public int deleteObject(L3DObject object)
Deletes an object from the scene AVAIL.
Parameters:
parent - L3DObject to delete
 o addCone
  public L3DObject addCone(float fHeight,
                           float fRadius,
                           int nSides)
Creates a new cone object GOOD.
Parameters:
fHeight - Height of cone object
fRadius - Radius of cone object
nSides - Number of Sides of cone object
Returns:
L3DObject object created
 o addCube
  public L3DObject addCube(float fWidth,
                           float fHeight,
                           float fDepth)
Creates a new cube object NYA.
Parameters:
fHeight - Height of cube object
fRadius - Radius of cube object
fDepth - Depth of cube object
Returns:
L3DObject object created
 o addCylinder
  public L3DObject addCylinder(float fHeight,
                               float fRTop,
                               float fRBottom,
                               int nSides)
Creates a new cylinder object NYA.
Parameters:
fHeight - Height of cylinder object
fRTop - Radius of cylinder top
fRBottom - Radius of cylinder bottom
nSides - Number of Sides of cylinder object
Returns:
L3DObject object created
 o addDisc
  public L3DObject addDisc(float fHeight,
                           float fRadius,
                           int nSides)
Creates a new disc object NYA.
Parameters:
fHeight - Height of disc object
fRadius - Radius of disc object
nSides - Number of sides of disc object
Returns:
L3DObject object created
 o addSphere
  public L3DObject addSphere(float fRadius,
                             int nSides)
Creates a new sphere object NYA.
Parameters:
fRadius - Radius of sphere object
nSides - Number of sides of sphere object
Returns:
L3DObject object created
 o addSprite
  public L3DObject addSprite(String strURL)
Creates a new sprite object NYA.
Parameters:
strURL - URL and name of image that will be 'sprited'
Returns:
L3DObject object created
 o pick
  public L3DObject pick(int x,
                        int y)
Identifies object at a given location NYA.
Parameters:
x - X coordinate
y - Y coordinate
Returns:
L3DObject object at location
 o addViewpoint
  public int addViewpoint(int nViewProjection,
                          float fXPos,
                          float fYPos,
                          float fZPos,
                          float fXLookAt,
                          float fYLookAt,
                          float fZLookAt,
                          float fXLookUp,
                          float fYLookUp,
                          float fZLookUp,
                          float fXOrient,
                          float fYOrient,
                          float fZOrient,
                          float fAngle,
                          float fNearClip,
                          float fFarClip,
                          float fFieldOfView)
Add a viewpoint to the current scene NYA.
Parameters:
nViewProjection - (0=orthogonal, 1=perspective)
strObject - Name of VRML object within .wrl
fXPos - View x Position
fYPos - View y Position
fZPos - View z Position
fXLookAt - LookAt vector x component
fYLookAt - LookAt vector y component
fZLookAt - LookAt vector z component
fXLookUp - LookUp vector x component
fYLookUp - LookUp vector y component
fZLookUp - LookUp vector z component
fXOrient - Orientation vector x component
fYOrient - Orientation vector y component
fZOrient - Orientation vector z component
fAngle - Angle of view
fNearClip - Near clipping plane value
fFarClip - Far clipping plane value
fFieldOfView - Viewpoint's field of view
 o gotoViewpoint
  public int gotoViewpoint(String strViewPoint,
                           int nAnimationSteps)
Travel to named viewpoint AVAIL.
Parameters:
strViewPoint - Name of viewpoint
nAnimationSteps - Number of frames in move
 o gotoCurrentViewpoint
  public int gotoCurrentViewpoint()
Return to current viewpoint NYA.
 o gotoPreviousViewpoint
  public int gotoPreviousViewpoint()
Return to previous viewpoint NYA.
 o gotoNextViewpoint
  public int gotoNextViewpoint()
Go to next viewpoint NYA.
 o animateToViewpoint
  public int animateToViewpoint(float fXPos,
                                float fYPos,
                                float fZPos)
Animates to the defined viewpoint NYA.
Parameters:
fXPos - new x Position
fYPos - new y Position
fZPos - new z Position
 o setCameraPosition
  public int setCameraPosition(float fXPos,
                               float fYPos,
                               float fZPos)
Sets the camera to a new position AVAIL.
Parameters:
fXPos - new x Position
fYPos - new y Position
fZPos - new z Position
 o setCameraOrientation
  public int setCameraOrientation(float fPitch,
                                  float fYaw,
                                  float fRoll)
Rotates the camera to a new position AVAIL.
Parameters:
fXPitch - new x Rotation
fYYaw - new y Rotation
fZRoll - new z Rotation
 o getCameraPosition
  public int getCameraPosition(float fPosition[])
Gets the current camera position AVAIL.
Parameters:
fPosition - Null 3-part array to hold returned position info
Returns:
fPosition 3-part array with camera x,y,z coordinates
 o getCameraOrientation
  public int getCameraOrientation(float fOrientation[])
Gets the current camera rotation AVAIL.
Parameters:
fOrientation - Null 3-part array to hold returned rotation info
Returns:
fOrientation 3-part array with camera x,y,z rotations
 o setCameraView
  public int setCameraView(float fXPos,
                           float fYPos,
                           float fZPos,
                           float fXLookAt,
                           float fYLookAt,
                           float fZLookAt,
                           float fXLookUp,
                           float fYLookUp,
                           float fZLookUp)
Sets the camera view AVAIL.
Parameters:
fXPos - View x Position
fYPos - View y Position
fZPos - View z Position
fXLookAt - LookAt vector x component
fYLookAt - LookAt vector y component
fZLookAt - LookAt vector z component
fXLookUp - LookUp vector x component
fYLookUp - LookUp vector y component
fZLookUp - LookUp vector z component
 o getCameraView
  public int getCameraView(float fViewInfo[])
Gets the camera view NYA.
Parameters:
Null - 9-part array to hold return information
Returns:
9-part array holding information defined in setCameraView method
 o getCameraImage
  public int getCameraImage(int image[])
Gets the current camera image NYA. UNDER CONSTRUCTION
 o setCameraNearClipping
  public int setCameraNearClipping(float fNearClipping)
Sets the camera Near Clipping value AVAIL.
Parameters:
fNearClipping - the new near clipping value
 o getCameraNearClipping
  public float getCameraNearClipping()
Gets the camera Near Clipping value AVAIL.
Returns:
float of the near clipping value
 o setCameraFarClipping
  public int setCameraFarClipping(float fFarClipping)
Sets the camera Far Clipping value AVAIL.
Parameters:
fFarClipping - the new near clipping value
 o getCameraFarClipping
  public float getCameraFarClipping()
Gets the camera Far Clipping value AVAIL.
Returns:
float of the far clipping value
 o setCameraTransform
  public int setCameraTransform(float fMatrix[])
Applies matrix transform to camera AVAIL.
Parameters:
fMatrix - 16-part array holding new camera matrix
 o getCameraTransform
  public int getCameraTransform(float fMatrix[])
Retrieves current matrix transform on camera AVAIL.
Parameters:
fMatrix - Null 16-part array to hold camera matrix
Returns:
fMatrix 16-part array holding camera matrix
 o panCamera
  public int panCamera(float fAngle)
Pan Camera AVAIL.
Parameters:
fAngle - angle value of pan
 o tiltCamera
  public int tiltCamera(float fAngle)
Tilt Camera AVAIL.
Parameters:
fAngle - angle value of tilt
 o revolveCamera
  public int revolveCamera(float fAngle)
Revolve Camera AVAIL.
Parameters:
fAngle - angle value of revolution
 o moveCamera
  public int moveCamera(float fX,
                        float fY,
                        float fZ)
Moves the camera to a new position AVAIL.
Parameters:
fX - new x Position
fY - new y Position
fZ - new z Position
 o findObject
  public L3DObject findObject(L3DObject previousObject,
                              int nFindCriteria)
Finds an object NYA.
Parameters:
fX - new x Position
previousObject - Start search from this object
nFindCriteria - Criteria for searching nFindCriteria Can be SELECTEDOBJECTS/ALLOBJECTS/SHAPEOBJECTS etc...
 o save
  public int save(String strStream)
Stream out this scene to the supplied String class NYA.
Parameters:
strStream - String to stream out to

All Packages  Class Hierarchy  This Package  Previous  Next  Index