public class Camera3D
extends java.lang.Object
Constructor and Description |
---|
Camera3D()
This constructor calls
update() and should be used in
the cameras changing at a model run-time |
Camera3D(Camera3D c)
Creates a copy of the given camera
|
Camera3D(double x,
double y,
double z,
double rotationX,
double rotationZ) |
Camera3D(ShapeGroup group,
double x,
double y,
double z,
double rotationX,
double rotationZ)
Creates new camera object
|
Modifier and Type | Method and Description |
---|---|
Camera3D |
clone() |
void |
copyToClipboard()
Copies camera settings to the system clipboard in the format supported
by AnyLogic IDE.
|
boolean |
equals(java.lang.Object obj)
Returns
true if the given obj is
3D camera with the same location/rotation
parameters. |
Level |
getLevel()
Returns the level containing this shape.
|
Presentable |
getPresentable() |
double |
getRotationX()
Returns the rotation of the camera around X axis (CW, from +Y to +Z).
|
double |
getRotationZ()
Returns the rotation of the camera in radians around Z axis (CW from +X to +Y)
|
double |
getX()
Returns the x coordinate of the camera location
|
double |
getY()
Returns the y coordinate of the camera location
|
double |
getZ()
Returns the z coordinate of the camera location
|
void |
onAggregatorVisibilityChanged()
This method is internal and shouldn't be called by user.
|
void |
restoreOwner(java.lang.Object owner)
Deprecated.
|
void |
setContextReference_xjal(Presentable contextReference)
Deprecated.
|
void |
setLevel(Level level)
This method is internal and shouldn't be called by user.
|
void |
setPos(double x,
double y,
double z)
Sets the camera location
|
void |
setRotationX(double rotationX)
Sets the rotation of the camera around X axis (CW, from +Y to +Z).
|
void |
setRotationZ(double rotationZ)
Sets the rotation of the camera in radians around Z axis (CW from +X to +Y)
|
void |
setX(double x)
Sets the x coordinate of the camera location
|
void |
setY(double y)
Sets the y coordinate of the camera location
|
void |
setZ(double z)
Sets the z coordinate of the camera location
|
java.lang.String |
toString() |
void |
update()
User extension point for cameras changing at a model run-time
This callback method should be overridden to set up-to-date values of camera properties using methods setX(double) ,
setY(double) etc. |
boolean |
updateDynamicPropertiesStructural(boolean publicOnly) |
getClass, hashCode, notify, notifyAll, wait, wait, wait
initializeInternal, postInitialize
public Camera3D()
update()
and should be used in
the cameras changing at a model run-timeupdate()
public Camera3D(Camera3D c)
c
- the camera to copy, should be not null
public Camera3D(ShapeGroup group, double x, double y, double z, double rotationX, double rotationZ)
group
- the group owning this shapex
- the x coordinate of groupy
- the y coordinate of groupz
- the z coordinate of grouprotationX
- the rotation of the camera in radians around X axis (CW from +Y to +Z).rotationZ
- the rotation of the camera in radians around Z axis (CW from +X to +Y)public Camera3D(double x, double y, double z, double rotationX, double rotationZ)
public double getX()
public void setX(double x)
x
- the x coordinate of the camera locationpublic double getY()
public void setY(double y)
y
- the y coordinate of the camera locationpublic double getZ()
public void setZ(double z)
z
- the z coordinate of the camera locationpublic double getRotationZ()
public void setRotationZ(double rotationZ)
rotationZ
- the new value of rotation in radians around Z axis (CW from +X to +Y)public double getRotationX()
public void setRotationX(double rotationX)
rotationX
- the new value of rotation around X axis (CW, from +Y to +Z),
in radianspublic void setPos(double x, double y, double z)
x
- the x coordinate of the camera locationy
- the y coordinate of the camera locationz
- the z coordinate of the camera locationpublic void update()
setX(double)
,
setY(double)
etc.public Camera3D clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object obj)
true
if the given obj is
3D camera with the same location/rotation
parameters.equals
in class java.lang.Object
@AnyLogicLegacyAPI public void copyToClipboard()
public java.lang.String toString()
toString
in class java.lang.Object
public void onAggregatorVisibilityChanged()
AggregatableAnimationElement
@AnyLogicInternalAPI public boolean updateDynamicPropertiesStructural(boolean publicOnly)
true
if update was done (usually for visible elements, respecting public flag etc.)public Presentable getPresentable()
public Level getLevel()
null
for shapes in the experiments.@AnyLogicInternalAPI public void setLevel(Level level)
Level#add(Shape)
instead.setLevel
in interface LevelElement
@AnyLogicInternalCodegenAPI @Deprecated public final void restoreOwner(java.lang.Object owner)
restoreOwner
in interface com.anylogic.engine.internal.Child
owner
- owner of this object, usually Agent
,
Experiment
or
ShapeGroup
@AnyLogicInternalAPI @Deprecated public void setContextReference_xjal(Presentable contextReference)
Copyright © AnyLogic North America, LLC. All Rights Reserved.