|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object simbad.sim.EnvironmentDescription
This class is intend to describe easily a the world and its components. It is only used during the building process of the World and the Simulator. The user may specific colors and rendering attributes and add object which should be settled in the World (Arch,Box, Wall ..) It also adds the agent(s) which should be simulated.
Field Summary | |
javax.vecmath.Color3f |
ambientLightColor
|
javax.vecmath.Color3f |
archColor
|
javax.vecmath.Color3f |
backgroundColor
|
javax.vecmath.Color3f |
black
|
javax.vecmath.Color3f |
blue
|
javax.vecmath.Color3f |
boxColor
|
javax.vecmath.Color3f |
darkgray
|
javax.vecmath.Color3f |
floorColor
|
javax.vecmath.Color3f |
gray
|
javax.vecmath.Color3f |
green
|
boolean |
hasAxis
|
javax.vecmath.Color3f |
light1Color
|
boolean |
light1IsOn
|
javax.vecmath.Vector3d |
light1Position
|
javax.vecmath.Color3f |
light2Color
|
boolean |
light2IsOn
|
javax.vecmath.Vector3d |
light2Position
|
javax.vecmath.Color3f |
ligthgray
|
static int |
NORMALS_REALISTIC
|
static int |
NORMALS_SIMPLE
|
int |
normalsStyle
|
javax.vecmath.Color3f |
red
|
boolean |
usePhysics
if true the simulator uses physical laws. |
javax.vecmath.Color3f |
wallColor
|
javax.vecmath.Color3f |
white
|
float |
worldSize
The size of the square containing the world |
int |
worldViewPoint
|
Constructor Summary | |
EnvironmentDescription()
|
Method Summary | |
void |
add(java.lang.Object object)
Add a object (Agent or BlockWorldObject). |
void |
addMap(java.lang.String[] map)
|
void |
light1SetPosition(double x,
double y,
double z)
|
void |
light2SetPosition(double x,
double y,
double z)
|
void |
setUsePhysics(boolean use)
Use physics in simulation. |
void |
setWorldSize(float size)
Sets the size of the world. |
void |
showAxis(boolean show)
Shows or hide the X,Y and Z axis. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public javax.vecmath.Color3f white
public javax.vecmath.Color3f black
public javax.vecmath.Color3f red
public javax.vecmath.Color3f green
public javax.vecmath.Color3f blue
public javax.vecmath.Color3f ligthgray
public javax.vecmath.Color3f gray
public javax.vecmath.Color3f darkgray
public javax.vecmath.Color3f ambientLightColor
public boolean light1IsOn
public javax.vecmath.Color3f light1Color
public javax.vecmath.Vector3d light1Position
public javax.vecmath.Color3f light2Color
public boolean light2IsOn
public javax.vecmath.Vector3d light2Position
public javax.vecmath.Color3f wallColor
public javax.vecmath.Color3f archColor
public javax.vecmath.Color3f boxColor
public javax.vecmath.Color3f floorColor
public javax.vecmath.Color3f backgroundColor
public int worldViewPoint
public boolean hasAxis
public int normalsStyle
public static final int NORMALS_SIMPLE
public static final int NORMALS_REALISTIC
public boolean usePhysics
public float worldSize
Constructor Detail |
public EnvironmentDescription()
Method Detail |
public void add(java.lang.Object object)
public void light1SetPosition(double x, double y, double z)
public void light2SetPosition(double x, double y, double z)
public void setUsePhysics(boolean use)
public void showAxis(boolean show)
public void setWorldSize(float size)
size
- in meters.public void addMap(java.lang.String[] map)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |