|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xj.anylogic.engine.presentation.Shape
com.xj.anylogic.engine.presentation.ShapeImage
com.xj.anylogic.engine.presentation.Shape3DImage
public class Shape3DImage
Persistent shape representing an image drawn on a horizontal
rectangle in the 3D world. Also visible on 2D animation.
Top-left corner of the image is drawn at (x, y, z) coordinates.
| Field Summary |
|---|
| Fields inherited from class com.xj.anylogic.engine.presentation.Shape |
|---|
UNKNOWN_NAME |
| Constructor Summary | |
|---|---|
Shape3DImage(Presentable presentable,
boolean ispublic,
double x,
double y,
double z,
double rotation,
double width,
double height,
java.lang.String packagePrefix,
java.lang.String[] filenames)
Constructs a 3D image shape with specific attributes. |
|
| Method Summary | |
|---|---|
void |
add(java.lang.String filename)
Adds an image to the image shape. |
Shape3DImage |
clone()
Creates and returns a copy of this shape (i.e. new shape instance). |
Element3D_xjal |
get3DElement_xjal()
This method is internal and shouldn't be accessed by user. |
double |
getZ()
Returns the z coordinate of the shape. |
double |
getZOffset()
Returns the offset from z coordinate of the location base. |
void |
remove(int i)
Removes the image with the given index from the image shape. |
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 |
setHeight(double height)
Sets the height of the image. |
void |
setIndex(int index)
Sets the index of the image to display. |
void |
setPos(double x,
double y)
Sets (x, y) coordinates of the shape. |
void |
setPos(double x,
double y,
double z)
Sets coordinates of the shape |
void |
setRotation(double rotation)
Sets the rotation of the shape. |
void |
setScale(double scale)
Sets the scale of the figure along all the axes |
void |
setScale(double sx,
double sy)
Sets the scales of the shape along both axes |
void |
setScaleX(double sx)
Sets the scale of the shape along x axis |
void |
setScaleY(double sy)
Sets the scale of the shape along y axis |
void |
setSize(double width,
double height)
Sets the width and height of the image. |
void |
setVisible(boolean visible)
Sets the visibility of the shape. |
void |
setWidth(double width)
Sets the width of the image. |
void |
setX(double x)
Sets the x coordinate of the shape |
void |
setY(double y)
Sets the y coordinate of the shape |
void |
setZ(double z)
Sets the z coordinate of the figure |
| Methods inherited from class com.xj.anylogic.engine.presentation.ShapeImage |
|---|
contains, draw, getHeight, getImageFileName, getImageFileNames, getIndex, getPresentable, getWidth, onClickAt, restoreOwner |
| Methods inherited from class com.xj.anylogic.engine.presentation.Shape |
|---|
canHandleClick, getGroup, getName, getRotation, getScaleX, getScaleY, getX, getY, isVisible, onClick |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.xj.anylogic.engine.Locatable2D |
|---|
getX, getY |
| Methods inherited from interface com.xj.anylogic.engine.internal.presentation.WorldObject3D_xjal |
|---|
getPresentable |
| Constructor Detail |
|---|
public Shape3DImage(Presentable presentable,
boolean ispublic,
double x,
double y,
double z,
double rotation,
double width,
double height,
java.lang.String packagePrefix,
java.lang.String[] filenames)
presentable - the presentable object owning this imageispublic - if true, the shape is visible on container's presentationx - the x coordinate of the image upper left cornery - the y coordinate of the image upper left cornerz - the z coordinate of the imagerotation - the rotation of the image around Z-axis from +X to +Y, in radianswidth - the width of the imageheight - the height of the imagepackagePrefix - the package name of original active object where
this image is defined, formatted using '/' characters; with '/'
character at the beginning and at the endfilenames - the array of image file names| Method Detail |
|---|
public Shape3DImage clone()
Shape
clone in class ShapeImagepublic void setX(double x)
Shape
setX in class Shapex - the new value of x coordinatepublic void setY(double y)
Shape
setY in class Shapey - the new value of y coordinatepublic void setZ(double z)
z - the new value of z coordinatepublic double getZ()
getZ in interface Locatable3Dpublic double getZOffset()
Locatable3DgetZHeight() for
some 3D shapes
getZOffset in interface Locatable3Dpublic void setWidth(double width)
ShapeImage
setWidth in class ShapeImagewidth - the width of the imagepublic void setHeight(double height)
ShapeImage
setHeight in class ShapeImageheight - the height of the image
public void setSize(double width,
double height)
ShapeImage
setSize in class ShapeImagewidth - the new width of the imageheight - the new height of the image
public void setPos(double x,
double y)
setPos in class Shapex - the new value of x coordinatey - the new value of y coordinate
public void setPos(double x,
double y,
double z)
x - the new value of x coordinatey - the new value of y coordinatez - the new value of z coordinatepublic void setScale(double scale)
setScale in class Shapescale - the new value of scale
public void setScale(double sx,
double sy)
Shape
setScale in class Shapesx - the new value of scale along x axis, 1 = keep original sizesy - the new value of scale along y axis, 1 = keep original sizepublic void setScaleX(double sx)
Shape
setScaleX in class Shapesx - the new value of scale along x axis, 1 = keep original sizepublic void setScaleY(double sy)
Shape
setScaleY in class Shapesy - the new value of scale along y axis, 1 = keep original sizepublic void setRotation(double rotation)
Shape
setRotation in class Shaperotation - the new value of rotation in radianspublic void setVisible(boolean visible)
Shape
setVisible in class Shapevisible - visibility: true - visible, false - notpublic void setIndex(int index)
ShapeImage
setIndex in class ShapeImageindex - the index of the image to displaypublic void add(java.lang.String filename)
ShapeImage
add in class ShapeImagefilename - the file name of the image being addedpublic void remove(int i)
ShapeImage
remove in class ShapeImagei - the index of the imagepublic Element3D_xjal get3DElement_xjal()
com.xj.anylogic.engine.internal.presentation.Accessor3D_xjal
get3DElement_xjal in interface com.xj.anylogic.engine.internal.presentation.Accessor3D_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 void setContextReference_xjal(Presentable contextReference)
com.xj.anylogic.engine.internal.presentation.WorldObject3D_xjal
setContextReference_xjal in interface com.xj.anylogic.engine.internal.presentation.WorldObject3D_xjal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||