Camera defines the part of the presentation that will be shown in 3D window. It "shoots" the picture that is "shown" in 3D animation window (analogous to a display on operator's console).
If you want certain presentation shapes to be shown in 3D window on model startup, we recommend you to to define the onlooker's location (and his eye direction) when using the camera, rather than to navigate to the required shapes on each model run.
You can define several cameras directed either at different parts of 3D scene, or at the same objects but from different points and easily switch between these cameras at runtime.
Camera may move at model runtime and 3D window can be set to follow its camera, showing the current picture shot by the camera. This feature is very useful if you have a moving object in your model and you want to constantly keep an eye on it.
Name – The name of the camera. It is used to identify the camera and to access it from code.
Show name – If selected, the name of the camera will be displayed on the presentation diagram.
Ignore – If selected, the camera will be excluded from the model.
Paste coordinates from clipboard – Click the button to paste camera settings (X, Y, Rotation X and Rotation Z) from the clipboard.
Rotation X - The angle that camera's direction composes with YZ plane (starting from inverted Y axis, clockwise, in degrees).
Rotation Z - The angle that camera's direction composes with XY plane (starting from inverted Y axis, clockwise, in degrees).
Level – Level to which this camera belongs.
X – The x-coordinate of the center of the camera.
Y – The y-coordinate of the center of the camera.
Z – The z-coordinate of the center of the camera.
When adding a camera onto diagram of your agent, you should direct your camera on those presentation shapes that you want to be "shot" by this camera.
Function |
Description |
double getX() |
Returns the X coordinate of the camera. |
double getY() |
Returns the Y coordinate of the camera. |
double getZ() |
Returns the Z coordinate of the camera. |
void setX(double x) |
Sets x as the new X coordinate of the camera. |
void setY(double y) |
Sets y as the new Y coordinate of the camera. |
void setZ(double z) |
Sets z as the new Z coordinate of the camera. |
void setPos |
Sets new coordinates for the camera.
Parameters: |
Function |
Description |
double getRotationX() |
Returns the rotation of the camera around X axis (CW, from Y to Z). Zero rotation value corresponds to horizontal orientation of the camera (parallel with XY-plane). |
double getRotationZ() |
Returns the rotation of the camera in radians around Z axis (CW from X to Y) |
void setRotationX(double rotationX) |
Sets
the rotation of the camera around X axis (CW, from Y to Z). Zero
rotation value corresponds to horizontal orientation of the camera
(parallel with XY-plane). |
void setRotationZ(double rotationZ) |
Sets the rotation of the camera in radians around Z axis (CW from X to Y) |
Function |
Description |
String copyToClipboard() |
Copies camera settings to the system clipboard in the format supported by AnyLogic IDE. To paste the camera settings in the AnyLogic, select the camera and click the Paste From Clipboard button in the General section of its properties. |