Class Terrain3d
- java.lang.Object
-
- jadex.extension.envsupport.observer.graphics.drawable3d.AbstractVisual3d
-
- jadex.extension.envsupport.observer.graphics.drawable3d.Primitive3d
-
- jadex.extension.envsupport.observer.graphics.drawable3d.Terrain3d
-
public class Terrain3d extends Primitive3d
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
_alphamap
Alphamap for Textureprotected 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
-
Fields inherited from class jadex.extension.envsupport.observer.graphics.drawable3d.Primitive3d
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 Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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).-
Methods inherited from class jadex.extension.envsupport.observer.graphics.drawable3d.Primitive3d
enableAbsolutePosition, enableAbsoluteRotation, enableAbsoluteSize, getColor, getControler, getDrawCondition, getMaterialPath, getShadowtype, getTexturePath, getType, isRelativePosition, isRelativeRotation, isRelativeSize, setColor, setControler, setDrawCondition, setMaterialPath, setShadowtype, setTexturePath
-
Methods inherited from class jadex.extension.envsupport.observer.graphics.drawable3d.AbstractVisual3d
bindPosition, bindRotation, bindSize, getPosition, getRotation, getSize, setPosition, setRotation, setSize
-
-
-
-
Field Detail
-
_isRnd
protected boolean _isRnd
-
_terrapath
protected java.lang.String _terrapath
-
_alphamap
protected java.lang.String _alphamap
Alphamap for Texture
-
_heightmap
protected java.lang.String _heightmap
-
_patchsize
protected int _patchsize
-
_picsize
protected int _picsize
-
_tiles
protected int _tiles
-
_iterations
protected int _iterations
-
_minradius
protected int _minradius
-
_maxradius
protected int _maxradius
-
_seed
protected int _seed
-
_shadowtype
protected java.lang.String _shadowtype
-
_terrainTexture
protected java.util.ArrayList<TerrainTexture> _terrainTexture
-
-
Constructor Detail
-
Terrain3d
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)
Creates default Polygon.- Parameters:
modelPath
- resource path of the model
-
Terrain3d
public 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.- Parameters:
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 texture
-
Terrain3d
public 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)
-
-
Method Detail
-
setType
public void setType(int type)
Set the primitive type (Disabled).- Overrides:
setType
in classPrimitive3d
- Parameters:
type
- The type to set.
-
getAlphamap
public java.lang.String getAlphamap()
- Returns:
- the alphamap
-
setAlphamap
public void setAlphamap(java.lang.String alphamap)
- Parameters:
alphamap
- the alphamap to set
-
getHeightmap
public java.lang.String getHeightmap()
- Returns:
- the heightmap
-
setHeightmap
public void setHeightmap(java.lang.String heightmap)
- Parameters:
heightmap
- the heightmap to set
-
getTerrapath
public java.lang.String getTerrapath()
- Returns:
- the _terrapath
-
setTerrapath
public void setTerrapath(java.lang.String _terrapath)
- Parameters:
_terrapath
- the _terrapath to set
-
getTextures
public java.util.ArrayList<TerrainTexture> getTextures()
- Returns:
- the _terrainTexture
-
setTextures
public void setTextures(java.util.ArrayList<TerrainTexture> _terrainTexture)
- Parameters:
_terrainTexture
- the _terrainTexture to set
-
getPatchsize
public int getPatchsize()
- Returns:
- the patchsize
-
setPatchsize
public void setPatchsize(int patchsize)
- Parameters:
patchsize
- the patchsize to set
-
getPicsize
public int getPicsize()
- Returns:
- the picsize
-
setPicsize
public void setPicsize(int picsize)
- Parameters:
picsize
- the picsize to set
-
isRnd
public boolean isRnd()
- Returns:
- the isRnd
-
setRnd
public void setRnd(boolean isRnd)
- Parameters:
isRnd
- the isRnd to set
-
getTiles
public int getTiles()
- Returns:
- the tiles
-
setTiles
public void setTiles(int tiles)
- Parameters:
tiles
- the tiles to set
-
getIterations
public int getIterations()
- Returns:
- the iterations
-
setIterations
public void setIterations(int iterations)
- Parameters:
iterations
- the iterations to set
-
getMinradius
public int getMinradius()
- Returns:
- the minradius
-
setMinradius
public void setMinradius(int minradius)
- Parameters:
minradius
- the minradius to set
-
getMaxradius
public int getMaxradius()
- Returns:
- the maxradius
-
setMaxradius
public void setMaxradius(int maxradius)
- Parameters:
maxradius
- the maxradius to set
-
getSeed
public int getSeed()
- Returns:
- the seed
-
setSeed
public void setSeed(int seed)
- Parameters:
seed
- the seed to set
-
-