|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xj.anylogic.engine.presentation.Camera3D
public class Camera3D
3D camera object. Used in 3D windows. Has location and view direction.
| Constructor Summary | |
|---|---|
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(Shape3DGroup group,
double x,
double y,
double z,
double rotationX,
double rotationZ)
Creates new camera object |
|
| Method Summary | |
|---|---|
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. |
Element3D_xjal |
get3DElement_xjal()
This method is internal and shouldn't be accessed by user. |
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 |
restoreOwner(java.lang.Object owner)
This method normally should not be called by user This method restores owner of this object The method is used in snapshot saving/loading |
void |
set3DElement_xjal(Element3D_xjal element3D)
This method is internal and shouldn't be accessed by user. |
void |
setContextReference_xjal(Presentable contextReference)
This method is internal and shouldn't be accessed 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. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Camera3D()
update() and should be used in
the cameras changing at a model run-time
update()public Camera3D(Camera3D c)
c - the camera to copy, should be not null
public Camera3D(Shape3DGroup 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)
| Method Detail |
|---|
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 radians
public 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.Objectpublic 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.Objectpublic void copyToClipboard()
public java.lang.String toString()
toString in class java.lang.Objectpublic Presentable getPresentable()
getPresentable in interface com.xj.anylogic.engine.internal.presentation.WorldObject3D_xjalpublic final void restoreOwner(java.lang.Object owner)
restoreOwner in interface com.xj.anylogic.engine.internal.Childowner - owner of this object, usually ActiveObject,
Experiment or
ShapeGrouppublic void setContextReference_xjal(Presentable contextReference)
com.xj.anylogic.engine.internal.presentation.WorldObject3D_xjal
setContextReference_xjal in interface com.xj.anylogic.engine.internal.presentation.WorldObject3D_xjalpublic void set3DElement_xjal(Element3D_xjal element3D)
com.xj.anylogic.engine.internal.presentation.Accessor3D_xjal
set3DElement_xjal in interface com.xj.anylogic.engine.internal.presentation.Accessor3D_xjalpublic Element3D_xjal get3DElement_xjal()
com.xj.anylogic.engine.internal.presentation.Accessor3D_xjal
get3DElement_xjal in interface com.xj.anylogic.engine.internal.presentation.Accessor3D_xjal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||