|
||||||||||
| 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.Grid
public class Grid
This is a simple implementation of a homogenous vertex/triangle grid.
| Field Summary |
|---|
| Fields inherited from class org.xith3d.scenegraph.Node |
|---|
bounds, boundsAutoCompute, boundsDirty, globalIgnoreBounds, instanceBoundsTypeHint, parent, transformGroup, untransformedBounds |
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Constructor Summary | |
|---|---|
Grid(float width,
float height,
int resX,
int resY,
Appearance app)
Creates a new Raster Shape3D. |
|
Grid(float width,
float height,
int resX,
int resY,
org.openmali.vecmath2.Colorf color)
Creates a new Raster Shape3D. |
|
Grid(float width,
float height,
int resX,
int resY,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a new Raster Shape3D. |
|
Grid(float width,
float height,
int resX,
int resY,
java.lang.String texture)
Creates a new Raster Shape3D. |
|
Grid(float width,
float height,
int resX,
int resY,
Texture texture)
Creates a new Raster Shape3D. |
|
| Method Summary | |
|---|---|
static GeometryArray |
createGeometry(float width,
float height,
int resX,
int resY,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a GeometryArray for a Raster Shape3D. |
static GeometryConstruct |
createGeometryConstructITA(float width,
float height,
int resX,
int resY,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a GeometryConstruct for an IndexedTriangleArray for a Raster Shape3D. |
static GeometryConstruct |
createGeometryConstructITSA(float width,
float height,
int resX,
int resY,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a GeometryConstruct for an IndexedTriangleStripArray for a Raster Shape3D. |
static GeometryConstruct |
createGeometryConstructTA(float width,
float height,
int resX,
int resY,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a GeometryConstruct for a TriangleArray for a Raster Shape3D. |
static GeometryConstruct |
createGeometryConstructTSA(float width,
float height,
int resX,
int resY,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a GeometryConstruct for a TriangleStripArray for a Raster Shape3D. |
static IndexedTriangleArray |
createGeometryITA(float width,
float height,
int resX,
int resY,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates an IndexedTriangleArray for a Raster Shape3D. |
static IndexedTriangleStripArray |
createGeometryITSA(float width,
float height,
int resX,
int resY,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates an IndexedTriangleStripArray for a Raster Shape3D. |
static TriangleArray |
createGeometryTA(float width,
float height,
int resX,
int resY,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a TriangleArray for a Raster Shape3D. |
static TriangleStripArray |
createGeometryTSA(float width,
float height,
int resX,
int resY,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a TriangleStripArray for a Raster Shape3D. |
static GeometryType |
getGeometryConstructionTypeHint()
|
static void |
setGeometryConstructionTypeHint(GeometryType hint)
Sets the hint for this ShapeType's Geometry to be constructed of a certain type. |
| Methods inherited from class org.xith3d.scenegraph.Shape3D |
|---|
absorbDetails, freeOpenGLResources, getAppearance, getAppearance, getGeometry, isBumpMappingEnabled, isShadowReceiver, isVisible, newAppearance, setAppearance, setBounds, setBumpMappingEnabled, setBumpMappingEnabled, setGeometry, setIsShadowReceiver, setLive, 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, 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 Grid(float width,
float height,
int resX,
int resY,
int features,
boolean colorAlpha,
int texCoordsSize)
width - the absolute width of the whole Rasterheight - the absolute height of the Whole RasterresX - the x-resolution of the Raster (number of rectangles)resY - the y-resolution of the Raster (number of rectangles)features - the GeometryArray featurescolorAlpha - texCoordsSize -
public Grid(float width,
float height,
int resX,
int resY,
Texture texture)
width - the absolute width of the whole Rasterheight - the absolute height of the Whole RasterresX - the x-resolution of the Raster (number of rectangles)resY - the y-resolution of the Raster (number of rectangles)texture - the texture to be applied
public Grid(float width,
float height,
int resX,
int resY,
java.lang.String texture)
width - the absolute width of the whole Rasterheight - the absolute height of the Whole RasterresX - the x-resolution of the Raster (number of rectangles)resY - the y-resolution of the Raster (number of rectangles)texture - the texture to be applied
public Grid(float width,
float height,
int resX,
int resY,
org.openmali.vecmath2.Colorf color)
width - the absolute width of the whole Rasterheight - the absolute height of the Whole RasterresX - the x-resolution of the Raster (number of rectangles)resY - the y-resolution of the Raster (number of rectangles)color - the color to be applied to the shape's ColoringAttributes
public Grid(float width,
float height,
int resX,
int resY,
Appearance app)
width - the absolute width of the whole Rasterheight - the absolute height of the Whole RasterresX - the x-resolution of the Raster (number of rectangles)resY - the y-resolution of the Raster (number of rectangles)app - the Appearance to be applied to the shape| Method Detail |
|---|
public static void setGeometryConstructionTypeHint(GeometryType hint)
hint - public static GeometryType getGeometryConstructionTypeHint()
public static GeometryConstruct createGeometryConstructITSA(float width,
float height,
int resX,
int resY,
int features,
boolean colorAlpha,
int texCoordsSize)
width - the absolute width of the whole Rasterheight - the absolute height of the Whole RasterresX - the x-resolution of the Raster (number of rectangles)resY - the y-resolution of the Raster (number of rectangles)features - the GeometryArray featurescolorAlpha - texCoordsSize -
public static IndexedTriangleStripArray createGeometryITSA(float width,
float height,
int resX,
int resY,
int features,
boolean colorAlpha,
int texCoordsSize)
width - the absolute width of the whole Rasterheight - the absolute height of the Whole RasterresX - the x-resolution of the Raster (number of rectangles)resY - the y-resolution of the Raster (number of rectangles)features - the GeometryArray featurescolorAlpha - texCoordsSize -
public static GeometryConstruct createGeometryConstructITA(float width,
float height,
int resX,
int resY,
int features,
boolean colorAlpha,
int texCoordsSize)
width - the absolute width of the whole Rasterheight - the absolute height of the Whole RasterresX - the x-resolution of the Raster (number of rectangles)resY - the y-resolution of the Raster (number of rectangles)features - the GeometryArray featurescolorAlpha - texCoordsSize -
public static IndexedTriangleArray createGeometryITA(float width,
float height,
int resX,
int resY,
int features,
boolean colorAlpha,
int texCoordsSize)
width - the absolute width of the whole Rasterheight - the absolute height of the Whole RasterresX - the x-resolution of the Raster (number of rectangles)resY - the y-resolution of the Raster (number of rectangles)features - the GeometryArray featurescolorAlpha - texCoordsSize -
public static GeometryConstruct createGeometryConstructTSA(float width,
float height,
int resX,
int resY,
int features,
boolean colorAlpha,
int texCoordsSize)
width - the absolute width of the whole Rasterheight - the absolute height of the Whole RasterresX - the x-resolution of the Raster (number of rectangles)resY - the y-resolution of the Raster (number of rectangles)features - the GeometryArray featurescolorAlpha - texCoordsSize -
public static TriangleStripArray createGeometryTSA(float width,
float height,
int resX,
int resY,
int features,
boolean colorAlpha,
int texCoordsSize)
width - the absolute width of the whole Rasterheight - the absolute height of the Whole RasterresX - the x-resolution of the Raster (number of rectangles)resY - the y-resolution of the Raster (number of rectangles)features - the GeometryArray featurescolorAlpha - texCoordsSize -
public static GeometryConstruct createGeometryConstructTA(float width,
float height,
int resX,
int resY,
int features,
boolean colorAlpha,
int texCoordsSize)
width - the absolute width of the whole Rasterheight - the absolute height of the Whole RasterresX - the x-resolution of the Raster (number of rectangles)resY - the y-resolution of the Raster (number of rectangles)features - the GeometryArray featurescolorAlpha - texCoordsSize -
public static TriangleArray createGeometryTA(float width,
float height,
int resX,
int resY,
int features,
boolean colorAlpha,
int texCoordsSize)
width - the absolute width of the whole Rasterheight - the absolute height of the Whole RasterresX - the x-resolution of the Raster (number of rectangles)resY - the y-resolution of the Raster (number of rectangles)features - the GeometryArray featurescolorAlpha - texCoordsSize -
public static GeometryArray createGeometry(float width,
float height,
int resX,
int resY,
int features,
boolean colorAlpha,
int texCoordsSize)
width - the absolute width of the whole Rasterheight - the absolute height of the Whole RasterresX - the x-resolution of the Raster (number of rectangles)resY - the y-resolution of the Raster (number of rectangles)features - the GeometryArray featurescolorAlpha - texCoordsSize -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||