public class Terrain3d extends Primitive3d
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_alphamap
Alphamap for Texture
|
protected java.lang.String |
_heightmap |
protected boolean |
_isRnd |
protected int |
_iterations |
protected int |
_maxradius |
protected int |
_minradius |
protected int |
_patchsize |
protected int |
_picsize |
protected int |
_seed |
protected java.lang.String |
_shadowtype |
protected java.util.ArrayList<TerrainTexture> |
_terrainTexture |
protected java.lang.String |
_terrapath |
protected int |
_tiles |
ABSOLUTE_POSITION, ABSOLUTE_ROTATION, ABSOLUTE_SIZE, color_, drawcondition, enableDCPos, enableDCRot, enableDCSize, materialPath_, PRIMITIVE_TYPE_ARROW, PRIMITIVE_TYPE_BOX, PRIMITIVE_TYPE_CYLINDER, PRIMITIVE_TYPE_DIRECTIONALLIGHT, PRIMITIVE_TYPE_DOME, PRIMITIVE_TYPE_EFFECT, PRIMITIVE_TYPE_OBJECT3D, PRIMITIVE_TYPE_POINTLIGHT, PRIMITIVE_TYPE_QUAD, PRIMITIVE_TYPE_SKY, PRIMITIVE_TYPE_SOUND, PRIMITIVE_TYPE_SPHERE, PRIMITIVE_TYPE_TERRAIN, PRIMITIVE_TYPE_TEXT3D, PRIMITIVE_TYPE_TORUS, renderinfos, SHADOW_CAST, SHADOW_OFF, SHADOW_RECEIVE, shadowtype, texturePath_, type
Constructor and Description |
---|
Terrain3d(java.lang.Object position,
java.lang.Object rotation,
java.lang.Object size,
java.lang.Integer tiles,
java.lang.Integer iterations,
java.lang.Integer minradius,
java.lang.Integer maxradius,
java.lang.Integer seed,
java.lang.String terrapath,
java.lang.String alphamap,
java.lang.String texture01,
java.lang.String texture02,
java.lang.String texture03,
java.lang.String texture04,
java.lang.String texture05,
java.lang.Integer tex01val,
java.lang.Integer tex02val,
java.lang.Integer tex03val,
java.lang.Integer tex04val,
java.lang.Integer tex05val,
java.lang.String shadowtype) |
Terrain3d(java.lang.Object position,
java.lang.Object rotation,
java.lang.Object size,
java.lang.String terrapath,
java.lang.String alphamap,
java.lang.String heightmap,
java.lang.String texture01,
java.lang.String texture02,
java.lang.String texture03,
java.lang.String texture04,
java.lang.String texture05,
java.lang.Integer tex01val,
java.lang.Integer tex02val,
java.lang.Integer tex03val,
java.lang.Integer tex04val,
java.lang.Integer tex05val,
int patchsize,
int picsize,
java.lang.String shadowtype)
Creates a new Polygon drawable.
|
Terrain3d(java.lang.String terrapath,
java.lang.String alphamap,
java.lang.String heightmap,
java.lang.String texture01,
java.lang.String texture02,
java.lang.String texture03,
java.lang.String texture04,
java.lang.String texture05,
java.lang.Integer tex01val,
java.lang.Integer tex02val,
java.lang.Integer tex03val,
java.lang.Integer tex04val,
java.lang.Integer tex05val,
int patchsize,
int picsize,
java.lang.String shadowtype)
Creates default Polygon.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlphamap() |
java.lang.String |
getHeightmap() |
int |
getIterations() |
int |
getMaxradius() |
int |
getMinradius() |
int |
getPatchsize() |
int |
getPicsize() |
int |
getSeed() |
java.lang.String |
getTerrapath() |
java.util.ArrayList<TerrainTexture> |
getTextures() |
int |
getTiles() |
boolean |
isRnd() |
void |
setAlphamap(java.lang.String alphamap) |
void |
setHeightmap(java.lang.String heightmap) |
void |
setIterations(int iterations) |
void |
setMaxradius(int maxradius) |
void |
setMinradius(int minradius) |
void |
setPatchsize(int patchsize) |
void |
setPicsize(int picsize) |
void |
setRnd(boolean isRnd) |
void |
setSeed(int seed) |
void |
setTerrapath(java.lang.String _terrapath) |
void |
setTextures(java.util.ArrayList<TerrainTexture> _terrainTexture) |
void |
setTiles(int tiles) |
void |
setType(int type)
Set the primitive type (Disabled).
|
enableAbsolutePosition, enableAbsoluteRotation, enableAbsoluteSize, getColor, getControler, getDrawCondition, getMaterialPath, getShadowtype, getTexturePath, getType, isRelativePosition, isRelativeRotation, isRelativeSize, setColor, setControler, setDrawCondition, setMaterialPath, setShadowtype, setTexturePath
bindPosition, bindRotation, bindSize, getPosition, getRotation, getSize, setPosition, setRotation, setSize
protected boolean _isRnd
protected java.lang.String _terrapath
protected java.lang.String _alphamap
protected java.lang.String _heightmap
protected int _patchsize
protected int _picsize
protected int _tiles
protected int _iterations
protected int _minradius
protected int _maxradius
protected int _seed
protected java.lang.String _shadowtype
protected java.util.ArrayList<TerrainTexture> _terrainTexture
public Terrain3d(java.lang.String terrapath, java.lang.String alphamap, java.lang.String heightmap, java.lang.String texture01, java.lang.String texture02, java.lang.String texture03, java.lang.String texture04, java.lang.String texture05, java.lang.Integer tex01val, java.lang.Integer tex02val, java.lang.Integer tex03val, java.lang.Integer tex04val, java.lang.Integer tex05val, int patchsize, int picsize, java.lang.String shadowtype)
modelPath
- resource path of the modelpublic Terrain3d(java.lang.Object position, java.lang.Object rotation, java.lang.Object size, java.lang.String terrapath, java.lang.String alphamap, java.lang.String heightmap, java.lang.String texture01, java.lang.String texture02, java.lang.String texture03, java.lang.String texture04, java.lang.String texture05, java.lang.Integer tex01val, java.lang.Integer tex02val, java.lang.Integer tex03val, java.lang.Integer tex04val, java.lang.Integer tex05val, int patchsize, int picsize, java.lang.String shadowtype)
position
- position or position-bindingxrotation
- xrotation or rotation-bindingyrotation
- yrotation or rotation-bindingzrotation
- zrotation or rotation-bindingsize
- size or size-bindingshadowtype
- absFlags
- flags for setting position, size and rotation as
absolutesc
- modulation color or bindingmodelPath
- resource path of the texturepublic Terrain3d(java.lang.Object position, java.lang.Object rotation, java.lang.Object size, java.lang.Integer tiles, java.lang.Integer iterations, java.lang.Integer minradius, java.lang.Integer maxradius, java.lang.Integer seed, java.lang.String terrapath, java.lang.String alphamap, java.lang.String texture01, java.lang.String texture02, java.lang.String texture03, java.lang.String texture04, java.lang.String texture05, java.lang.Integer tex01val, java.lang.Integer tex02val, java.lang.Integer tex03val, java.lang.Integer tex04val, java.lang.Integer tex05val, java.lang.String shadowtype)
public void setType(int type)
setType
in class Primitive3d
type
- The type to set.public java.lang.String getAlphamap()
public void setAlphamap(java.lang.String alphamap)
alphamap
- the alphamap to setpublic java.lang.String getHeightmap()
public void setHeightmap(java.lang.String heightmap)
heightmap
- the heightmap to setpublic java.lang.String getTerrapath()
public void setTerrapath(java.lang.String _terrapath)
_terrapath
- the _terrapath to setpublic java.util.ArrayList<TerrainTexture> getTextures()
public void setTextures(java.util.ArrayList<TerrainTexture> _terrainTexture)
_terrainTexture
- the _terrainTexture to setpublic int getPatchsize()
public void setPatchsize(int patchsize)
patchsize
- the patchsize to setpublic int getPicsize()
public void setPicsize(int picsize)
picsize
- the picsize to setpublic boolean isRnd()
public void setRnd(boolean isRnd)
isRnd
- the isRnd to setpublic int getTiles()
public void setTiles(int tiles)
tiles
- the tiles to setpublic int getIterations()
public void setIterations(int iterations)
iterations
- the iterations to setpublic int getMinradius()
public void setMinradius(int minradius)
minradius
- the minradius to setpublic int getMaxradius()
public void setMaxradius(int maxradius)
maxradius
- the maxradius to setpublic int getSeed()
public void setSeed(int seed)
seed
- the seed to set