Wall is the space markup shape used to define exterior and interior walls in pedestrian simulation models. To draw some closed areas inside, use Rectangular wall and Circular wall elements.
You can draw a wall of any form. Wall can contain either linear and curved segments.
To draw a wall
Name – The name of the wall. The name is used to identify the wall.
Ignore – If selected, the wall is excluded from the model.
Visible on upper agent – If selected, the wall is also visible on the upper agent where this agent lives.
Lock – If selected, the wall shape is locked. Locked shapes do not react to mouse clicks - it is impossible to select them in the graphical editor until you unlock them.
Visible – Here you specify whether the shape is visible on animation at model runtime, or not. Using the control, choose yes or no.
Closed – If selected, the wall is closed, i.e. its begin and end point are connected with extra segment.
Color – Shape color. Used as the outline color. If the Fill type is other than No fill, also as the fill color.
Line width – Wall width.
Fill type – Fill style. Choose from the drop-down list, whether you want No fill, Solid area, or Hatched area.
Level – Level to which this wall belongs.
X – X-coordinate of the wall's start point.
Y – Y-coordinate of the wall's start point.
Z – [Enabled if Show in 3D option is selected] Z-coordinate of the wall, in meters. The value is relative to the Z-coordinate of the wall's level.
Z-Height – [Enabled if Show in 3D option is selected] .
The table located in the Points property section enables users to view and adjust coordinates of wall corners.
Here
you define relative coordinates, not the absolute ones. The first point
always has coordinates (0,0) that can not be changed.
Other rows of
the table define relative coordinates of the successive points.
Coordinates of each point are actually offsets of the corresponding
point from the start point along X and Y axes correspondingly.
Show in - Here you can choose whether you want the shape to be shown both In 2D and 3D animation, or in 2D only, or in 3D only.
Show name – If selected, the wall's name is displayed on the graphical diagram.
How-To video: Drawing curved walls
To add a linear segment while drawing a wall
To add a curved segment while drawing a wall
Function |
Description |
double length() |
Returns the length of the wall (in pixels) calculated in 3D space. |
double getZHeight() |
Returns the Z-height of the wall (in pixels). |
void setZHeight(double zHeight) |
Sets the Z-height of the wall.
Parameter: |
Function |
Description |
double getNearestPoint(double x, double y, Point out) |
Calculates the point in this wall nearest to the given (x, y) point and writes the result to the output Point object. Returns the square of the distance to the point. All calculations are performed in the horizontal XY-projection (i.e. z-coordinates are treated as zeros).
Parameters: |
double getNearestPoint(double x, double y, double z, Point out) |
Calculates the point in this wall nearest to the given (x, y, z) point and writes the result to the output Point object. Returns the square of the distance to the point.
Parameters: |
Function |
Description |
int getSegmentCount() |
Returns the number of the wall's segments. |
MarkupSegment getSegment(int index) |
Returns the segment by the provided index. Parameters: |
Function |
Description |
boolean isVisible() |
Returns true if the wall is visible; returns false otherwise. |
void setVisible(boolean v) |
Sets the visibility of the wall. Parameter: v - visibility. If v is true - the wall is set to be visible, if it is false - not visible. |
Function |
Description |
Color getColor() |
Returns the color of the wall, or null if the wall has no color or uses a texture (in this case use getTexture() to get the wall's texture). |
Texture getTexture() |
Returns the texture of the wall or null if the wall has no texture but uses a color (in this case use getColor() to get the wall's color). |
void setColor(Color color) |
Sets the color of the wall. Parameter: color - the new color |
void setColor(Paint color) |
Sets the
color
(or texture) of the wall.
|
Function |
Description |
double getLineWidth() |
Returns the width of the wall outline. |
void setLineWidth |
Sets the width of the wall outline;
0
means the thinnest possible outline. |
WallFillingType getFillingType() |
Returns the filling type of the wall. |
void setFillingType(WallFillingType fillingType) |
Sets the filling type of the wall. |
Function |
Description |
Level getLevel() |
Returns the level where this wall is located. |
Function |
Description |
void remove() |
Removes the wall from the presentation. If the wall is not a part of presentation, the function does nothing. Note, that removal from the presentation does not necessarily mean removing from the model logic, since logical networks and routes may have been created before the removal and survive it. |