public class Terrain3d extends Primitive3d
ABSOLUTE_POSITION, ABSOLUTE_ROTATION, ABSOLUTE_SIZE, PRIMITIVE_TYPE_ARROW, PRIMITIVE_TYPE_BOX, PRIMITIVE_TYPE_CYLINDER, PRIMITIVE_TYPE_DOME, PRIMITIVE_TYPE_OBJECT3D, PRIMITIVE_TYPE_SKY, PRIMITIVE_TYPE_SOUND, PRIMITIVE_TYPE_SPHERE, PRIMITIVE_TYPE_TERRAIN, PRIMITIVE_TYPE_TEXT3D, PRIMITIVE_TYPE_TORUS, SHADOW_CAST, SHADOW_OFF, SHADOW_RECEIVE
Constructor and Description |
---|
Terrain3d(Object position,
Object rotation,
Object size,
Integer tiles,
Integer iterations,
Integer minradius,
Integer maxradius,
Integer seed,
String terrapath,
String alphamap,
String texture01,
String texture02,
String texture03,
String texture04,
String texture05,
Integer tex01val,
Integer tex02val,
Integer tex03val,
Integer tex04val,
Integer tex05val,
String shadowtype) |
Terrain3d(Object position,
Object rotation,
Object size,
String terrapath,
String alphamap,
String heightmap,
String texture01,
String texture02,
String texture03,
String texture04,
String texture05,
Integer tex01val,
Integer tex02val,
Integer tex03val,
Integer tex04val,
Integer tex05val,
int patchsize,
int picsize,
String shadowtype)
Creates a new Polygon drawable.
|
Terrain3d(String terrapath,
String alphamap,
String heightmap,
String texture01,
String texture02,
String texture03,
String texture04,
String texture05,
Integer tex01val,
Integer tex02val,
Integer tex03val,
Integer tex04val,
Integer tex05val,
int patchsize,
int picsize,
String shadowtype)
Creates default Polygon.
|
Modifier and Type | Method and Description |
---|---|
String |
getAlphamap() |
String |
getHeightmap() |
int |
getIterations() |
int |
getMaxradius() |
int |
getMinradius() |
int |
getPatchsize() |
int |
getPicsize() |
int |
getSeed() |
String |
getTerrapath() |
ArrayList<TerrainTexture> |
getTextures() |
int |
getTiles() |
boolean |
isRnd() |
void |
setAlphamap(String alphamap) |
void |
setHeightmap(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(String _terrapath) |
void |
setTextures(ArrayList<TerrainTexture> _terrainTexture) |
void |
setTiles(int tiles) |
void |
setType(int type)
Set the primitive type (Disabled).
|
enableAbsolutePosition, enableAbsoluteRotation, enableAbsoluteSize, getColor, getDrawCondition, getShadowtype, getTexturePath, getType, isRelativePosition, isRelativeRotation, isRelativeSize, setColor, setDrawCondition, setShadowtype, setTexturePath
bindPosition, bindRotation, bindSize, getPosition, getRotation, getSize, isCreated, setCreated, setPosition, setRotation, setSize
public Terrain3d(String terrapath, String alphamap, String heightmap, String texture01, String texture02, String texture03, String texture04, String texture05, Integer tex01val, Integer tex02val, Integer tex03val, Integer tex04val, Integer tex05val, int patchsize, int picsize, String shadowtype)
modelPath
- resource path of the modelpublic Terrain3d(Object position, Object rotation, Object size, String terrapath, String alphamap, String heightmap, String texture01, String texture02, String texture03, String texture04, String texture05, Integer tex01val, Integer tex02val, Integer tex03val, Integer tex04val, Integer tex05val, int patchsize, int picsize, 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(Object position, Object rotation, Object size, Integer tiles, Integer iterations, Integer minradius, Integer maxradius, Integer seed, String terrapath, String alphamap, String texture01, String texture02, String texture03, String texture04, String texture05, Integer tex01val, Integer tex02val, Integer tex03val, Integer tex04val, Integer tex05val, String shadowtype)
public void setType(int type)
setType
in class Primitive3d
type
- The type to set.public String getAlphamap()
public void setAlphamap(String alphamap)
alphamap
- the alphamap to setpublic String getHeightmap()
public void setHeightmap(String heightmap)
heightmap
- the heightmap to setpublic String getTerrapath()
public void setTerrapath(String _terrapath)
_terrapath
- the _terrapath to setpublic ArrayList<TerrainTexture> getTextures()
public void setTextures(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 setCopyright © 2012. All Rights Reserved.