|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.scenegraph.SceneGraphObject
org.xith3d.scenegraph.Node
org.xith3d.scenegraph.Leaf
org.xith3d.scenegraph.Shape3D
org.xith3d.scenegraph.primitives.Box
public class Box
This primitive Shape represents a simple 3D-box.
| Field Summary |
|---|
| Fields inherited from class org.xith3d.scenegraph.Node |
|---|
bounds, boundsAutoCompute, boundsDirty, globalIgnoreBounds, instanceBoundsTypeHint, transformGroup, untransformedBounds |
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Constructor Summary | |
|---|---|
Box(float sizeX,
float sizeY,
float sizeZ,
Appearance app)
Creates a Box centered at the origin with the given Appearance. |
|
Box(float sizeX,
float sizeY,
float sizeZ,
org.openmali.vecmath2.Colorf color)
Creates a Box centered at the origin with the given color. |
|
Box(float offsetX,
float offsetY,
float offsetZ,
float sizeX,
float sizeY,
float sizeZ,
Appearance app)
Creates a Box centered at the given offset with the given Appearance. |
|
Box(float offsetX,
float offsetY,
float offsetZ,
float sizeX,
float sizeY,
float sizeZ,
org.openmali.vecmath2.Colorf color)
Creates a Box centered at the given offset with the given color. |
|
Box(float offsetX,
float offsetY,
float offsetZ,
float sizeX,
float sizeY,
float sizeZ,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a Box centered at the given offset. |
|
Box(float offsetX,
float offsetY,
float offsetZ,
float sizeX,
float sizeY,
float sizeZ,
java.lang.String texture)
Creates a Box centered at the given offset with the given texture. |
|
Box(float offsetX,
float offsetY,
float offsetZ,
float sizeX,
float sizeY,
float sizeZ,
Texture texture)
Creates a Box centered at the given offset with the given texture. |
|
Box(float sizeX,
float sizeY,
float sizeZ,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a Box centered at the origin. |
|
Box(float sizeX,
float sizeY,
float sizeZ,
java.lang.String texture)
Creates a Box centered at the origin with the given texture. |
|
Box(float sizeX,
float sizeY,
float sizeZ,
Texture texture)
Creates a Box centered at the origin with the given texture. |
|
Box(org.openmali.vecmath2.Tuple3f offset,
float sizeX,
float sizeY,
float sizeZ,
Appearance app)
Creates a Box centered at the given offset with the given Appearance. |
|
Box(org.openmali.vecmath2.Tuple3f offset,
float sizeX,
float sizeY,
float sizeZ,
org.openmali.vecmath2.Colorf color)
Creates a Box centered at the given offset with the given color. |
|
Box(org.openmali.vecmath2.Tuple3f offset,
float sizeX,
float sizeY,
float sizeZ,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a Box centered at the given offset. |
|
Box(org.openmali.vecmath2.Tuple3f offset,
float sizeX,
float sizeY,
float sizeZ,
java.lang.String texture)
Creates a Box centered at the given offset with the given texture. |
|
Box(org.openmali.vecmath2.Tuple3f offset,
float sizeX,
float sizeY,
float sizeZ,
Texture texture)
Creates a Box centered at the given offset with the given texture. |
|
| Method Summary | |
|---|---|
static Box |
createFromBoxBody(org.openmali.spatial.bodies.Box box,
Appearance app)
Creates a Box. |
static Box |
createFromBoxBody(org.openmali.spatial.bodies.Box box,
org.openmali.vecmath2.Colorf color)
Creates a Box. |
static Box |
createFromBoxBody(org.openmali.spatial.bodies.Box box,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a Box. |
static Box |
createFromBoxBody(org.openmali.spatial.bodies.Box box,
java.lang.String texture)
Creates a Box. |
static Box |
createFromBoxBody(org.openmali.spatial.bodies.Box box,
Texture texture)
Creates a Box. |
static Geometry |
createGeometry(float offsetX,
float offsetY,
float offsetZ,
float sizeX,
float sizeY,
float sizeZ,
int features,
boolean colorAlpha,
int texCoordsSize)
Create a Geometry. |
static Geometry |
createGeometry(float sizeX,
float sizeY,
float sizeZ,
int features,
boolean colorAlpha,
int texCoordsSize)
Create a Geometry. |
static GeometryConstruct |
createGeometryConstructTA(float offsetX,
float offsetY,
float offsetZ,
float sizeX,
float sizeY,
float sizeZ,
int features,
boolean colorAlpha,
int texCoordsSize)
Create a GeometryConstruct. |
static GeometryConstruct |
createGeometryConstructTA(float sizeX,
float sizeY,
float sizeZ,
int features,
boolean colorAlpha,
int texCoordsSize)
Create a GeometryConstruct. |
static TriangleArray |
createGeometryTA(float offsetX,
float offsetY,
float offsetZ,
float sizeX,
float sizeY,
float sizeZ,
int features,
boolean colorAlpha,
int texCoordsSize)
Create a TriangleArray. |
static GeometryType |
getGeometryConstructionTypeHint()
Returns the hint for this Shape's Geometry to be constructed of a certain type. |
static void |
setGeometryConstructionTypeHint(GeometryType hint)
Sets the hint for this Shape's Geometry to be constructed of a certain type. |
| Methods inherited from class org.xith3d.scenegraph.Shape3D |
|---|
absorbDetails, copy, freeOpenGLResources, getAppearance, getAppearance, getCustomComparable, getGeometry, isBumpMappingEnabled, isShadowReceiver, isVisible, newAppearance, newInstance, setAppearance, setBounds, setBumpMappingEnabled, setBumpMappingEnabled, setCustomComparable, setGeometry, setIsShadowReceiver, setModListener, setVisible, sharedCopy, sharedCopy, traverse, updateBounds, updateBoundsCheap, updateWorldTransform, verifyAppChange |
| Methods inherited from class org.xith3d.scenegraph.Leaf |
|---|
dump, getPickHost, setPickHost |
| Methods inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
getName, getUserData, getUserData, getUserDataMap, isLive, setLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Box(float offsetX,
float offsetY,
float offsetZ,
float sizeX,
float sizeY,
float sizeZ,
int features,
boolean colorAlpha,
int texCoordsSize)
Box centered at the given offset.
offsetX - the x-offset of the center of the boxoffsetY - the y-offset of the center of the boxoffsetZ - the z-offset of the center of the boxsizeX - the size of the box along the x-axissizeY - the size of the box along the y-axissizeZ - the size of the box along the z-axisfeatures - colorAlpha - texCoordsSize -
public Box(org.openmali.vecmath2.Tuple3f offset,
float sizeX,
float sizeY,
float sizeZ,
int features,
boolean colorAlpha,
int texCoordsSize)
Box centered at the given offset.
offset - the center of the boxsizeX - the size of the box along the x-axissizeY - the size of the box along the y-axissizeZ - the size of the box along the z-axisfeatures - colorAlpha - texCoordsSize -
public Box(float sizeX,
float sizeY,
float sizeZ,
int features,
boolean colorAlpha,
int texCoordsSize)
Box centered at the origin.
sizeX - the size of the box along the x-axissizeY - the size of the box along the y-axissizeZ - the size of the box along the z-axisfeatures - colorAlpha - texCoordsSize -
public Box(float offsetX,
float offsetY,
float offsetZ,
float sizeX,
float sizeY,
float sizeZ,
Texture texture)
Box centered at the given offset with the given texture.
offsetX - the x-offset of the center of the boxoffsetY - the y-offset of the center of the boxoffsetZ - the z-offset of the center of the boxsizeX - the size of the box along the x-axissizeY - the size of the box along the y-axissizeZ - the size of the box along the z-axistexture - the texture to useTexture
public Box(org.openmali.vecmath2.Tuple3f offset,
float sizeX,
float sizeY,
float sizeZ,
Texture texture)
Box centered at the given offset with the given texture.
offset - the center of the boxsizeX - the size of the box along the x-axissizeY - the size of the box along the y-axissizeZ - the size of the box along the z-axistexture - the texture to useTexture
public Box(float sizeX,
float sizeY,
float sizeZ,
Texture texture)
Box centered at the origin with the given texture.
sizeX - the size of the box along the x-axissizeY - the size of the box along the y-axissizeZ - the size of the box along the z-axistexture - the texture to useTexture
public Box(float offsetX,
float offsetY,
float offsetZ,
float sizeX,
float sizeY,
float sizeZ,
java.lang.String texture)
Box centered at the given offset with the given texture.
offsetX - the x-offset of the center of the boxoffsetY - the y-offset of the center of the boxoffsetZ - the z-offset of the center of the boxsizeX - the size of the box along the x-axissizeY - the size of the box along the y-axissizeZ - the size of the box along the z-axistexture - the texture to use
public Box(org.openmali.vecmath2.Tuple3f offset,
float sizeX,
float sizeY,
float sizeZ,
java.lang.String texture)
Box centered at the given offset with the given texture.
offset - the center of the boxsizeX - the size of the box along the x-axissizeY - the size of the box along the y-axissizeZ - the size of the box along the z-axistexture - the texture to use
public Box(float sizeX,
float sizeY,
float sizeZ,
java.lang.String texture)
Box centered at the origin with the given texture.
sizeX - the size of the box along the x-axissizeY - the size of the box along the y-axissizeZ - the size of the box along the z-axistexture - the texture to use
public Box(float offsetX,
float offsetY,
float offsetZ,
float sizeX,
float sizeY,
float sizeZ,
org.openmali.vecmath2.Colorf color)
Box centered at the given offset with the given color.
offsetX - the x-offset of the center of the boxoffsetY - the y-offset of the center of the boxoffsetZ - the z-offset of the center of the boxsizeX - the size of the box along the x-axissizeY - the size of the box along the y-axissizeZ - the size of the box along the z-axiscolor - the color of the box
public Box(org.openmali.vecmath2.Tuple3f offset,
float sizeX,
float sizeY,
float sizeZ,
org.openmali.vecmath2.Colorf color)
Box centered at the given offset with the given color.
offset - the center of the boxsizeX - the size of the box along the x-axissizeY - the size of the box along the y-axissizeZ - the size of the box along the z-axiscolor - the color of the box
public Box(float sizeX,
float sizeY,
float sizeZ,
org.openmali.vecmath2.Colorf color)
Box centered at the origin with the given color.
sizeX - the size of the box along the x-axissizeY - the size of the box along the y-axissizeZ - the size of the box along the z-axiscolor - the color of the box
public Box(float offsetX,
float offsetY,
float offsetZ,
float sizeX,
float sizeY,
float sizeZ,
Appearance app)
Box centered at the given offset with the given Appearance.
offsetX - the x-offset of the center of the boxoffsetY - the y-offset of the center of the boxoffsetZ - the z-offset of the center of the boxsizeX - the size of the box along the x-axissizeY - the size of the box along the y-axissizeZ - the size of the box along the z-axisapp - the Appearance to useAppearance
public Box(org.openmali.vecmath2.Tuple3f offset,
float sizeX,
float sizeY,
float sizeZ,
Appearance app)
Box centered at the given offset with the given Appearance.
offset - the center of the boxsizeX - the size of the box along the x-axissizeY - the size of the box along the y-axissizeZ - the size of the box along the z-axisapp - the Appearance to useAppearance
public Box(float sizeX,
float sizeY,
float sizeZ,
Appearance app)
Box centered at the origin with the given Appearance.
sizeX - the size of the box along the x-axissizeY - the size of the box along the y-axissizeZ - the size of the box along the z-axisapp - the Appearance to useAppearance| Method Detail |
|---|
public static void setGeometryConstructionTypeHint(GeometryType hint)
Geometry to be constructed of a certain type.
hint - the hint to useGeometryTypepublic static GeometryType getGeometryConstructionTypeHint()
Geometry to be constructed of a certain type.
GeometryType
public static GeometryConstruct createGeometryConstructTA(float offsetX,
float offsetY,
float offsetZ,
float sizeX,
float sizeY,
float sizeZ,
int features,
boolean colorAlpha,
int texCoordsSize)
GeometryConstruct.
offsetX - offsetY - offsetZ - sizeX - sizeY - sizeZ - features - colorAlpha - texCoordsSize -
GeometryConstruct.GeometryConstruct
public static GeometryConstruct createGeometryConstructTA(float sizeX,
float sizeY,
float sizeZ,
int features,
boolean colorAlpha,
int texCoordsSize)
GeometryConstruct.
sizeX - sizeY - sizeZ - features - colorAlpha - texCoordsSize -
GeometryConstruct.GeometryConstruct
public static TriangleArray createGeometryTA(float offsetX,
float offsetY,
float offsetZ,
float sizeX,
float sizeY,
float sizeZ,
int features,
boolean colorAlpha,
int texCoordsSize)
TriangleArray.
offsetX - offsetY - offsetZ - sizeX - sizeY - sizeZ - features - colorAlpha - texCoordsSize -
TriangleArray.TriangleArray
public static Geometry createGeometry(float offsetX,
float offsetY,
float offsetZ,
float sizeX,
float sizeY,
float sizeZ,
int features,
boolean colorAlpha,
int texCoordsSize)
Geometry.
offsetX - offsetY - offsetZ - sizeX - sizeY - sizeZ - features - colorAlpha - texCoordsSize -
Geometry.Geometry
public static Geometry createGeometry(float sizeX,
float sizeY,
float sizeZ,
int features,
boolean colorAlpha,
int texCoordsSize)
Geometry.
sizeX - sizeY - sizeZ - features - colorAlpha - texCoordsSize -
Geometry.Geometry
public static final Box createFromBoxBody(org.openmali.spatial.bodies.Box box,
int features,
boolean colorAlpha,
int texCoordsSize)
Box.
box - the box-body to create this scenegraph-box-primitive fromfeatures - GeometryArray featurescolorAlpha - texCoordsSize -
Box
public static final Box createFromBoxBody(org.openmali.spatial.bodies.Box box,
Texture texture)
Box.
box - the box-body to create this scenegraph-box-primitive fromtexture - the texture to use
BoxTexture
public static final Box createFromBoxBody(org.openmali.spatial.bodies.Box box,
java.lang.String texture)
Box.
box - the box-body to create this scenegraph-box-primitive fromtexture - the texture to use
Box
public static final Box createFromBoxBody(org.openmali.spatial.bodies.Box box,
org.openmali.vecmath2.Colorf color)
Box.
box - the box-body to create this scenegraph-box-primitive fromcolor - the color to use
Box
public static final Box createFromBoxBody(org.openmali.spatial.bodies.Box box,
Appearance app)
Box.
box - the box-body to create this scenegraph-box-primitive fromapp - the appearance to use
BoxAppearance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||