net.dzzd
Class DzzD

java.lang.Object
  extended bynet.dzzd.DzzD

public class DzzD
extends java.lang.Object

Main 3DzzD API classes.

Overview:

This class include methods to create 3DzzD API objects and all constants used in 3DzzD API.

You may use this class to create new 3DzzD API objects :
- Scene3DObject(Mesh,Camera,etc..)
- SceneObject(Material,Texture,etc..)
- Others(Face3D,Point3D,etc..)
etc..

Since:
1.0
Version:
1.0, 01/01/04
Author:
Bruno Augier
See Also:
DzzDApplet, DzzDJSApplet

Field Summary
static int BG_COLOR
          Render3D background mode : Background use a solid color.
static int BG_TEXTURE
          Render3D background mode : Background use a texture.
static int BG_TRANSPARENT
          Render3D background mode : Background is invisible.
static java.lang.String extensionBaseURL
          Jogl native source URL
static int P4D_COSIN
          Track3D interpolation key mode : cosin interpolation.
static int P4D_CUBIC
          Track3D interpolation key mode : cubic interpolation.
static int P4D_LINEAR
          Track3D interpolation key mode : linear interpolation.
static int P4D_NONE
          Track3D interpolation key mode : no interpolation.
static int PR_STATE_INIT
          Progress state : initialising/initialised.
static int PR_STATE_LOAD
          Progress state : loading/loaded.
static int PR_STATE_UNKNOW
          Progress state : unknow or not initialised.
static int RM_ALL
          Render mode : enable/disable all.
static int RM_DETAIL_TEXTURE
          Render mode : enable/disable detail textures.
static int RM_FOG
          Render mode : enable/disable fog
static int RM_LIGHT
          Render mode : enable/disable lighting.
static int RM_LIGHT_FLAT
          Render mode : enable/disable lighting.
static int RM_MATERIAL
          Render mode : enable/disable materials.
static int RM_TEXTURE_BILINEAR
          Render mode : enable/disable bilinear filtering.
static int RM_TEXTURE_BUMP
          Render mode : enable/disable bump texture.
static int RM_TEXTURE_DIFF
          Render mode : enable/disable diffuse texture.
static int RM_TEXTURE_ENV
          Render mode : enable/disable env texture.
static int RM_TEXTURE_MIPMAP
          Render mode : enable/disable textures mipmap.
static int TT_ARGB
          Texture type : type ARGB
static int TT_ENV
          Texture type : type NORMAL RGB represent environment texture
static int TT_HNORMAL
          Texture type : type NORMAL RGB represent normal of the surface and A height
static int TT_NORMAL
          Texture type : type NORMAL RGB represent normal of the surface
static int TT_RGB
          Texture type : type RGB
static int TXT_STRETCH
          Texture drawing mode : texture must be stretched.
static int TXT_TILE
          Texture drawing mode : texture must be tiled (repeat by x and y).
 
Method Summary
static IAxis3D newAxis3D()
          Allocate an return a new Axis3D.
static ICamera3D newCamera3D()
          Allocate an return a new Camera3D.
static IDirectInput newDirectInput(java.awt.Component component)
          Allocate an return a new DirectInput for the given component.
static IFace3D newFace3D()
          Allocate an return a new Face3D.
static IFace3D newFace3D(IVertex3D v1, IVertex3D v2, IVertex3D v3)
          Allocate an return a new Face3D.
static IFont2D newFont2DFromURL(java.lang.String baseURL, java.lang.String fileName)
          Allocate,load and return a new Font2D
static IHeightMap3D newHeightMap3D(int minLevel, int maxLevel)
          Allocate an return a new HeightMap3D.
static ILight3D newLight3D()
          Allocate an return a new Light3D.
static IMappingUV newMappingUV()
          Allocate an return a new MappingUV.
static IMaterial newMaterial()
          Allocate an return a new Material.
static IMesh3D newMesh3D()
          Allocate an return a new Mesh3D.
static IMesh3D newMesh3D(IVertex3D[] vertice, IFace3D[] faces)
          Allocate an return a new Mesh3D.
static IPoint3D newPoint3D()
          Allocate an return a new Point3D.
static IRender2D newRender2D(java.lang.Class c, java.lang.String implementationName, IProgressListener pl)
           
static IRender3D newRender3D(java.lang.Class c, java.lang.String implementationName, IProgressListener pl)
          Allocate an return a new Render3D using the specified implementation.
static IScene2D newScene2D()
          Allocate and return a new Scene2D
static IScene3D newScene3D()
          Allocate an return a new Scene3D.
static IScene3DLoader newScene3DLoader()
          Allocate an return a new Scene3DLoader
static IScene3DObjectAnimator newScene3DObjectAnimator()
          Allocate an return a new Scene3DObjectAnimator.
static IScene3DRender newScene3DRender()
          Allocate an return a new Scene3DRender.
static IShape2D newShape2D()
          Allocate and return a new Shape2D
static ISolidSphere3D newSolidSphere3D()
          Allocate an return a new SolidSphere3D.
static ISolidSphere3DResult newSolidSphere3DResult()
          Allocate an return a new SolidSphere3DResult.
static ITimer newTimer()
          Allocate and return a new Timer
static ITrack3D newTrack3D()
          Allocate an return a new Track3D.
static IURLHeightMap newURLHeightMap()
          Allocate an return a new URLHeightMap.
static IURLTexture newURLTexture()
          Allocate an return a new URLTexture.
static IVertex3D newVertex3D()
          Allocate an return a new Vertex3D.
static void sleep(long ms)
          Pause current thread for given millisecond time
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TXT_STRETCH

public static final int TXT_STRETCH
Texture drawing mode : texture must be stretched.

See Also:
Constant Field Values

TXT_TILE

public static final int TXT_TILE
Texture drawing mode : texture must be tiled (repeat by x and y).

See Also:
Constant Field Values

BG_TRANSPARENT

public static final int BG_TRANSPARENT
Render3D background mode : Background is invisible.

See Also:
Constant Field Values

BG_COLOR

public static final int BG_COLOR
Render3D background mode : Background use a solid color.

See Also:
Constant Field Values

BG_TEXTURE

public static final int BG_TEXTURE
Render3D background mode : Background use a texture.

See Also:
Constant Field Values

PR_STATE_UNKNOW

public static final int PR_STATE_UNKNOW
Progress state : unknow or not initialised.

See Also:
Constant Field Values

PR_STATE_INIT

public static final int PR_STATE_INIT
Progress state : initialising/initialised.

See Also:
Constant Field Values

PR_STATE_LOAD

public static final int PR_STATE_LOAD
Progress state : loading/loaded.

See Also:
Constant Field Values

P4D_NONE

public static final int P4D_NONE
Track3D interpolation key mode : no interpolation.

See Also:
Constant Field Values

P4D_LINEAR

public static final int P4D_LINEAR
Track3D interpolation key mode : linear interpolation.

See Also:
Constant Field Values

P4D_COSIN

public static final int P4D_COSIN
Track3D interpolation key mode : cosin interpolation.

See Also:
Constant Field Values

P4D_CUBIC

public static final int P4D_CUBIC
Track3D interpolation key mode : cubic interpolation.

See Also:
Constant Field Values

RM_LIGHT

public static final int RM_LIGHT
Render mode : enable/disable lighting.

See Also:
Constant Field Values

RM_MATERIAL

public static final int RM_MATERIAL
Render mode : enable/disable materials.

See Also:
Constant Field Values

RM_TEXTURE_DIFF

public static final int RM_TEXTURE_DIFF
Render mode : enable/disable diffuse texture.

See Also:
Constant Field Values

RM_TEXTURE_MIPMAP

public static final int RM_TEXTURE_MIPMAP
Render mode : enable/disable textures mipmap.

See Also:
Constant Field Values

RM_TEXTURE_BILINEAR

public static final int RM_TEXTURE_BILINEAR
Render mode : enable/disable bilinear filtering.

See Also:
Constant Field Values

RM_DETAIL_TEXTURE

public static final int RM_DETAIL_TEXTURE
Render mode : enable/disable detail textures.

See Also:
Constant Field Values

RM_LIGHT_FLAT

public static final int RM_LIGHT_FLAT
Render mode : enable/disable lighting.

See Also:
Constant Field Values

RM_TEXTURE_BUMP

public static final int RM_TEXTURE_BUMP
Render mode : enable/disable bump texture.

See Also:
Constant Field Values

RM_TEXTURE_ENV

public static final int RM_TEXTURE_ENV
Render mode : enable/disable env texture.

See Also:
Constant Field Values

RM_FOG

public static final int RM_FOG
Render mode : enable/disable fog

See Also:
Constant Field Values

RM_ALL

public static final int RM_ALL
Render mode : enable/disable all.

See Also:
Constant Field Values

TT_RGB

public static final int TT_RGB
Texture type : type RGB

See Also:
Constant Field Values

TT_ARGB

public static final int TT_ARGB
Texture type : type ARGB

See Also:
Constant Field Values

TT_NORMAL

public static final int TT_NORMAL
Texture type : type NORMAL RGB represent normal of the surface

See Also:
Constant Field Values

TT_HNORMAL

public static final int TT_HNORMAL
Texture type : type NORMAL RGB represent normal of the surface and A height

See Also:
Constant Field Values

TT_ENV

public static final int TT_ENV
Texture type : type NORMAL RGB represent environment texture

See Also:
Constant Field Values

extensionBaseURL

public static java.lang.String extensionBaseURL
Jogl native source URL

Method Detail

newRender3D

public static IRender3D newRender3D(java.lang.Class c,
                                    java.lang.String implementationName,
                                    IProgressListener pl)
Allocate an return a new Render3D using the specified implementation. For now only predefined implementation name are allowed:
newRender3D("SOFT") : return the internal software renderer
newRender3D("JOGL") : return the internal JOGL hardware renderer

if requested renderer is not available the internal software renderer is returned

Parameters:
implementationName - name of the implementation
Returns:
newly allocated Render3D
Since:
1.0

newRender2D

public static IRender2D newRender2D(java.lang.Class c,
                                    java.lang.String implementationName,
                                    IProgressListener pl)

newURLTexture

public static IURLTexture newURLTexture()
Allocate an return a new URLTexture.

Returns:
newly allocated URLTexture
Since:
1.0

newMaterial

public static IMaterial newMaterial()
Allocate an return a new Material.

Returns:
newly allocated Material
Since:
1.0

newMappingUV

public static IMappingUV newMappingUV()
Allocate an return a new MappingUV.

Returns:
newly allocated MappingUV
Since:
1.0

newMesh3D

public static IMesh3D newMesh3D()
Allocate an return a new Mesh3D.

Returns:
newly allocated Mesh3D
Since:
1.0

newMesh3D

public static IMesh3D newMesh3D(IVertex3D[] vertice,
                                IFace3D[] faces)
Allocate an return a new Mesh3D.

Parameters:
vertice - Vertex3D array
faces - Face3D array
Returns:
newly allocated Mesh3D
Since:
1.0

newLight3D

public static ILight3D newLight3D()
Allocate an return a new Light3D.

Returns:
newly allocated Light3D
Since:
1.0

newCamera3D

public static ICamera3D newCamera3D()
Allocate an return a new Camera3D.

Returns:
newly allocated Camera3D
Since:
1.0

newFace3D

public static IFace3D newFace3D()
Allocate an return a new Face3D.

Returns:
newly allocated Face3D
Since:
1.0

newFace3D

public static IFace3D newFace3D(IVertex3D v1,
                                IVertex3D v2,
                                IVertex3D v3)
Allocate an return a new Face3D.

Parameters:
v1 - vertex 1
v2 - vertex 2
v3 - vertex 3
Returns:
newly allocated Face3D
Since:
1.0

newPoint3D

public static IPoint3D newPoint3D()
Allocate an return a new Point3D.

Returns:
newly allocated Point3D
Since:
1.0

newVertex3D

public static IVertex3D newVertex3D()
Allocate an return a new Vertex3D.

Returns:
newly allocated Vertex3D
Since:
1.0

newSolidSphere3D

public static ISolidSphere3D newSolidSphere3D()
Allocate an return a new SolidSphere3D.

Returns:
newly allocated SolidSphere3D
Since:
1.0

newSolidSphere3DResult

public static ISolidSphere3DResult newSolidSphere3DResult()
Allocate an return a new SolidSphere3DResult.

Returns:
newly allocated SolidSphere3DResult
Since:
1.0

newTrack3D

public static ITrack3D newTrack3D()
Allocate an return a new Track3D.

Returns:
newly allocated Track3D
Since:
1.0

newAxis3D

public static IAxis3D newAxis3D()
Allocate an return a new Axis3D.

Returns:
newly allocated Axis3D
Since:
1.0

newScene3DRender

public static IScene3DRender newScene3DRender()
Allocate an return a new Scene3DRender.

Returns:
newly allocated Scene3DRender
Since:
1.0

newScene3D

public static IScene3D newScene3D()
Allocate an return a new Scene3D.

Returns:
newly allocated Scene3D
Since:
1.0

newDirectInput

public static IDirectInput newDirectInput(java.awt.Component component)
Allocate an return a new DirectInput for the given component.

Parameters:
component - component to use for this directInput source
Returns:
newly allocated DirectInput
Since:
1.0

newScene3DObjectAnimator

public static IScene3DObjectAnimator newScene3DObjectAnimator()
Allocate an return a new Scene3DObjectAnimator.

Returns:
newly allocated Scene3DObjectAnimator
Since:
1.0

newHeightMap3D

public static IHeightMap3D newHeightMap3D(int minLevel,
                                          int maxLevel)
Allocate an return a new HeightMap3D.

Parameters:
minLevel - minimum tesselation level
maxLevel - maximum tesselation level
Returns:
newly allocated HeightMap3D
Since:
1.0

newURLHeightMap

public static IURLHeightMap newURLHeightMap()
Allocate an return a new URLHeightMap.

Returns:
newly allocated URLHeightMap
Since:
1.0

newScene3DLoader

public static IScene3DLoader newScene3DLoader()
Allocate an return a new Scene3DLoader

Returns:
newly allocated Scene3DLoader
Since:
1.0

newFont2DFromURL

public static IFont2D newFont2DFromURL(java.lang.String baseURL,
                                       java.lang.String fileName)
Allocate,load and return a new Font2D

Parameters:
baseURL - URL location of the Font2D file
fileName - Font2D file name
Returns:
newly allocated Font2D
Since:
1.0

newShape2D

public static IShape2D newShape2D()
Allocate and return a new Shape2D

Returns:
newly allocated Shape2D
Since:
1.0

newScene2D

public static IScene2D newScene2D()
Allocate and return a new Scene2D

Returns:
newly allocated Scene2D
Since:
1.0

newTimer

public static ITimer newTimer()
Allocate and return a new Timer

Returns:
newly allocated Timer
Since:
1.0

sleep

public static void sleep(long ms)
Pause current thread for given millisecond time

Parameters:
ms - time to pause current thread in ms
Since:
1.0