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.
-
BOOL_FALSE
-
-
BOOL_TRUE
- Boolean variables
-
CONTINUEPROCESSING_OFF
- Continue Processing variables
-
CONTINUEPROCESSING_ON
-
-
DRAW_POINTCLOUD
-
-
DRAW_SOLID
-
-
DRAW_WIREFRAME
- Draw Mode variables
-
NAVIGATE_FLY
-
-
NAVIGATE_LOOK
-
-
NAVIGATE_POINT
-
-
NAVIGATE_SLIDE
-
-
NAVIGATE_SPIN
-
-
NAVIGATE_WALK
- Navigation Mode variables
-
SEARCHCRITERIA_ALLOBJECTS
- FindObject Search Criteria variables
-
SEARCHCRITERIA_CHILDOBJECTS
-
-
SEARCHCRITERIA_PARENTOBJECT
-
-
SEARCHCRITERIA_SELECTEDOBJECTS
-
-
SEARCHCRITERIA_SHAPEOBJECTS
-
-
SHADE_FLAT
-
-
SHADE_SMOOTH
- Shading Mode variables
-
L3DScene()
-
-
addCone(float, float, int)
- Creates a new cone object
GOOD.
-
addCube(float, float, float)
- Creates a new cube object
NYA.
-
addCylinder(float, float, float, int)
- Creates a new cylinder object
NYA.
-
addDisc(float, float, int)
- Creates a new disc object
NYA.
-
addLight(int, float[], float[], float[], float, float, float, float)
- Add a light to the current scene
NYA.
-
addSphere(float, int)
- Creates a new sphere object
NYA.
-
addSprite(String)
- Creates a new sprite object
NYA.
-
addURL(String, String, float, float, float, float, float, float)
- Add the URL to the scene
AVAIL.
-
addVRML(String, String, float, float, float, float, float, float)
- Add a VRML object to the current scene
GOOD.
-
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.
-
advise(L3DObserver, L3DObject, String)
- Advise for an event
GOOD.
-
animateToViewpoint(float, float, float)
- Animates to the defined viewpoint
NYA.
-
decreaseLightIntensity()
- Decreases the light intensity one point
GOOD.
-
deleteObject(L3DObject)
- Deletes an object from the scene
AVAIL.
-
findObject(L3DObject, int)
- Finds an object
NYA.
-
getAnimationMode()
- Get the current Animation mode for the scene
GOOD.
-
getBackdropImage(String)
- Returns a background image for the VRML scene
NYA.
-
getBackgroundColor(float[])
- Gets background color (RGB)
NYA.
-
getBankingMode()
- Get the current banking mode for the scene
GOOD.
-
getCameraFarClipping()
- Gets the camera Far Clipping value
AVAIL.
-
getCameraImage(int[])
- Gets the current camera image
NYA.
-
getCameraNearClipping()
- Gets the camera Near Clipping value
AVAIL.
-
getCameraOrientation(float[])
- Gets the current camera rotation
AVAIL.
-
getCameraPosition(float[])
- Gets the current camera position
AVAIL.
-
getCameraTransform(float[])
- Retrieves current matrix transform on camera
AVAIL.
-
getCameraView(float[])
- Gets the camera view
NYA.
-
getCollisionDetectionMode()
- Get the current collision detection mode for the scene
GOOD.
-
getFastrenderMode()
- Get the current Fast Render mode for the scene
GOOD.
-
getFogColor()
- Set the fog color in the scene
NYA.
-
getFogDistance()
- Get the fog distance setting in the scene
NYA.
-
getFogState()
- Get the fog state in the scene
NYA.
-
getFrameRate()
- Get the current rendering frame rate
NYA.
-
getGravityMode()
- Get the current Gravity mode for the scene
AVAIL.
-
getHeadlightState()
- Get the current Headlight mode for the scene
GOOD.
-
getLightIntensity()
- Get the Scene's HeadLight intensity
GOOD.
-
getMotionBlurMode()
- Get the current Motion Blur mode for the scene
GOOD.
-
getNavigationMode()
- Get the navigation mode for the scene
NYA.
-
getNumLights()
- Get the number of lights in the current scene
NYA.
-
getNumShape()
- Get the number of shapes in the current scene
NYA.
-
getObject(String)
- Retrieve an L3DObject from a scene object
GOOD.
-
getRoot()
- Retrieves the top level object of the scene
AVAIL.
-
getSceneTextureLightingMode()
- Get the Texture Lighting Mode for the scene
AVAIL.
-
getSceneURL(String)
- Get's this scene's URL
GOOD.
-
getStayOnGroundMode()
- Get the current Stay on Ground mode for the scene
GOOD.
-
getStereoMode()
- Get the current Stereo Mode mode for the scene
NYA.
-
getToolbarState()
- Get the Toolbar state
NYA.
-
getWireframeMode()
- Get the current Wireframe mode for the scene
AVAIL.
-
gotoCurrentViewpoint()
- Return to current viewpoint
NYA.
-
gotoNextViewpoint()
- Go to next viewpoint
NYA.
-
gotoPreviousViewpoint()
- Return to previous viewpoint
NYA.
-
gotoViewpoint(String, int)
- Travel to named viewpoint
AVAIL.
-
increaseLightIntensity()
- Increase the light intensity one point
GOOD.
-
loadAmbientSound(String)
- Loads a sound file (.wav) into the scene
NYA.
-
loadSceneURL(String)
- Replaces the current VRML scene with the identified scene
GOOD.
-
loadSceneVRML(String)
- Replaces the current VRML scene with the identified VRML code
NYA.
-
moveCamera(float, float, float)
- Moves the camera to a new position
AVAIL.
-
panCamera(float)
- Pan Camera
AVAIL.
-
pick(int, int)
- Identifies object at a given location
NYA.
-
playAmbientSound(int)
- Plays a loaded sound file
NYA.
-
reParent(L3DObject, L3DObject)
- Gives an L3DObject a new parent
NYA.
-
render()
- Forces scene render
GOOD.
-
requestRender()
- Places scene render request in queue
GOOD.
-
revolveCamera(float)
- Revolve Camera
AVAIL.
-
save(String)
- Stream out this scene to the supplied String class
NYA.
-
setAnimationMode(int)
- Set the Animation mode for the scene
GOOD.
-
setBackdropImage(String)
- Sets background image
GOOD.
-
setBackgroundColor(float, float, float)
- Sets background color (RGB)
GOOD.
-
setBankingMode(int)
- Set the banking mode for the scene
GOOD.
-
setCameraFarClipping(float)
- Sets the camera Far Clipping value
AVAIL.
-
setCameraNearClipping(float)
- Sets the camera Near Clipping value
AVAIL.
-
setCameraOrientation(float, float, float)
- Rotates the camera to a new position
AVAIL.
-
setCameraPosition(float, float, float)
- Sets the camera to a new position
AVAIL.
-
setCameraTransform(float[])
- Applies matrix transform to camera
AVAIL.
-
setCameraView(float, float, float, float, float, float, float, float, float)
- Sets the camera view
AVAIL.
-
setCollisionDetectionMode(int)
- Set the collision detection mode for the scene
GOOD.
-
setFastrenderMode(int)
- Set the Fast Render mode for the scene
GOOD.
-
setFogColor(float, float, float)
- Set the fog color in the scene
NYA.
-
setFogDistance(float)
- Set the fog distance in the scene
NYA.
-
setFogState(int)
- Set the fog state in the scene
NYA.
-
setGravityMode(int)
- Set the Gravity mode for the scene
AVAIL.
-
setHeadlightState(int)
- Set the Headlight mode for the scene
GOOD.
-
setLightIntensity(float)
- Set the Scene's HeadLight intensity
GOOD.
-
setMotionBlurMode(int)
- Set the Motion Blur mode for the scene
GOOD.
-
setNavigationMode(int)
- Set the navigation mode for the scene
NYA.
-
setSceneTextureLightingMode(int)
- Set the Texture Lighting mode for the scene
AVAIL.
-
setStayOnGroundMode(int)
- Set the Stay on Ground mode for the scene
GOOD.
-
setStereoMode(int)
- Set the Stereo Mode mode for the scene
NYA.
-
setToolbarState(int)
- Set the Toolbar state
NYA.
-
setWireframeMode(int)
- Set the Wireframe mode for the scene
AVAIL.
-
stopAmbientSound()
- Stops a playing sound
NYA.
-
tiltCamera(float)
- Tilt Camera
AVAIL.
BOOL_TRUE
public final static int BOOL_TRUE
- Boolean variables
BOOL_FALSE
public final static int BOOL_FALSE
NAVIGATE_WALK
public final static int NAVIGATE_WALK
- Navigation Mode variables
NAVIGATE_SPIN
public final static int NAVIGATE_SPIN
NAVIGATE_LOOK
public final static int NAVIGATE_LOOK
NAVIGATE_SLIDE
public final static int NAVIGATE_SLIDE
NAVIGATE_FLY
public final static int NAVIGATE_FLY
NAVIGATE_POINT
public final static int NAVIGATE_POINT
DRAW_SOLID
public final static int DRAW_SOLID
DRAW_WIREFRAME
public final static int DRAW_WIREFRAME
- Draw Mode variables
DRAW_POINTCLOUD
public final static int DRAW_POINTCLOUD
SHADE_FLAT
public final static int SHADE_FLAT
SHADE_SMOOTH
public final static int SHADE_SMOOTH
- Shading Mode variables
SEARCHCRITERIA_ALLOBJECTS
public final static int SEARCHCRITERIA_ALLOBJECTS
- FindObject Search Criteria variables
SEARCHCRITERIA_PARENTOBJECT
public final static int SEARCHCRITERIA_PARENTOBJECT
SEARCHCRITERIA_CHILDOBJECTS
public final static int SEARCHCRITERIA_CHILDOBJECTS
SEARCHCRITERIA_SHAPEOBJECTS
public final static int SEARCHCRITERIA_SHAPEOBJECTS
SEARCHCRITERIA_SELECTEDOBJECTS
public final static int SEARCHCRITERIA_SELECTEDOBJECTS
CONTINUEPROCESSING_OFF
public final static int CONTINUEPROCESSING_OFF
- Continue Processing variables
CONTINUEPROCESSING_ON
public final static int CONTINUEPROCESSING_ON
L3DScene
public L3DScene()
advise
public int advise(L3DObserver observer,
L3DObject object,
String szEvent)
- Advise for an event
GOOD.
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)
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
setBackdropImage
public int setBackdropImage(String strURL)
- Sets background image
GOOD.
- Parameters:
- strURL - URL and name of background image
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
render
public int render()
- Forces scene render
GOOD.
requestRender
public int requestRender()
- Places scene render request in queue
GOOD.
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
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
getSceneURL
public int getSceneURL(String strURL)
- Get's this scene's URL
GOOD.
- Parameters:
- strURL - The URL representing this scene
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
playAmbientSound
public int playAmbientSound(int bLoop)
- Plays a loaded sound file
NYA.
- Parameters:
- bLoop - Integer value to play once or loop
stopAmbientSound
public int stopAmbientSound()
- Stops a playing sound
NYA.
getFrameRate
public int getFrameRate()
- Get the current rendering frame rate
NYA.
- Returns:
- Integer value of current frame rate
getNumShape
public int getNumShape()
- Get the number of shapes in the current scene
NYA.
- Returns:
- Integer value of number of shapes
getNumLights
public int getNumLights()
- Get the number of lights in the current scene
NYA.
- Returns:
- Integer value of number of lights
setFogDistance
public int setFogDistance(float fDist)
- Set the fog distance in the scene
NYA.
- Parameters:
- fDist - The fog distance value
setFogState
public int setFogState(int nState)
- Set the fog state in the scene
NYA.
- Parameters:
- fDist - The fog state value
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)
getFogDistance
public float getFogDistance()
- Get the fog distance setting in the scene
NYA.
- Returns:
- The fog distance value
getFogState
public int getFogState()
- Get the fog state in the scene
NYA.
- Returns:
- fDist The fog state value
getFogColor
public float[] getFogColor()
- Set the fog color in the scene
NYA.
- Returns:
- 3-part float array (r,g,b)
getNavigationMode
public int getNavigationMode()
- Get the navigation mode for the scene
NYA.
- Returns:
- nNavigationMode (walk, fly, slide, point)
setNavigationMode
public int setNavigationMode(int nNavigationMode)
- Set the navigation mode for the scene
NYA.
- Parameters:
- nNavigationMode - (walk, fly, slide, point)
getToolbarState
public int getToolbarState()
- Get the Toolbar state
NYA.
- Returns:
- nToolbarState (on, off, insane)
setToolbarState
public int setToolbarState(int nToolbarState)
- Set the Toolbar state
NYA.
- Parameters:
- nToolbarState - (on, off, insane)
setCollisionDetectionMode
public int setCollisionDetectionMode(int nCollisionDetectionMode)
- Set the collision detection mode for the scene
GOOD.
- Parameters:
- nCollisionDetectionMode - set value on/off
getCollisionDetectionMode
public int getCollisionDetectionMode()
- Get the current collision detection mode for the scene
GOOD.
- Returns:
- Integer of on/off value
setBankingMode
public int setBankingMode(int nBankingMode)
- Set the banking mode for the scene
GOOD.
- Parameters:
- nBankingMode - set value on/off
getBankingMode
public int getBankingMode()
- Get the current banking mode for the scene
GOOD.
- Returns:
- Integer of on/off value
setStayOnGroundMode
public int setStayOnGroundMode(int nStayOnGroundMode)
- Set the Stay on Ground mode for the scene
GOOD.
- Parameters:
- nStayOnGroundMode - set value on/off
getStayOnGroundMode
public int getStayOnGroundMode()
- Get the current Stay on Ground mode for the scene
GOOD.
- Returns:
- Integer of on/off value
setHeadlightState
public int setHeadlightState(int nHeadlightState)
- Set the Headlight mode for the scene
GOOD.
- Parameters:
- nHeadlightState - set value on/off
getHeadlightState
public int getHeadlightState()
- Get the current Headlight mode for the scene
GOOD.
- Returns:
- Integer of on/off value
increaseLightIntensity
public int increaseLightIntensity()
- Increase the light intensity one point
GOOD.
decreaseLightIntensity
public int decreaseLightIntensity()
- Decreases the light intensity one point
GOOD.
setLightIntensity
public int setLightIntensity(float fIntensity)
- Set the Scene's HeadLight intensity
GOOD.
- Parameters:
- fIntensity - from 0.0 to 1.0
getLightIntensity
public float getLightIntensity()
- Get the Scene's HeadLight intensity
GOOD.
- Returns:
- float from 0.0 to 1.0
setFastrenderMode
public int setFastrenderMode(int nMode)
- Set the Fast Render mode for the scene
GOOD.
- Parameters:
- nMode - set value on/off
getFastrenderMode
public int getFastrenderMode()
- Get the current Fast Render mode for the scene
GOOD.
- Returns:
- Integer of on/off value
setSceneTextureLightingMode
public int setSceneTextureLightingMode(int nMode)
- Set the Texture Lighting mode for the scene
AVAIL.
- Parameters:
- nMode - set value on/off
getSceneTextureLightingMode
public int getSceneTextureLightingMode()
- Get the Texture Lighting Mode for the scene
AVAIL.
- Returns:
- Integer of on/off value
setGravityMode
public int setGravityMode(int nMode)
- Set the Gravity mode for the scene
AVAIL.
- Parameters:
- nMode - set value on/off
getGravityMode
public int getGravityMode()
- Get the current Gravity mode for the scene
AVAIL.
- Returns:
- Integer of on/off value
setWireframeMode
public int setWireframeMode(int nMode)
- Set the Wireframe mode for the scene
AVAIL.
- Parameters:
- nMode - set value on/off
getWireframeMode
public int getWireframeMode()
- Get the current Wireframe mode for the scene
AVAIL.
- Returns:
- Integer of on/off value
setMotionBlurMode
public int setMotionBlurMode(int nMode)
- Set the Motion Blur mode for the scene
GOOD.
- Parameters:
- nMode - set value on/off
getMotionBlurMode
public int getMotionBlurMode()
- Get the current Motion Blur mode for the scene
GOOD.
- Returns:
- Integer of on/off value
setStereoMode
public int setStereoMode(int nMode)
- Set the Stereo Mode mode for the scene
NYA.
- Parameters:
- nMode - set value on/off
getStereoMode
public int getStereoMode()
- Get the current Stereo Mode mode for the scene
NYA.
- Returns:
- Integer of on/off value
setAnimationMode
public int setAnimationMode(int nMode)
- Set the Animation mode for the scene
GOOD.
- Parameters:
- nMode - set value on/off
getAnimationMode
public int getAnimationMode()
- Get the current Animation mode for the scene
GOOD.
- Returns:
- Integer of on/off value
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)
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
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
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
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
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
deleteObject
public int deleteObject(L3DObject object)
- Deletes an object from the scene
AVAIL.
- Parameters:
- parent - L3DObject to delete
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
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
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
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
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
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
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
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
gotoViewpoint
public int gotoViewpoint(String strViewPoint,
int nAnimationSteps)
- Travel to named viewpoint
AVAIL.
- Parameters:
- strViewPoint - Name of viewpoint
- nAnimationSteps - Number of frames in move
gotoCurrentViewpoint
public int gotoCurrentViewpoint()
- Return to current viewpoint
NYA.
gotoPreviousViewpoint
public int gotoPreviousViewpoint()
- Return to previous viewpoint
NYA.
gotoNextViewpoint
public int gotoNextViewpoint()
- Go to next viewpoint
NYA.
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
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
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
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
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
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
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
getCameraImage
public int getCameraImage(int image[])
- Gets the current camera image
NYA.
UNDER CONSTRUCTION
setCameraNearClipping
public int setCameraNearClipping(float fNearClipping)
- Sets the camera Near Clipping value
AVAIL.
- Parameters:
- fNearClipping - the new near clipping value
getCameraNearClipping
public float getCameraNearClipping()
- Gets the camera Near Clipping value
AVAIL.
- Returns:
- float of the near clipping value
setCameraFarClipping
public int setCameraFarClipping(float fFarClipping)
- Sets the camera Far Clipping value
AVAIL.
- Parameters:
- fFarClipping - the new near clipping value
getCameraFarClipping
public float getCameraFarClipping()
- Gets the camera Far Clipping value
AVAIL.
- Returns:
- float of the far clipping value
setCameraTransform
public int setCameraTransform(float fMatrix[])
- Applies matrix transform to camera
AVAIL.
- Parameters:
- fMatrix - 16-part array holding new camera matrix
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
panCamera
public int panCamera(float fAngle)
- Pan Camera
AVAIL.
- Parameters:
- fAngle - angle value of pan
tiltCamera
public int tiltCamera(float fAngle)
- Tilt Camera
AVAIL.
- Parameters:
- fAngle - angle value of tilt
revolveCamera
public int revolveCamera(float fAngle)
- Revolve Camera
AVAIL.
- Parameters:
- fAngle - angle value of revolution
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
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...
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