|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.loaders.discreet.ObjectMesh
public class ObjectMesh
Representation of a complete set of meshes to give a single object from the file.
A mesh consists of a collection of chunks. Each chunk contains different information, such as vertices, materials etc.
Field Summary | |
---|---|
float[] |
ambientLight
Ambient light setting. |
java.lang.String |
backgroundBitmap
The name of the bitmap to use for the background, if set |
float |
backgroundMidpoint
Percentage location of the mid point, [0,1] |
ObjectBlock[] |
blocks
Listing of all the sub-objects in the mesh |
float[] |
distanceFogDetails
Details of a distance-cued fog instruction. |
boolean |
fogBackground
Flag to indicate that the background should also be fogged |
float[] |
fogColor
Colour of the fog, if needed. |
float[][] |
gradientBackgroundColors
Colours of the gradient background. |
KeyframeBlock[] |
keyframes
Listing of all keyframe blocks available |
float[] |
layerFogDetails
Details of a vertically layered constant atmospheric fog. layerFogDetails[0] lower Y boundary layerFogDetails[1] upper Y boundary layerFogDetails[2] fog density. |
int |
layerFogFlags
Flags associated with the layered fog. |
float[] |
linearFogDetails
Details of a basic global fog instruction. |
float |
masterScale
The master (uniform) scale to apply to all the objects |
MaterialBlock[] |
materials
Listing of all material information |
int |
meshVersion
The version of the mesh that was read |
int |
numBlocks
Number of valid blocks available |
int |
numKeyframes
The number of valid keyframe blocks available |
int |
numMaterials
The number of valid materials available |
int |
selectedBackground
Flag which of the 3 background structures should be used |
int |
selectedFog
Flag which of the 3 fog structures should be used |
float[] |
solidBackgroundColor
Colours of the background. |
static int |
USE_BITMAP
Flag instructing use of the bitmap background |
static int |
USE_DISTANCE_FOG
Flag instructing use of the solid colour fog |
static int |
USE_GRADIENT
Flag instructing use of the gradient background |
static int |
USE_LAYER_FOG
Flag instructing use of the gradient fog |
static int |
USE_LINEAR_FOG
Flag instructing use of the bitmap fog |
static int |
USE_SOLID_BG
Flag instructing use of the solid colour background |
Constructor Summary | |
---|---|
ObjectMesh()
Construct a new instance with blocks initialised to a size of 8. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int USE_BITMAP
public static final int USE_GRADIENT
public static final int USE_SOLID_BG
public static final int USE_LINEAR_FOG
public static final int USE_LAYER_FOG
public static final int USE_DISTANCE_FOG
public float masterScale
public int meshVersion
public ObjectBlock[] blocks
public int numBlocks
public MaterialBlock[] materials
public int numMaterials
public KeyframeBlock[] keyframes
public int numKeyframes
public float[] ambientLight
public int selectedBackground
public java.lang.String backgroundBitmap
public float[] solidBackgroundColor
public float[][] gradientBackgroundColors
public float backgroundMidpoint
public float[] linearFogDetails
public float[] fogColor
public boolean fogBackground
public float[] layerFogDetails
public int layerFogFlags
public float[] distanceFogDetails
public int selectedFog
Constructor Detail |
---|
public ObjectMesh()
|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |