|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.speckled.specksim.imp.walls.RandomWalls
@ConfigurableType(value="Random Walls") public class RandomWalls
This class represents a number of radio-opaque walls in the simulator
| Constructor Summary | |
|---|---|
RandomWalls()
|
|
| Method Summary | |
|---|---|
Configurator |
getConfigurator()
Gets a Configurator object that describes and can manipulate the variables of this Configurable. |
java.lang.String |
getName()
Gets a name for this provider |
int |
getNumberOfWalls()
Gets the number of walls |
boolean |
getTwoDMode()
Determines if this provider is in two-d mode |
float |
getWallArea()
Gets the area of each wall |
int |
getWallGenerationSeed()
Gets the current rng seed |
Wall[] |
getWalls()
Gets the walls |
void |
init(WallManager manager)
Called when this provider is made current for the simulator |
void |
setNumberOfWalls(int n)
Sets the number of walls |
void |
setTwoDMode(boolean twoD)
Sets if this provider is in two-d mode |
void |
setWallArea(float area)
Sets the surface area of each wall |
void |
setWallGenerationSeed(int seed)
Sets the seed for the RNG that generates the vertices of the walls |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RandomWalls()
| Method Detail |
|---|
public java.lang.String getName()
WallProvider
getName in interface WallProviderpublic Wall[] getWalls()
WallProvider
getWalls in interface WallProviderpublic void init(WallManager manager)
WallProvider
init in interface WallProvidermanager - The manager who must be kept appraised of changes to
the walls@ConfigurableVariable(value="2D mode") @Description(value="When in 2D mode, walls will be generated on the z=0 plane") public void setTwoDMode(boolean twoD)
twoD - true to generate walls on the z=0
plane, false to generate them in the
unit cube@ConfigurableVariable(value="2D mode") public boolean getTwoDMode()
true if in two-d mode, false
otherwise
@ConfigurableVariable(value="Wall size")
@Description(value="The surface area of each wall")
@NumberRange(value={0.0f,1.0f})
public void setWallArea(float area)
area - The desired area@ConfigurableVariable(value="Wall size") public float getWallArea()
@ConfigurableVariable(value="Number of walls")
@Description(value="The number of walls")
@NumberRange(value={0.0f,0f/0f})
public void setNumberOfWalls(int n)
n - The number of walls@ConfigurableVariable(value="Number of walls") public int getNumberOfWalls()
@ConfigurableVariable(value="RNG seed offset") @Description(value="The rng seed for vertex generation") public void setWallGenerationSeed(int seed)
seed - The new rng seed@ConfigurableVariable(value="RNG seed offset") public int getWallGenerationSeed()
public Configurator getConfigurator()
Configurable
getConfigurator in interface Configurable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||